Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a button bar?
Message
 
 
À
24/06/2004 15:09:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00916950
Message ID:
00917002
Vues:
10
VFP have an native toolbar class, do it with the class designer, or by code in PRGs:
PUBLIC oToolBar
oToolBar = CREATEOBJECT("MyToolBar")
oToolBar.Show()
DEFINE CLASS MyToolBar AS Toolbar
  Caption="This is My Toolbar by code"
  ADD OBJECT cmdButton1 AS MyButton
  ADD OBJECT cmdButton2 AS MyButton
  PROCEDURE cmdButton2.Click
    *** Modified Procedure
    MESSAGEBOX("Hola Mundo")
  ENDDEFINE
ENDDEFINE
DEFINE CLASS MyButton AS CommandButton
   PROCEDURE Click
      MESSAGEBOX("Hello World")
   ENDPROC
ENDDEFINE
HTH.
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform