Jump to content

Recommended Posts

Posted

I'm trying out DCL for the first time.

Does anyone know how to centre the text marked with a red ellipse?

 

Dialogue Box.jpg

 

Number 001 : dialog { 
          label = "Select Items";
 : column {
    : boxed_row {   
      : boxed_column {     
        label = "Entity";
              : button {
               key = "1";
	  width = 18.0;           // Set your width here
	  fixed_width = true;     // Set it as fixed width
	  alignment = centered;   // Center the list
                label = "Pick Entity:";
                is_default = false;
              }
              : button {
               key = "2";
	  width = 18.0;           // Set your width here
	  fixed_width = true;     // Set it as fixed width
	  alignment = centered;   // Center the list
                label = "Attributes";
                is_default = false;
              }               
      }
      : boxed_column {
        label = "Layer";
              : button {
               key = "51";
	  width = 18.0;           // Set your width here
	  fixed_width = true;     // Set it as fixed width
	  alignment = centered;   // Center the list
                label = "Pick Layer";
                is_default = false;
              }
              : button {               
               key = "52";
	  width = 18.0;           // Set your width here
	  fixed_width = true;     // Set it as fixed width
	  alignment = centered;   // Center the list
                label = "Attributes";
                is_default = false;
              }                        
      }
    }
            : boxed_row { 
              : button {
               key = "cancel";
	  width = 12.0;           // Set your width here
	  fixed_width = true;     // Set it as fixed width
	  alignment = centered;   // Center the list
                label = "Cancel";
                is_default = true;
                is_cancel = true;
              }
              }
  }
}

Posted

Oh.

 

Ta Lee. No wonder my fiddling with it didn't work

Posted

Only thing possible would be :

 

 

 

 

 

 

But that isn't exactly what you want

 

 

gr. Rlx

001.jpg

Posted

That's exactly what I would like.

 

How do you code that from the code above Rix ?

Posted
That's exactly what I would like.

 

How do you code that from the code above Rix ?

 

 

It's a quick and dirty fix but if it works 4 U...

 

 

gr. Rlx

001.zip

Posted

Hi,

 

Add equal number of empty spaces before and after the label name to make it looks identical.

Posted

Thanks you Rix & Tharwat, both methods work well. I've decided to use Rix method as it seems more precise.

Posted
Thanks you Rix & Tharwat, both methods work well. I've decided to use Rix method as it seems more precise.

 

You're welcome. I believe there are 3rd party apps to give you more control on dcl but they are not for free and ofcourse more complicated. Just for fun I once (ok twice) tried a different approach

 

http://www.cadtutor.net/forum/showthread.php?93411-RLDraw-another-example-for-an-interactive-slide-program

 

http://www.cadtutor.net/forum/showthread.php?93409-RlxIso-Draw-IsoMetric-Dimensions

 

But that's maybe a little to extreme for your needs.

 

Gr. Rlx

Posted

Thanks Rix but I'm only just getting the feel of DCL at the moment & working out how they pass data back to the lisp

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