Hi guys.
So in the classic days we saw some interfaces with blue buttons. Mostly GadTools based. So I'm wondering if it's easy enough to do so with BOOPSI?
My testing says no, not easily. I've played with tags like BUTTON_BackgroundPen and BUTTON_FillPen and haven't yet got a satisfactory result.
At first any colour changed didn't make sense. I found out that calling it a pen is misleading. It doesn't infact take a pen index but a palette index. That is not the same. I found out after the fact that the pen must be looked up in the DrawInfo pen list to find the palette entry and then passed as palette entry. That's confusing and I almost found it by accident after a hunch.
So I wanted to try changing the button to FILLPEN so it had active blue colour. It changed it but it looks plain and doesn't match active fill like in windows. There is no gradient. I just want to change colour and nothng else. Can it be told to just change colour underneath and keep gradient effects?
Next I wanted to try a toggle button. So when depressed it was blue. But I couldn't get it to work. I could only get it go blue when unpressed. Can a toggle button colour be changed so it's blue when pushed in and normal when pushed out?
ok, here is an example, see if it suits your needs:
AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P
@jabirulo
Thanks for your example jabirulo. At first I wondered how to copy with line numbers. But after I pasted only the text body had copied so that's good. :-)
I tested it out and got the same results with my code, though I didn't test using the SHINEPEN. It displayed a button with a plain blue background that when pressed was a light grey background. The gradient was missing.
So, it looks like the basic pen colour cannot be changed, without removing the gradient. I just wanted it to change base colour underneath gradient effect. I didn't notice any "new look" pen tags. So it looks like simply just changing pen colour isn't possible as it changes the look.
the maybe you can try:
AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P
I considered that. But I would need to know exactly how to duplicate what the OS is doing. From a cursory glance it needs some layer when setting a default hook. Should be possible that way. But as always BOOPSI makes simple operations complicated. :-)