New topic: 

Multi column combo box

<http://forums.realsoftware.com/viewtopic.php?t=38278>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        abhimmit          Post subject: Multi column combo boxPosted: 
Wed Mar 23, 2011 9:21 am                         
Joined: Mon Jan 10, 2011 1:29 pm
Posts: 2                Can i create a multi column combo box? In my case 2 
columns. I want to hide column 1 and display just column 2. When a user selects 
something, the system is to return column 1.

Thanks for your help   
                             Top                 Jym          Post subject: Re: 
Multi column combo boxPosted: Wed Mar 23, 2011 9:29 am                         
Joined: Sat Oct 01, 2005 5:19 pm
Posts: 2321                Not a database question so I don't know why you 
posted in this forum, however the answer is NO.  You can use the rowtag though 
to hold the data, which is like having an invisible column.  If you need to 
hold more than one piece of data, the rowtag is Variable so you can make a 
Class put all your properties into the class then put that into the rowtags.   
                             Top                DaveS          Post subject: 
Re: Multi column combo boxPosted: Wed Mar 23, 2011 9:29 am                      
           
Joined: Sun Aug 05, 2007 10:46 am
Posts: 2875
Location: San Diego, CA                why not have TWO combo boxes.... and set 
the VISIBLE and ENABLED properties accordingly.      
_________________
Dave Sisemore
MacPro, OSX 10.6.4 RB2009r5.1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                Jym          Post subject: Re: 
Multi column combo boxPosted: Wed Mar 23, 2011 9:33 am                         
Joined: Sat Oct 01, 2005 5:19 pm
Posts: 2321                Why have the overhead when the RowTag does that for 
you ?

comboBox1.AddRow "Hello"
comboBox1.RowTag(comboBox1.ListCount -1) = "Good-bye"

The return the RowTag when Hello is clicked   
                             Top                DaveS          Post subject: 
Re: Multi column combo boxPosted: Wed Mar 23, 2011 9:39 am                      
           
Joined: Sun Aug 05, 2007 10:46 am
Posts: 2875
Location: San Diego, CA                I mis-read the post.... I thought he 
wanted to toggle the display back and forth..... Display column 1 sometimes.... 
and display column 2 at others....      
_________________
Dave Sisemore
MacPro, OSX 10.6.4 RB2009r5.1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to