Initializing-the-Default-Dialog-Values

Initializing the Default Dialog Values

Initializing the Default Dialog Values

If everything worked successfully in loading the dialog, you are ready to start setting
up the values that will be displayed to users. A successful load is indicated if the
flag variables dialogLoaded and dialogShow are both T (true).

Now set the initial values for the tile radius and spacing. The set_tile function assigns a value to a tile. An edit box deals with strings rather than numbers,
so you need to use the rtos (convert Real TO String) function to convert your tile size variable values into
strings in decimal format with a precision of two digits. The following code handles
this conversion:

(if (and dialogLoaded dialogShow)
  (progn
    ;; Set the initial state of the tiles
    (set_tile "gp_trad" (rtos tileRad 2 2))
    (set_tile "gp_spac" (rtos tileSpace 2 2))
  )
)

Learning AutoCad

everything worked successfully in loading the dialog, you are ready to start setting up the values that will be displayed to users. A successful load is indicated if …dialog, you are ready to start setting up the values that will be displayed to users. A successful load is indicated if …dialog, you are ready to start setting up the values that will be displayed to users. A successful load is indicated if …Initialize variable with default value—If you select this option, the variable will be initialized with the value specified in the Default value box during Host …dialog box displays the specified default values. You cannot use mask initialization …Variables tab can list several variables in the Variables column, and the initialization block SQL in the Default initializer list can list multiple columns in the  …initialize-preferences-from-xml-in-main-activity …. I don't want to call DialogPreference, I need the default value when the user doesn't user the Preferences. – Peterdk Apr 25 '10 at 14:46 …