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


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

Better UI

Replace this:

Code:
but_show = fltk:Fl_Button(10,wh-30,50,22,"show");
but_show:callback(function()
  group:show()
end)

but_hide = fltk:Fl_Button(75,wh-30,50,22,"hide");
but_hide:callback(function()
  group:hide()
end)


With:

Code:
but = fltk:Fl_Light_Button(10,wh-30,80,22,"visible");
but:value(1)
but:callback(function(self)
  if (self:value() == 1) then
    group:show()
  else
    group:hide()
  end
end)

This post was last modified: 06-05-2007 11:21 PM by widged.

06-05-2007 11:20 PM
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
group demo - widged - 06-05-2007, 10:21 PM
RE: group demo - widged - 06-05-2007 11:20 PM
RE: group demo - mikshaw - 06-06-2007, 02:25 AM
RE: group demo - widged - 06-06-2007, 08:02 AM

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

Forum Jump: