IPB

Welcome Guest ( Log In | Register )

Colors question in Panel Stack Splitter
matif
post May 18 2012, 11:55
Post #1





Group: Members
Posts: 22
Joined: 11-May 12
Member No.: 99730



Hello, I want to use two colors in Panel Stack Splitter, but I can't.
Hope someone help me.
This is the line I wrote.
CODE
$drawstring($rgb(128,128,128)%artist%$rgb() %title%,15,210,220,100,0-128-255)

I want it be → Artist - Title
But it shows → 808080Artist - Title
Could anyone help me?
Thank you very much!
(Is it right to post 3rd Party Plugin question here?)

This post has been edited by matif: May 18 2012, 12:05
Go to the top of the page
+Quote Post
 
Start new topic
Replies (1 - 2)
Falstaff
post May 18 2012, 13:27
Post #2





Group: Members
Posts: 2799
Joined: 12-November 06
Member No.: 37463



$rgb() not supported in PSS functions like $drawstring or $drawtextex ... color parameter is used for the whole text (%artist% + %title% in your example).
to do what you want, you have to use 2 $drawstring(..) functions, but you have to calculate the width of %artist% first (check documentation to find the right function that allow to calculate width in pixek of a text for a specified Font)

HTH

This post has been edited by Falstaff: May 18 2012, 13:27


--------------------
http://br3tt.online.fr/
Go to the top of the page
+Quote Post
matif
post May 19 2012, 16:19
Post #3





Group: Members
Posts: 22
Joined: 11-May 12
Member No.: 99730



QUOTE (Falstaff @ May 18 2012, 20:27) *
$rgb() not supported in PSS functions like $drawstring or $drawtextex ... color parameter is used for the whole text (%artist% + %title% in your example).
to do what you want, you have to use 2 $drawstring(..) functions, but you have to calculate the width of %artist% first (check documentation to find the right function that allow to calculate width in pixek of a text for a specified Font)

HTH


It is helped that you want to replay my question.
Thank you!
And I like all your skins very much!

By the way, I finally known why you show tooltip as before behavior.
Sorry for bad idea.

This post has been edited by matif: May 19 2012, 17:00
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th September 2014 - 17:11