Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add toolbar to Top level form
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00155456
Message ID:
00155696
Views:
19
>Hi,
> How can i add toolbar to top level form using Screen designer?

Hi John,

You can't do it in the screen designer but you can add it at runtime. Here're the steps.

First, create a custom property of the form to hold the reference, and initialize to .NULL.. Second, in the form's .Activate event add something like this:
IF TYPE('ThisForm.oToolbar') # 'O'
  SET CLASSLIB TO Mylibrary
  WITH ThisForm
    .oToolbar = CREATEOBJECT("MyToolbar")
    * Dock it
    .oToolbar.Dock(0)
    .oToolbar.Show
  ENDWITH
  RELEASE CLASSLIB Mylibrary
ENDIF
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform