hal9k
Junior Member
Posts: 87
|
Post by hal9k on Aug 19, 2022 17:49:04 GMT -5
I'm very new and it's entirely possible that this feature exists and I've just been too dense to find it. I would like to be able to control the background and text colors for buttons. In my first app I had to use BMPbuttons and then create a button-sized bitmap with the colors and text that I wanted. I was surprised that I didn't see a better way.
|
|
|
Post by Walt Decker on Aug 19, 2022 18:21:14 GMT -5
There is no easy way to change the background and text color of a button although you can change the colors of radio and checkbox buttons. For the latter you will have to use a 3rd party dll. CTR_CLR.DLL can be found hereTo change the color of regular buttons requires that the button be given the _BS_OWNERDRAW style only. Then the the WM_DRAWITEM in the callback function must be trapped to change the look of the button. It is rather involved; however, if there were enough interest I could write a DLL that could allow the coder to do that.
|
|
|
Post by Rod on Aug 20, 2022 3:15:18 GMT -5
Well a bmp buttons is the easy solution. Admittedly a pain to draw, but once drawn, easy to work with. I did start a drawing aid but its one of many unfinished projects. Still useable though. Best if the whole GUI is themed. libertybasiccom.proboards.com/thread/1635/button-creator
|
|
hal9k
Junior Member
Posts: 87
|
Post by hal9k on Aug 20, 2022 9:42:37 GMT -5
I'm probably too much of a newbie to delve into the mystical world of dll's, so I'll just have to live with bitmaps.
Thanks!
|
|
|
Post by Walt Decker on Aug 20, 2022 14:23:46 GMT -5
Well, there is no time like the present. The sooner you delve into the API and DLLs the better off you will be. I am a little over 80% of a century and am still learning!
|
|
|
Post by tsh73 on Aug 20, 2022 14:58:52 GMT -5
|
|