Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Represent Records as Command Buttons
Message
From
29/05/2017 06:16:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/05/2017 04:20:57
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
SAMBA Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01651586
Message ID:
01651587
Views:
93
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform