DCL action_tile with slide more defined

DCL action_tile with slide more defined

dennis
Advisor Advisor
707 Views
5 Replies
Message 1 of 6

DCL action_tile with slide more defined

dennis
Advisor
Advisor

I have noticed that when I have slides defined via action_tile in a DCL dialog, if I press-hold on the image, it becomes bright.  Then after letting go of the pick, then the image has a barely discernible dashed-line around it.  Is there a way to get it to hold the 'brighter look'?  Would be nicer for the user to know which is picked.

0 Likes
Accepted solutions (1)
708 Views
5 Replies
Replies (5)
Message 2 of 6

lando7189
Advocate
Advocate

The 'brigher' look is actually a 'negavite' of the slide (reversed color values) that happens when it is clicked.  I don't believe there is a way to make the tile show reversed values permanently.  - Lanny

0 Likes
Message 3 of 6

scot-65
Advisor
Advisor
Accepted solution

@Anonymous wrote:

I have noticed that when I have slides defined via action_tile in a DCL dialog, if I press-hold on the image, it becomes bright.  Then after letting go of the pick, then the image has a barely discernible dashed-line around it.  Is there a way to get it to hold the 'brighter look'?  Would be nicer for the user to know which is picked.


Some possible options:

 

Create a second set of slides that has a different background.

If, for instance, your slides have a black background, use a gray background.

Action tile to switch out all slides.

 

Another method is to place a text_part "header" inside the dialog and associate

text for the selected tile to show in this header.

 

:text_part {key="Tex001"; alignment=centered;}

 

(action_tile "Img101" "(set_tile \"Tex001\" \"Image 101 selected.\")")

 

I once used image tiles as colored buttons that behave like radio buttons. Next to these

colored buttons is an edit box. When a colored button is selected, the mode tile of the

edit box is 0 and all others are set to 1.

 

???

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 4 of 6

paullimapa
Mentor
Mentor

In addition to what other posters have replied, you can also specify a different color background to the image tile as explained here:

http://www.afralisp.net/archive/lispa/lisp49q.htm

 

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 6

dennis
Advisor
Advisor

I was in hopes that I could use the toggle for mode_tile = 4, but I don't see a way to test the existing setting on the tile to know whether to "toggle or not to toggle".  Seems scot-65 your two options is it. 

By the way, I did pursue the background color but found that can only be set in the DCL file.  Correct me if I am wrong.

An alternative I found too in searching the threads, was to write a DCL on the fly .... but I honestly do not want to work that hard.

0 Likes
Message 6 of 6

scot-65
Advisor
Advisor

Well, I was suggesting 2 sets if images - one with a light background and one dark.

 

I have not worked with images in a DCL to help you further here other than it can

"flip" with the start_image / end_image functions. Program structure will be similar

to the function example I show below.

 

For mode_tile = 4, a little work is required, but it is possible. Again, limited

knowledge with images...

 

In your action tile section make a call to a newly created function for all the

defined image tiles and send an argument which is the tile's "key":

 (action_tile "Img101" "(IMG_MODE \"Img101\")")

 (action_tile "Img102" "(IMG_MODE \"Img102\")")

 ...

 

If there are other (existing) calls inside the image's action tile, squeeze the function

inside the quotes as well. Example:

 (action_tile "Img101" "(done_dialog 1)") becomes

 (action_tile "Img101" "(IMG_MODE \"Img101\")(done_dialog 1)")

 

Now for the function that accepts one argument:

(defun IMG_MODE ( a / )

 (foreach x (list "Img101" "Img102" "Img103" "Img104") ;etc.

  (mode_tile x (if (= a x) 4 0))

 );foreach

);end IMG_MODE

 

???

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes