Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize Event Not Firing in Toolbar
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01046185
Message ID:
01046995
Views:
22
> Kevin,

> The Resize event doesn't fire because you cannot resize toolbar.
> The only time it does fire when you change toolbar layout from
> horisontal to vertical or back. Just an idea, you may implement
> some kind of indirect resizing on Right Click on toolbar.

Hi Serge!
Yeah that's the conclusion I came to as well. I created 4 small "resize" buttons and a close button that appear when you right click on the toolbar. Since the toolbar contains a container with an edit field, these buttons appear above it. The user can then use these to resize the toolbar and then click the close button to make these resize buttons go away. It works pretty good. Here's some code from the click event of one of the buttons just in case anyone is interested.
** Reduce Height **
this.Parent.container1.edit1.height = this.Parent.container1.edit1.height - 10
this.Parent.container1.height = this.Parent.container1.height - 10
IF this.Parent.container1.edit1.height <= 39
   this.Parent.container1.edit1.height = 39
ENDIF
By adding the buttons, it's almost like the toolbar has a toolbar. ;)
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform