Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Dynamic Caption
Message
De
10/03/2006 10:52:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/03/2006 10:05:42
Luis Navas
Independent Consultant
Auckland, Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01103071
Message ID:
01103120
Vues:
30
>First, thanks for your answer. I need that commandbutton changes it's caption depending if an property or objects exists.
>
>When someone click the button in the grid, I add an object to the parent container with the name of the row of the grid in wich the commandbutton was clicked, in that moment I want to change the caption of the button clicked, but only in that button not all the other that are in the column.

There's only one row at a time - the others are just the images of when they were current. That means you don't have n buttons for n rows, there's only one button. If you change some of its properties based on anything not related to the current row, then it applies to all rows.

So when you add the object to parent, make sure you write something into a field in the current row (fields not shown on grid are also OK), and use the content of that field to build the commandbutton's caption. If you have trouble doing this, you may need n different buttons in your column and set the proper one via DynamicCurrentControl. You may try with just one button, .column.sparse=.f. and commandbutton's .refresh setting the button's caption - it may work, haven't tried.

Alternately, you could put an underlined label or read-only textbox instead of the button, and have them display the content of the field I mentioned.

Not sure this is clear... but it also isn't easy :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform