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 
Enumerations
Author Message
widged
Junior Member
**


Posts: 35
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: Enumerations

mikshaw Wrote:

Quote:
FL_WHEN_CHANGED wasn't recognized

This might be a stupid question, but did you try "fltk.FL_WHEN_CHANGED"?


That's an excellent point...sorry for the confusion I introduced when using shorthand rather than full syntax. Rapid way to check out:

Code:
frame2:box(fltk.FL_SHADOW_BOX)  

--> doesn't show any box (defaults to NO_BOX?)

Code:
frame2:box(23)

--> shows the expected box (FL_SHADOW_BOX {23;})

In other words, when the code doesn't do what you expect, it's worth to try and use the numeric value for the constant instead of the string variant.

This post was last modified: 06-07-2007 08:50 AM by widged.

06-07-2007 08:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Enumerations - mikshaw - 06-07-2007, 03:56 AM
RE: Enumerations - iGame3D - 06-07-2007, 06:12 AM
RE: Enumerations - widged - 06-07-2007, 07:11 AM
RE: Enumerations - mikshaw - 06-07-2007, 08:16 AM
RE: Enumerations - widged - 06-07-2007 08:23 AM
RE: Enumerations - mikshaw - 06-07-2007, 09:07 AM

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

Forum Jump: