New topic: 

Removing Focus from Combobox

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        JimPitchford          Post subject: Removing Focus from 
ComboboxPosted: Tue Apr 19, 2011 2:51 pm                         
Joined: Mon Apr 11, 2011 2:01 pm
Posts: 1                Hi

I'm a Real newbie.

I'm trying to use the Calendar Window  Example to make a date picker for a 
database and would like to use the same look and feel as a combobox to activate 
the datepicker.

On the Combobox I am using the GotFocus event to trigger the picker like this:

Sub GotFocus()
d.totalSeconds = Calendar.GetDate(d)
me.Text=d.AbbreviatedDate
ClearFocus
return

However this appears to drive a continuous loop as the focus never gets removed 
from the Combobox.

What am I missing - is there a better way?

Jim   
                             Top                 jetpr          Post subject: 
Re: Removing Focus from ComboboxPosted: Tue Apr 19, 2011 3:38 pm                
         
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 262
Location: Puerto Rico                in my case works well but you can do

  Window1.SetFocus
  ClearFocus

     
_________________
Thanks for any contribution  and  God blesses all 
 Mac Mini with Snow Leopard v10.6.7 and Real Studio 2011r1.1 Pro And Windows 
RS2011 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 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