Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dialog boxes

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
162 Views, 5 Replies

dialog boxes

How do you enable a button or tile when you a pick another button?
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

Look up mode_tile.



(mode_tile key mode)

From Help:




Arguments


key


A string that specifies the tile. The key argument is case-sensitive.


mode


An integer that can be one of the following:



0 Enable tile



1 Disable tile



2 Set focus to tile



3 Select edit box contents



4 Flip image highlighting on or off




Return Values



nil



Bob

Message 3 of 6
Anonymous
in reply to: Anonymous


Hi,

 

In a dition to what Bob said, you might consider
the following:

 

(action_tile "1st_button" "(mode_tile "2nd_button"
0)")

 

 

HTH


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
How
do you enable a button or tile when you a pick another
button?
Message 4 of 6
Anonymous
in reply to: Anonymous


or (action_tile "1st_button" "(mode_tile
/"2nd_button/" 0)")

 

;o)


--
Daron
There are 3 ninjas in this post,
try to find
them.

 
Message 5 of 6
Anonymous
in reply to: Anonymous


Hi DD,

 

Yes, you are right, nested strings require escape
characters, although I think is the backslash, instead the forward slash. The
reason I wrote it like this, is because I use to do these things a little
bit differently, just to avoid these escape characters, which sometimes, can
become quite messy. So I prefer to define a local function associated with the
specific tile and call the whole stuff inside this function. This way, no need
for the escape characters. In our simple case, it becomes:

 

(defun action_tile_1st_button ()

    (mode_tile "2nd_button"
0)

)

 

and then, in the callback zone of the main
function, I call my local function:

 

(action_tile "1st_button" "(action_tile_1st_button
)")

 

But this time, mea culpa, I've just mixed the
things a little bit, by doing it the classical way and thinking in my particular
way.

 

Regards,

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


or (action_tile "1st_button" "(mode_tile
/"2nd_button/" 0)")

 

;o)


--
Daron
There are 3 ninjas in this post,
try to find
them.

 
Message 6 of 6
Anonymous
in reply to: Anonymous


> although I think is the backslash

 

you are correct sir.
size=2>:o)


--
Daron
There are 3 ninjas in this post,
try to find
them.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost