Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column CommandButton
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01672489
Message ID:
01672495
Views:
51
Thank you.

>It's a grid column property
>
>
>>I do have Sparse = .F.; so the command button does look like a command button in the grid.
>>But I am not sure where you think I should have the code "CurrentControl=cmdbutton" Could you please clarify?
>>Thank you.
>>
>>>Check: CurrentControl=cmdbutton and Sparse=.f.
>>>
>>>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 creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform