Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Mon Nov 20, 2017 12:51 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: ListboxV2
PostPosted: Fri Jun 24, 2011 1:27 pm 
Offline

Joined: Thu Aug 09, 2007 4:44 pm
Posts: 67
Hi,

Is there a way to disallow focus for ListboxV2? I have dissalowfocus = True but when I click on the object is still surrounds it with a scrolling black/yellow line.

Thanks


Top
 Profile  
 
 Post subject: Re: ListboxV2
PostPosted: Fri Jun 24, 2011 1:42 pm 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
I'm having trouble reproducing that. DisAllowFocus seems to be working for me.

Do you have a sample workspace that can demonstrate this problem? What version of Qlarity Foundry are you using?

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject: Re: ListboxV2
PostPosted: Fri Jun 24, 2011 2:01 pm 
Offline

Joined: Thu Aug 09, 2007 4:44 pm
Posts: 67
I'm using Qlarity Foudry v2.63

All other object that I have set to Disallow Focus seem to work properly. Should I just post my workspace here with all the images and whatnot?

Aaron


Top
 Profile  
 
 Post subject: Re: ListboxV2
PostPosted: Fri Jun 24, 2011 2:05 pm 
Offline

Joined: Thu Aug 09, 2007 4:44 pm
Posts: 67
Oops... the object is actually KeypadSpinnerV2... sorry I got the logos confused.

Aaron


Top
 Profile  
 
 Post subject: Re: ListboxV2
PostPosted: Fri Jun 24, 2011 2:19 pm 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
Arron,

It looks like there's a bug with that particular object. We'll get that fixed for future versions of Qlarity Foundry, but for now paste this into "Code View" for that particular KeyPadSpinnerV2 instance.

Code:
func ScreenPress (xdown as integer, ydown as integer) returns boolean
    handles MSG_SCREEN_PRESS
    if disallowfocus then
        return true
    endif
    return default (xdown, ydown)
endfunc

func ScreenRelease (xup as integer, yup as integer) returns boolean
    handles MSG_SCREEN_RELEASE
    if disallowfocus then
        return true
    endif
    return default (xup, yup)
endfunc

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject: Re: ListboxV2
PostPosted: Fri Jun 24, 2011 2:24 pm 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
Actually that may not be what your looking for because that also makes the object inactive. I'll post up a library that you can update to which will fix the focus but still allow you to touch the object without it getting focus.

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
 Post subject: Re: ListboxV2
PostPosted: Fri Jun 24, 2011 2:29 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Any reason you cannot just use the SpinnerV2 instead of the KeypadSpinnerV2? The SpinnerV2 cannot get the focus at all (as it is strictly designed for touch screen usage)

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject: Re: ListboxV2
PostPosted: Fri Jun 24, 2011 3:05 pm 
Offline

Joined: Thu Aug 09, 2007 4:44 pm
Posts: 67
Jeremy,

I can just use the SpinnerV2... thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 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