News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Different boxes
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: Different boxes

EDIT: Oh heck...that's funny.

Code:
for k,v in pairs(fltk) do print(k,v) end

This shows all entries in the fltk table. I just noticed these functions:
fl_define_FL_SHADOW_LABEL
fl_define_FL_PLASTIC_UP_BOX
fl_define_FL_OVAL_BOX
fl_define_FL_EMBOSSED_LABEL
fl_define_FL_RFLAT_BOX
fl_define_FL_SHADOW_BOX
fl_define_FL_ROUND_UP_BOX
fl_define_FL_RSHADOW_BOX
fl_define_FL_DIAMOND_BOX
fl_define_FL_ROUNDED_BOX
fl_define_FL_GTK_UP_BOX
fl_define_FL_ENGRAVED_LABEL

After calling the appropriate function, I was able to use the related box type or label type using their numeric values.
It seems like an odd way to do it, but maybe it's done for lower memory usage or something?

Original post....

Quote:
can be done with the numerical values

fltk._FL_DIAMOND_UP_BOX = 24
fltk._FL_ROUND_UP_BOX = 22
fltk._FL_SHADOW_BOX = 15
fltk._FL_ROUNDED_BOX = 18
fltk._FL_OVAL_BOX = 26
fltk._FL_PLASTIC_UP_BOX = 30
fltk._FL_GTK_UP_BOX = 38

Some of these values make some sort of minor change, but it is not the change displayed in the documentation.

I also don't understand why these constants all begin with an underscore while most others do not.

This post was last modified: 10-29-2007 05:33 AM by mikshaw.

10-29-2007 05:16 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Different boxes - scoop0101 - 10-24-2007, 07:44 AM
RE: Different boxes - znarf - 10-25-2007, 04:07 AM
RE: Different boxes - mikshaw - 10-25-2007, 07:20 AM
RE: Different boxes - scoop0101 - 10-26-2007, 08:18 AM
RE: Different boxes - JohnMurga - 10-28-2007, 10:01 PM
RE: Different boxes - mikshaw - 10-29-2007 05:16 AM
RE: Different boxes - JohnMurga - 10-29-2007, 11:00 PM
RE: Different boxes - mikshaw - 10-31-2007, 01:53 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: