String gadget

7 posts / 0 new
Last post
Massi
Massi's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2012-03-28 17:16
String gadget

Hello!
I need to render a string gadget with custom (say user defined) background and text colors. I couldn' t find any helpful example.
Any idea?

Thanks, regards

Massi

thomas
thomas's picture
Offline
Last seen: 1 week 5 days ago
Joined: 2011-05-16 14:23
Which GUI engine? MUI,

Which GUI engine? MUI, ReAction, GadTools, native Intuition?

Massi
Massi's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2012-03-28 17:16
Well I have ReAction in mind.

Well I have ReAction in mind.

thomas
thomas's picture
Offline
Last seen: 1 week 5 days ago
Joined: 2011-05-16 14:23
Did you consider reading the

Did you consider reading the autodocs and making an example by yourself? STRINGA_Pen and STRINGA_ActivePens are probably the attributes you are after.

Massi
Massi's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2012-03-28 17:16
Yes, I also focused on those

Yes, I also focused on those attributes, but how to fill them?
My guess so far is through IGraphics->ObtainBestPenA() / IGraphics->ReleasePen() but I am not sure about it.
Investigation ongoing.

thomas
thomas's picture
Offline
Last seen: 1 week 5 days ago
Joined: 2011-05-16 14:23
Fresh example:

Fresh example: http://thomas-rapp.homepage.t-online.de/examples/getstr.c

Massi
Massi's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2012-03-28 17:16
Thanks, really handy example.

Thanks, really handy example.

Log in or register to post comments