Jump to content

Change button background color dcl on click select


Recommended Posts

Posted

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.

  • Like 2
Posted (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 by Steven P
  • Like 1
Posted

Might also ask Bandicam.com how they did this, a little flattery could be enough for them to 'show off' and share their abilities?

  • Like 1
Posted

You might have a look at THIS

 

Could adapt that example maybe?

  • Like 2
  • Thanks 1

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...