I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

November Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi Object PASCAL Topic   Print This     

Arrays and Checkboxes/ComboBoxes

Arrays and Checkboxes/ComboBoxes in Delphi Object PASCAL topic (part of our Pascal and Delphi Coding group).

Quick Search: Checkboxes/ComboBoxes   Arrays Checkboxes/ComboBoxes  
MerLiN
Australia
Does anyone know how to use arrays with Checkboxes/ComboBoxes. What I want is for the user to select an item in a combobox and if they check the checkbox it will stay checked for that item.

Merlin
http://kickme.to/merlin73
 Posted 18 years ago (Thread Starter)
Comment Quote
About MerLiN -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #8505, 2 replies
Thread Started 11/29/2002 10:33:00 PM
View Counter=2799
Last Reply Posted 11/30/2002 2:08:00 PM)
Location=Australia  
Joined=18 years ago   MB Posts=13  
Larry Drews
Iowa
Merlin,

Does anyone know how to use arrays with Checkboxes/ComboBoxes. What I want is for the user to select an item in a combobox and if they check the checkbox it will stay checked for that item.

I would like to make a guess here. Since the question regarding arrays of controls frequently comes from programmers with Visual Basic experience, I would guess that you have recently been programming in Visual Basic and are just learning about Delphi. If so, welcome. If not, please excuse my presumption.

The most direct way to accomplish your goal is to use a TListView component. The TListView component has a property that causes a checkbox to be associated with each item in the list. The setting of an individual checkbox is persistent.

So, check out TListView components. If they do not satisfy your requirements, let me know and I will go into some less direct ways to accomplish the same thing.
 Posted 18 years ago
Comment Quote
About Larry Drews -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Larry Drews
Veteran software developer specializing in Delphi/Kylix development. Currently Manager of Applications Development for a biotech company in Iowa.

Post ID #8507 (Level 1.1)  Reply to 8505
Thread Started 11/30/2002 1:52:00 PM
View Counter=2
Location=Iowa  
Joined=18 years ago   MB Posts=67   KB Comments=1  
Most Recent Post
Larry Drews
Iowa
Aargh! I hate it when I forget the obvious. Look up TCheckListBox.
 Posted 18 years ago
Comment Quote
About Larry Drews -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
About Larry Drews
Veteran software developer specializing in Delphi/Kylix development. Currently Manager of Applications Development for a biotech company in Iowa.

Post ID #8508 (Level 1.2)  Reply to 8505
Reply Posted 11/30/2002 2:08:00 PM
Location=Iowa  
Joined=18 years ago   MB Posts=67   KB Comments=1  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1287A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #8505 Counter
2799
Since 4/2/2008

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech