Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 18, 2013 1:59 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue May 18, 2010 2:48 am 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
In the ColorSelect widget there are +/- controls for RGB, Hue, Alpha, etc. Is there a way to disable them? I just need the 2D area. Or optionally, be able to toggle them with an "Advanced Color Control" checkbox?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2010 4:33 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1171
Ok, check the new methods on ColorSelector:
setShowNativeAdjuster()
setShowRGBAdjuster()
setShowAlphaAdjuster()

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2010 9:50 pm 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 594
works as expected :) Thanks much.

edit, quick question. How do you readjust the size? I tried adjustsize() on the dialog layout:

Screen shot:
http://imgur.com/ytbV6.png

Basically after I uncheck the 'advanced options', I want it to return to the original size of window 1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Group