New topic: 

Window allways on the top (banner like) ?

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

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        tadicboris          Post subject: Window allways on the top 
(banner like) ?Posted: Sun Jun 02, 2013 3:51 am                         
Joined: Fri Nov 25, 2011 3:14 am
Posts: 27
Location: Serbia                I have two windows, Window1 with TextField and 
Window 2. Window1 is main application window and Window2 is floating window 
supposed to be an advertisment banner activated by the timer (it check text 
every 3 sec.) once in the runtime when in the textfield user writes "banner".

Problem is in the focus!

When Window2 (advertisment) is showed I loose focus on TextField on the 
Window1. Window2 is correctly showed but user must manually click on textfield 
to get focus again.

Is there way to solve this problem?      
_________________
Dr Boris Tadić
Medical Software Development
www.digitsoft.rs  
                             Top                charonn0          Post subject: 
Re: Window allways on the top (banner like) ?Posted: Sun Jun 02, 2013 5:15 am   
                              
Joined: Mon Apr 02, 2007 2:08 am
Posts: 1224
Location: San Francisco, CA, USA                In the advertisement window's 
Close event, set the focus back to the textfield:
Sub Close()
  Window1.TextField1.SetFocus()
End Sub
      
_________________
Boredom Software  
                             Top                tadicboris          Post 
subject: Re: Window allways on the top (banner like) ?Posted: Sun Jun 02, 2013 
5:54 am                         
Joined: Fri Nov 25, 2011 3:14 am
Posts: 27
Location: Serbia                Yes, I know that.. But I need to preserve 
Window2 opened while user enterning text in TextField. Idea is just to show 
advert in new advert windows (Window2) when user enter target text, without 
user interaction  and without stopping him in enterning text.      
_________________
Dr Boris Tadić
Medical Software Development
www.digitsoft.rs  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 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