>Having a toolbar with several objects, how would it be possible to rearrange the objects in code?
>For testing I create a toolbar but I can't find any way to move command 2 to the first position of the toolbar.
>
>lo = NEWOBJECT("Toolbar")
>lo.Visible = .T.
>lo.AddObject("cmd1","Commandbutton")
>lo.cmd1.Visible = .T.
>lo.cmd1.Caption = "Command 1"
>lo.AddObject("cmd2","Commandbutton")
>lo.cmd2.Visible = .T.
>lo.cmd2.Caption = "Command 2"
>
>Any ideas?
Did you try playing with ZOrder?
If it's not broken, fix it until it is.
My Blog