Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buttons in a grid change caption
Message
From
06/05/2013 14:46:24
 
 
To
06/05/2013 12:30:02
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01572779
Message ID:
01572794
Views:
95
>Hi All
>
>I am trying to make a grid work for a touch interface and I would like to us buttons in the grid but I can't seem to make the row description show up as button caption. Is there a way to do this?
>
>Thanks.

You can fake it with one of the Dynamic properties. Take a property you probably won't use, and set it to a function. Have the function set the button's caption for the row, but return the default value for the property. When the grid is drawn the button will be drawn with the appropriate caption.

There is some oddities with this approach, such as the caption for all of the buttons temporarily changing to the current record if the button is held down, but there aren't a lot of other options in VFP.
Previous
Reply
Map
View

Click here to load this message in the networking platform