- NSIS Discussion
- bgtext
Archive: bgtext
jagasker
10th January 2010 18:43 UTC
bgtext
Hi all,
Just a quick qestion...
I have written an installer that uses the bggradient and bgfont attributes. When I test the installer, the gradient appears, but there is no text on the gradient.
Is there a way to set/modify the text on the bggradient?
Thanks in advance for the help.
John Gasker
johngasker@verizon.net
CrushBug
15th January 2010 04:03 UTC
Can you post a section of your code or a cut down sample that we could download and try ourselves? That would make it easier to try and help you.
jagasker
25th January 2010 17:53 UTC
I'm working on that now. I should have code posted soon.
John Gasker
johngasker@verizon.net
jagasker
25th January 2010 18:06 UTC
Here is the code. I put all necessary files inside a zip archive in order to help prevent compile errors.
(fyi - Yes, I know code is Adobe-related - I'm not going to distribute it in any way - It's for personal use)
Thanks again in advance.
John Gasker
johngasker@verizon.net
CrushBug
28th January 2010 05:32 UTC
I changed "BGGradient" to "BGGradient 000000 800000 FFFFFF" and it showed up. I think you need to explicitly set the values as I think the last value is the font color.
jagasker
28th January 2010 22:23 UTC
I made the changes and the text showed up for me as well. The last attribute is the font color. I guess all attributes must be specified in order for text to show up. Thanks, CrushBug!
Also I've got another question. Is there a default value that I can put in so that I can use the default gradient colors (black to blue) slong with the text?
Code Sample 1:
bggradient default_top default_bottom ffffff
In other words, if you looked at Code Sample 1 (above), what could I specify for the first two attributes in place of "default_top" and "default_bottom" so that the default black to blue gradient would be displayed along with the text using the color specified in the third attribute?
Note: I tried using Code Sample 2 (below) which did not work. All I got was no text and a white to black gradient.
Code Sample 2:
bggradient ffffff
Thanks again in advance for the help.
John Gasker
johngasker@verizon.net
jagasker
6th April 2010 03:32 UTC
Hi,
Haven't got a response to my recent post in awhile. Can someone possibly answer my post?
Thanks,
John Gasker
johngasker@verizon.net
Afrow UK
6th April 2010 10:43 UTC
Try empty parameters? ""
Stu
Animaether
6th April 2010 14:51 UTC
Empty parameters doesn't work..
You must specify the colors, as CrushBug stated.
What you -could- do is define the colors, of course:
Section
SectionEnd
>
Animaether
6th April 2010 14:57 UTC
or, if you -really- want to do away with the color specifications, create a new define...
Section
SectionEnd
>
But given that BGGradient is an installer attribute that you'd only really use once.. I'm wondering if it's worth the bother.