Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Wed Nov 22, 2017 7:29 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed May 26, 2010 1:37 am 
Offline

Joined: Fri Sep 18, 2009 10:59 pm
Posts: 19
Location: Mumbai, India.
How can I find the numeric values for any particular border styles?
I referred to g75demo.qly provided by QSI. I could see something like this.

Code:
dim _Bdr_ButtonBorder[] as integer
init _Bdr_ButtonBorder := [33890340, 469901313, 140589, -16441308, 335908, 1258627108, 470102052, 4194341, 335909]

_stylemap[Bdr_ButtonBorder] := _Bdr_ButtonBorder[selected]


I want to know how did you derive the numerical values as shown in the example above?

Thank You.


Top
 Profile  
 
PostPosted: Wed May 26, 2010 6:12 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
The exact details of those numbers are not officially documented.

However, if you simply want to design your own border you can use the Border Editor in Layout View (Ctrl+Alt+2), as you adjust the various border properties, the associated number will be displayed.

If you want more details, or want to create a border at runtime in Qlarity code, you might try the _CreateBorderStyle function which takes every border parameter and combines them into that number. (If you are really interested in how that number is created, I would suggest you look at the code to _CreateBorderStyle in the ColorStyleMapSupport entry of the Basic library).

If you want to know how I came up with the pre-defined values, I used the border editor in Qlarity Foundry then copied and pasted the number.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Thu May 27, 2010 8:50 pm 
Offline

Joined: Fri Sep 18, 2009 10:59 pm
Posts: 19
Location: Mumbai, India.
I could not find the number displayed in the border designer. I am using Qlarity Foundry 2.50. I have attached the pic of the border designer dialogue box that I am seeing, with this reply.

Attachment:
File comment: border designer dialogue box
border.JPG
border.JPG [ 196.01 KiB | Viewed 1428 times ]


Kindly tell me exactly from where to copy-paste the said number.
Thanks a lot.


Top
 Profile  
 
PostPosted: Tue Jun 01, 2010 6:19 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
I have to apologize -- I didn't realize that the number was not visible to you.

Qlarity Foundry, it appears, hides that UI element except when running on a select few internal computers. Looking back at the notes on that item, it looks like the general feeling was that displaying the absolute number would be more confusing than helpful and would increase the documentation load of that UI, so it was omitted.

I have written a simple function you can add to a new workspace to help you out
Code:
func Startup ()
    handles MSG_INIT

    _print("Border: 0x" + cprintf("%08x", _stylemap[bdr_bumpborder]))
    return
endfunc


Every time you exit the Border Editor, this will print the numeric value of the bdr_bumpborder style.

_________________
Jeremy
http://www.beijerinc.com


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