Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cheezy Tip of the Week (VFP)
Message
From
08/07/1998 15:01:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Cheezy Tip of the Week (VFP)
Miscellaneous
Thread ID:
00115421
Message ID:
00115421
Views:
57
Rather than pounding your head on the desk in frustration trying to move controls around on a Toolbar (only to have VFP try to snap them in where *it* wants to), try the following:

1) Create a Container object. Make it BorderWidth=0 and BackStyle=0 (transparent). Put all your CommandButtons or whatever you like in the container.

2) Now create your ToolBar and drop an instance of the Container class in it.

Just make sure you use syntax like tbrMain.conMain.cmdModule rather than tbrMain.cmdModule.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Next
Reply
Map
View

Click here to load this message in the networking platform