Jump to content

Recommended Posts

Posted

can I change the properties of a label or a text?

 

: dialog

 

{

label = "text1 ...." ;

: row

{

: list_box

{

label = "text2....." ;

 

Can I change the color, text style of this text1,and text 2?

 

Regards..

...

Subho o:)

India

Posted

Would you settle for highlight?

 

(defun c:test (/ create_dialog fname fn dia)
 (defun create_dialog ()
   (setq fname (vl-filename-mktemp "tmp.DCL"))
   (setq fn (open fname "a"))
   (write-line
     "Sample
: dialog
{
 : image {
   key = \"Sample_B\";
   width = 24;
   height = 1.28;
   fixed_width = true;
   fixed_height = true;
   aspect_ratio = 1;
   color = 4;
 }
 spacer;
 ok_only;
}"
     fn
   )
   (close fn)
 )
 (create_dialog)
 (setq Dia (load_dialog fname))
 (if (not (new_dialog "Sample" Dia))
   (exit)
 )
 (set_tile "Sample_B" "Background Highlight.")
 (start_dialog)
 (unload_dialog Dia)
 (vl-file-delete fname)
 (princ)
)

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...