Happy Hobbit Posted December 4, 2015 Posted December 4, 2015 I'm trying out DCL for the first time. Does anyone know how to centre the text marked with a red ellipse? 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; } } } } Quote
Happy Hobbit Posted December 4, 2015 Author Posted December 4, 2015 Oh. Ta Lee. No wonder my fiddling with it didn't work Quote
rlx Posted December 4, 2015 Posted December 4, 2015 Only thing possible would be : But that isn't exactly what you want gr. Rlx Quote
Happy Hobbit Posted December 4, 2015 Author Posted December 4, 2015 That's exactly what I would like. How do you code that from the code above Rix ? Quote
rlx Posted December 4, 2015 Posted December 4, 2015 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 Quote
Tharwat Posted December 4, 2015 Posted December 4, 2015 Hi, Add equal number of empty spaces before and after the label name to make it looks identical. Quote
Happy Hobbit Posted December 5, 2015 Author Posted December 5, 2015 Thanks you Rix & Tharwat, both methods work well. I've decided to use Rix method as it seems more precise. Quote
rlx Posted December 5, 2015 Posted December 5, 2015 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 Quote
Happy Hobbit Posted December 5, 2015 Author Posted December 5, 2015 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 Quote
BIGAL Posted December 6, 2015 Posted December 6, 2015 This may be useful for simple input http://www.cadtutor.net/forum/showthread.php?92520-Multi-line-DCL-auto-code-generator&highlight=GETval Quote
Recommended Posts
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.