taybac213 Posted August 3, 2023 Posted August 3, 2023 Is it possible to change the background color of the button when clicking? Everyone's help is welcome! Button background color.mp4 Quote
BIGAL Posted August 3, 2023 Posted August 3, 2023 Plain dcl does not support background color in buttons, but in saying that a image button can have a background color, I dont think you can change label color either., the image shown dcl was probably done in C/.net or VBA or Opendcl that have more flexibilty. 2 Quote
Steven P Posted August 3, 2023 Posted August 3, 2023 (edited) You can also get part way in DCL with the image_button tile (see Lee Macs Attribute Colour for an example), however it doesn't have a label - so no text on top. You might be able to do something by placing text in the pop-up so it bleeds on top of the image, or similar to Lee Macs example, a smaller image to the side of the text that changes colour to highlight where you selected. Like Big Al though, there is nothing that will be a normal button with different colour background. I'd probably use an image button and when you select it swap the images for them all EDIT: Are you sharing the LISP / DCL? In which case any images you use will need to be shared and that user will need to copy them into the safe files location, use the same folder structure you use and code into the LISP or modify the file location to suit themselves. An alternative more tedious is to draw the text as vectors in the image (lines, not text) over a coloured background and this can all be contained in a single LISP file. Bit of work but that might give the result you are looking for? Edited August 3, 2023 by Steven P 1 Quote
Steven P Posted August 3, 2023 Posted August 3, 2023 Might also ask Bandicam.com how they did this, a little flattery could be enough for them to 'show off' and share their abilities? 1 Quote
SLW210 Posted August 3, 2023 Posted August 3, 2023 You might have a look at THIS Could adapt that example maybe? 2 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.