Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 3:32 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Focus Issue
PostPosted: Mon Jan 12, 2009 12:44 pm 
Offline

Joined: Sun Nov 09, 2008 7:01 pm
Posts: 21
Hi,

I am using a G58E and I have 3 DropDownList boxes on the same vertical level and slightly spaced apart from each other horizontally. They are all the same size. When I run my application the 3rd box starts off as the focus rather than the 1st one. The settings all appear to be the same between them all in every way (even the 3 options available in the drop down itself), however Qlarity insists on making the 3rd box the starting focus. I tried moving box 3 to where box 1 is and vice-versa. Qlarity still highlights whatever box is in the third position as the first focus.

Any ideas?

Thanks,

B.Blair


Top
 Profile  
 
 Post subject: Re: Focus Issue
PostPosted: Mon Jan 12, 2009 12:47 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Yes. Try this code in your global code:

Code:
func Startup ()
    handles MSG_INIT
    'Add any code needed to prepare the workspace here.

    'Code that needs to intereact with other objects, or that needs the
    'Z-order to be established should be placed in PostInit function
    UserDirectMsg(default, _MSG_POST_INIT, 0, false)
    return
endfunc

func PostInit(parm as integer) returns boolean
    handles _MSG_POST_INIT
    'This function will be called after all objects have processed their Startup function

    'Add any startup code that needs to interact with other objects here

    Screen_1.ScreenEnabled()
    return true
endfunc


Replace Screen_1 with the name of the screen holding the DropDownLists.

Next in the screen that is holding the objects, add this code:

Code:
func ScreenEnabled()
    _SetFocus(DropList_1)
endfunc


Replace DropList_1 with the name of the drop list you wish to receive initial focus.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject: Re: Focus Issue
PostPosted: Mon Jan 12, 2009 1:00 pm 
Offline

Joined: Sun Nov 09, 2008 7:01 pm
Posts: 21
Yes, that solved it! Thanks again Jeremy for always providing such fast accurate responses! This definitely would have taken me quite some time to figure out otherwise.

B.Blair


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group