Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing a toolbar
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01118424
Message ID:
01119326
Views:
19
>This works for me:
>
>PUBLIC m1 AS Toolbar
>m1 = CREATEOBJECT([ToolBar])
>m1.AddObject([cEdit],[EditBox])
>m1.cEdit.Width = 500
>m1.cEdit.Height = 500
>m1.cEdit.Visible = .t.
>m1.Show()
>WAIT WINDOW [Press a key...]
>m1.cEdit.Width = 800
>WAIT WINDOW [Press a key...]
>m1.cEdit.Height = 200
>WAIT WINDOW [Press a key...]
>RELEASE m1
>
This needs to be done when the toolbar is resized by the user which doesn't take place.
I put the following code in Resize event of the toolbar:
this.edtMessage.Width = this.Width 
this.edtMessage.Height = this.Height 
The resize event never fires.

I could add a button or two to resize the editbox to the toolbar which is not consistent from the rest of the forms in the application. The uses would ask: "Now why did you make this so different from the others?"
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform