Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Represent Records as Command Buttons
Message
De
29/05/2017 06:16:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/05/2017 04:20:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
SAMBA Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01651586
Message ID:
01651587
Vues:
92
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All,
>
>Anybody ever did a class that creates command buttons to represent records in a table? Am planning to use this type of UI to show the students in a particular section -- or maybe there is a much better idea, I will be happier for that.

That should be easy - simply
lnTop=0
scan
   lcName="btn"+transform(recno())
   this.addobject(lcName, "commandbutton")
   loButton=this.getpem(lcName)
   with loButton
      .top=lntop
      .caption="Button # "+transform(recno())   && or something else
      lnTop=lnTop+.height+2
      .visible=.t.
   endwith
endscan
Of course you may want to set more properties, and of course you will run out of vertical space. You may want to introduce multiple columns of buttons, if you like.

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