Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Commandbutton in grid
Message
 
À
24/10/2012 06:40:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01555607
Message ID:
01555614
Vues:
46
>Hi all
>
>I want to have a grid with a single column containing a commandbutton which displays as caption a different description for each record.
>In other words i would need a sort of dynamicCaption property.
>How can I do ?
>
>I could even set the click property of the textbox but I don't want the user to fall inside the control with the cursor :)
>
>thanks
>Alessio


Change the caption of the button in some of the Grid.Column Dynamic Methods:
thisform.GridWithButton.ColumnWithButton.DynamicFontBold = "thisform.SetButtonCaption()"


*** Form SetButtonCaption method code
DO CASE
   CASE Condition1
        thisform.GridWithButton.ColumnWithButton.Caption = "Condition1"
   CASE Condition2
        thisform.GridWithButton.ColumnWithButton.Caption = "Condition2"
...
OTHERWISE
       thisform.GridWithButton.ColumnWithButton.Caption = "No Caption at all"
ENDCASE
RETURN .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform