Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move toolbar objects
Message
From
13/11/2012 14:20:46
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01557053
Message ID:
01557055
Views:
51
>>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?

I wouldn't have guessed that! It really works, thanks.
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform