Issue 67369 - awt UnoControl Roadmap - Items not visible
Summary: awt UnoControl Roadmap - Items not visible
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P5 (lowest) Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-14 11:40 UTC by paolomantovani
Modified: 2013-07-30 02:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description paolomantovani 2006-07-14 11:40:27 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
Comment 1 jsc 2006-07-14 16:19:56 UTC
JSC -> MT: one for the awt owner ;-)
Comment 2 malte_timmermann 2006-07-14 16:42:01 UTC
Roadmap control is from BC...
Comment 3 berend.cornelius 2006-07-18 14:52:21 UTC
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

Comment 4 berend.cornelius 2006-12-14 15:56:06 UTC
bc: Relevant for Uno-AWT documentation. Therefor I set the appropriate parent task
Comment 5 berend.cornelius 2006-12-21 15:08:27 UTC
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
Comment 6 berend.cornelius 2007-04-25 18:15:31 UTC
Another result of this issue is that the roadmap control may not be created
before the peer of the window dialog has been created.
Comment 7 Rob Weir 2013-07-30 02:39:07 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.