New topic: 

SetFocus insanity!

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        McDian          Post subject: SetFocus insanity!Posted: Fri Apr 
26, 2013 4:40 pm                         
Joined: Fri Sep 14, 2007 5:00 pm
Posts: 405                OpenSuSE 12.2 (reverted back to 12.2 from 12.3 due to 
the fact REALStudio wouldn't run on 12.3)
Real Studio 2012 Release 1 (later releases are unstable on OpenSuSE 12.2... 
random crashing when doing simple things, like copy code bits)

I have tried ClearFocus, then Window.TextField.SetFocus.
I have tried ClearFocus, then Window.TextField.SelLength with 
Window.TextField.SetFocus
I have tried TextField.SetFocus

And while the TextField I am wanting to assign focus to, place the cursor in 
will execute the TextField.GotFocus code I have entered:

// Variable Declarations

' :-- NONE DEFINED --:

// Preliminary Functions...

' :-- NONE DEFINED --:

// Primary Functional Logic...
' Set backcolor to yellow and bold when got focus... this is a visual cue for 
the user...
Me.BackColor = &cF7FF00 ' Set backcolor to yellow
Me.SelLength = 0 ' Set cursor to the beginning of the field.
lblCost.TextColor = &cEEE2B0


Nothing works... Watch...

http://s735.photobucket.com/user/Americ ... 8.mp4.html

I are stumped...   
                             Top                timhare          Post subject: 
Re: SetFocus insanity!Posted: Fri Apr 26, 2013 6:14 pm                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12262
Location: Portland, OR  USA                If you are calling SetFocus from 
MouseDown, be sure to return True from MouseDown.   
                             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