New topic: 

ComboBox doesn't work event Change

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

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        FCampos          Post subject: ComboBox doesn't work event 
ChangePosted: Fri May 10, 2013 7:13 am                         
Joined: Tue Nov 13, 2012 11:19 am
Posts: 7                Hi

When I select an item clicking on it with my mouse, the event "Change" works 
very well.
But if I select an item typing it with the "AutoComplete=True", nothing happens.

I'll try to explain.
I have 3 item in a combobox: John, Mary, Steve

In the event "Change" I have this code:

  Msgbox "Hi"

Simple, isn't it?
Well. If I use my mouse to select an item, the messagebox shows up.
But, if I use just my keyboard, typing the item, nothing happens.

Am I doing anything wrong?
How can I solve this?

Please help.

Fernando.   
                             Top                Jason_Adams          Post 
subject: Re: ComboBox doesn't work event ChangePosted: Fri May 10, 2013 8:57 am 
                                
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1827
Location: Michigan, USA                The ComboBox is known for being fickle. 
Does it help if you use the TextChanged event as well?

Do you need the typing ability the ComboBox, or can you use a PopupMenu? If you 
can, I recommend using it instead.

Hope this helps!     
_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult 
and not tried." - G.K. Chesterton  
                             Top                me.self          Post subject: 
Re: ComboBox doesn't work event ChangePosted: Fri May 10, 2013 12:58 pm         
                
Joined: Wed May 25, 2011 10:18 am
Posts: 29                Jason_Adams wrote: Do you need the typing ability the 
ComboBox, or can you use a PopupMenu? If you can, I recommend using it instead.
In Cocoa, the Popup menu does not fire it's ChangeEvent when it's changed via 
code. Hopefully Xojo fixes that...

Kind regards
Christian      
_________________
me.self works with:
Real Studio Pro (always the latest), 10.7.x, Mac mini i5, Love  
                             Top                FCampos          Post subject: 
Re: ComboBox doesn't work event ChangePosted: Fri May 10, 2013 2:27 pm          
               
Joined: Tue Nov 13, 2012 11:19 am
Posts: 7                Thank you all for your answers.

I'm doing an application (migration from another in Access) that basicaly works 
with the keyboard because it needs to be very fast introducing data from the 
user, and keyboard with minimal key typing is the best way.

I already have it in Access, and the combobox in Access is wonderfull. 
Multicolum, nowait to load when you asociate it to a query or a table, works 
perfect with many rows, ... The unique limitation that I've found is that it's 
display just 65535 rows, but below this it's perfect. 
I use this control a lot, and I would like to have something similar.

I will try with popupMenu, but I'll have to forget about using this control 
with so many rows. 
I also will try to play with the keydown event.

Thanks again.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 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