Slick Forums

Discuss the Slick 2D Library
It is currently Sat Dec 16, 2017 2:57 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Define a new color
PostPosted: Mon Jul 08, 2013 2:58 pm 
Offline

Joined: Mon Jul 08, 2013 9:55 am
Posts: 3
Hi !

I would like to create a new color from a xml file. It tried <colorDef> but it doesn't work...

Do you know what I can do ?

Thanks ;)


Top
 Profile  
 
 Post subject: Re: Define a new color
PostPosted: Tue Jul 09, 2013 4:55 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1242
Try:
Code:
<constantDef name="mycolor"><color>#123456</color></constantDef>
You should then be able to just use this color like any other predefined color.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject: Re: Define a new color
PostPosted: Tue Jul 09, 2013 9:17 pm 
Offline

Joined: Mon Jul 08, 2013 9:55 am
Posts: 3
Ok thanks you, it's ok !

I have another question, but i don't want to create another topic. I tried to make a textarea with a scrollbar and i didn't acheive it. On the exemple, the frame is resizable, what widget i have to use to create a textarea with a scrollbar and neither draggable nor resizable ?

Thanks in advance ;)


Top
 Profile  
 
 Post subject: Re: Define a new color
PostPosted: Tue Jul 09, 2013 10:41 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1242
Put it inside a ScrollPane and set the size of the ScrollPane.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
 Post subject: Re: Define a new color
PostPosted: Wed Jul 10, 2013 9:26 am 
Offline

Joined: Mon Jul 08, 2013 9:55 am
Posts: 3
Oh, i have tried this but I forget the size of the scrollPane... Thanks you ;)


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