Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add toolbar to Top level form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00155456
Message ID:
00155696
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform