Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column CommandButton
Message
De
02/01/2020 04:58:39
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01672489
Message ID:
01672507
Vues:
90
>Hi,
>
>In a grid I am replacing (in code) a column default control (text) with a commandbutton. I created the class of this command button as follows:
>
>DEFINE CLASS MyCommand AS CommandButton
>
>	Caption = "My Caption"
>	width = 100
>	
>	PROCEDURE Click
>	
>              messagebox("Clicked")
>ENDDEFINE 
>
>
>The button does appear as a button in the grid. And when I click on it, the messagebox does pop up. So, I know that this class (MyCommand) is being used. But the width of the command button is exactly as the width of the column. And I don't see the Caption "My Caption" on this button.
>
>What am I missing?
>
>TIA
The member object of the column has the width of the column.

If you want to set the width,top,Height,Left you have to insert a container as column's member and inside the container put the button object.
You can put a container with many elements.
Anchor property works !
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform