Apache OpenOffice (AOO) Bugzilla – Issue 67369
awt UnoControl Roadmap - Items not visible
Last modified: 2013-07-30 02:39:07 UTC
If you populate a com.sun.star.awt.UnoControlRoadmapModel with some items and *after* you add the control to the dialog, the items are not visible. Please, consider the following example: REM ***** BASIC ***** Sub Main oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) oRoadmapModel = oDlg.Model.createInstance("com.sun.star.awt.UnoControlRoadmapModel") With oRoadmapModel .Height = oDlg.Model.Height .Width = oDlg.Model.Width/3 .PositionX = 0 .PositionY = 0 .Name = "RoadMap" .Text = "Steps" End With Step1 = oRoadmapModel.createInstance() Step1.ID = 1 Step1.Label = "step 1" Step1.Enabled = True oRoadmapModel.insertByIndex(0, Step1) Step2 = oRoadmapModel.createInstance() Step2.ID = 2 Step2.Label = "step 2" Step2.Enabled = True oRoadmapModel.insertByIndex(1, Step2) oDlg.Model.insertByName( "RoadMap", oRoadmapModel ) oDlg.execute() End Sub
JSC -> MT: one for the awt owner ;-)
Roadmap control is from BC...
bc: If you create the RoadmapItems after the insertion of the roadmap into the dialog it works fine as you can see further down. I will accept the issue anyway but set the target to "Office Later". Sub Main oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) oRoadmapModel =Dlg.Model.createInstance("com.sun.star.awt.UnoControlRoadmapModel") With oRoadmapModel .Height = oDlg.Model.Height .Width = oDlg.Model.Width/3 .PositionX = 0 .PositionY = 0 .Name = "RoadMap" .Text = "Steps" End With oDlg.Model.insertByName( "RoadMap", oRoadmapModel ) Step1 = oRoadmapModel.createInstance() Step1.ID = 1 Step1.Label = "step 1" Step1.Enabled = True oRoadmapModel.insertByIndex(0, Step1) Step2 = oRoadmapModel.createInstance() Step2.ID = 2 Step2.Label = "step 2" Step2.Enabled = True oRoadmapModel.insertByIndex(1, Step2) oDlg.execute() End Sub
bc: Relevant for Uno-AWT documentation. Therefor I set the appropriate parent task
There are also some documentation issues around the roadmap. There is a property "Activated" but none "Interactive" The color information of the selected roadmap item is also wrong
Another result of this issue is that the roadmap control may not be created before the peer of the window dialog has been created.
Reset assignee on issues not touched by assignee in more than 1000 days.