The AutoLisp Ultimate Tutorial - Dialog Control Language - DCL

[画像:jpsheader.jpg (29354 bytes)]

Back to DCL Tutorial Homepage

Back to AutoLisp Homepage

Back to /

The AutoLisp Tutorial - DCL

Dialog Control Language - Set and Mode Tile


Set_Tile and Mode_Tile


Set_Tile - is used to set the value of a control.

(set_tile "key" "value")

Set_Tile has two parameters. "Key" and "Value".

"Key" - The name of the key you defined with the control inside the DCL file.

"Value"- The new value for the control.

  • Edit_box
    • (set_tile "mybox" "Jeff") Displays Jeff in the edit box.
    • (set_tile "mybox" "4'-3 1/2") Displays 4'-3 1/2 in the edit box.
  • List_box
    • (set_tile "mylist" "0") Selects the first item in the list.
    • (set_tile "mylist" "5") Selects the sixth item in the list.
    • (set_tile "mylist" "") No Items are selected.
  • PopUp_List
    • (set_tile "mylist" "0") Selects the first item in the list.
    • (set_tile "mylist" "5") Selects the sixth item in the list.
    • (set_tile "mylist" "") No Items are selected.
  • Toggle
    • (set_tile "mytog" "0") Removes the check from the box.
    • (set_tile "mytog" "1") Checks the box.
  • Radio_Button
    • (set_tile "myradio1" "1") Moves the selection to the first radio button.
    • (set_tile "myradio2" "1") Moves the selection to the 2nd radio button.

Use Set_Tile after the new_dialog and before the action_tiles. Set_Tile can also be used as a function while the dialog box is displayed.


Mode_Tile - is used to enable or disable a control.

(mode_tile "key" value)

Mode_Tile has two parameters. "Key" and Value.

"Key" - The name of the key you defined with the control inside the DCL file.

Value- The new value for the control. 0 = Enabled 1 = Disabled

(mode_tile "mylist" 0) Enables the list box

(mode_tile "mylist" 1) Disables the list box

Use Mode_Tile after the new_dialog call and before the action_tiles. Mode_Tile can also be used as a function while the dialog box is displayed.


That is all there is to set_tile and mode_tile. We will used them later on in the tutorial so you can see them in action.

Back


AutoLisp DCL Tutorial Home

AutoLisp Home

Home

All questions/complaints/suggestions should be sent to /

Last Updated April 1st, 2013

Copyright 2002-2013 /. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /