ziele_o2k Posted June 27, 2017 Posted June 27, 2017 Hi, could someone insert screenshot with preview of following dcl Sett : dialog { label = "Quick Settings:"; width = 50; : row { : column { : text { label = "Rozbic blok:"; } : text { label = "Troche dluzszy tekst:"; } } : column { _RADIO1; _RADIO2; } } : _POPUP { key = "B_1"; label = "&Czy wstawic punkt w srodku:"; } : _POPUP { key = "B_4"; label = "&Separator:"; } : _EDITBOX { key = "B_2"; label = "&Wysokosc tekstu:"; edit_limit = 10; } : _EDITBOX { key = "B_3"; label = "Odstep &tekstu:"; edit_limit = 10; } spacer_1; : row { alignment = centered; fixed_width = true; : _BUTTON { key = "OK"; label = "&Ok"; is_default = true; } : _BUTTON { key = "CANCEL"; label = "&Anuluj"; is_cancel = true; } } errtile; } _BUTTON : button { width = 13; fixed_width = true; } _POPUP : popup_list { edit_width = 30; } _EDITBOX : edit_box { edit_width = 30.8; } _RADIO1 : row { : radio_button { key = "op1"; label = "&Tak"; } : radio_button { key = "op2"; label = "&Nie"; } spacer; } _RADIO2 : row { : radio_button { key = "op3"; label = "&Wiecej Tak"; } : radio_button { key = "op4"; label = "&Wiecej Nie"; } spacer; } Quote
BIGAL Posted June 28, 2017 Posted June 28, 2017 Do you just want to test it this will display (setq dcl_id (load_dialog "Sett.dcl")) ; needs correct path (if (not (new_dialog "Sett" dcl_id)) (exit)) (start_dialog) (done_dialog) (unload_dialog dcl_id) Quote
Kerry Brown Posted June 28, 2017 Posted June 28, 2017 (edited) Your dialog displayed fine for me in the VLIDE. http://www.afralisp.net/dialog-control-language/tutorials/preview-dcl-files.php Note that System User permissions MAY require changing. Regards, added: This is on Win 10 with AC2017 Edited June 28, 2017 by Kerry Brown Quote
ziele_o2k Posted June 28, 2017 Author Posted June 28, 2017 (edited) BIGAL said: Do you just want to test it this will display (setq dcl_id (load_dialog "Sett.dcl")) ; needs correct path (if (not (new_dialog "Sett" dcl_id)) (exit)) (start_dialog) (done_dialog) (unload_dialog dcl_id) I just whanted to see how this window will look on other computers. I know how to test dcl dialog. I have another problem... DCL which I posted displays different on various machines. On one of my computers it look like this: and on another same as Kerry Brown. Anyone has any idea where the problem is? Edited June 28, 2017 by ziele_o2k Quote
Tharwat Posted June 28, 2017 Posted June 28, 2017 ziele_o2k said: I just whanted to see how this window will look on other computers.I have another problem... DCL which I posted displays different on various machines. Hi, This is how it looks like on my machine. Quote
rlx Posted June 28, 2017 Posted June 28, 2017 It's just a matter of how your tiles are defined in 'base.dcl' in the support folder and probably some windows settings (colors / resolution / font) can affect certain aspects too. But I actually like the coding style , never used 'subs' in my dcl files. gr. Rlx Quote
ziele_o2k Posted June 28, 2017 Author Posted June 28, 2017 rlx said: It's just a matter of how your tiles are defined in 'base.dcl' in the support folder and probably some windows settings (colors / resolution / font) can affect certain aspects too. But I actually like the coding style , never used 'subs' in my dcl files. gr. Rlx That is vary bad information... I have to live with that... Quote
Tharwat Posted June 28, 2017 Posted June 28, 2017 You can work with OpenDCL instead as a bounce to your DCL experience. Quote
rlx Posted June 28, 2017 Posted June 28, 2017 ziele_o2k said: That is vary bad information... I have to live with that... I think there are worse things in life you have to live with ... if your design is right your dialog will have the right look and feel no matter if some details might seem to be a little off. That having said , it can really irritate me too when my dialog doesn't look the way I want it because I want everything to be as symmetrical as possible and can spent lots of time just to get it right. gr. Rlx Quote
Kerry Brown Posted June 28, 2017 Posted June 28, 2017 I'll drop this here as a reference for options https://www.theswamp.org/index.php?topic=53181.msg579422#msg579422 The way the DCL is designed makes it relatively easy to revise safely. Good Job I think. Regards Quote
ziele_o2k Posted June 28, 2017 Author Posted June 28, 2017 The problem is elsewhere. Sometimes between popup_list and it's label is being added some space and sometimes isn't. Below you can find dcl definition and screen of dcl preview from two machines. Sett : dialog { label = "Quick Settings:"; : _POPUP { key = "B_1"; label = "&Czy wstawic punkt w srodku:"; list = "Tak\nNie"; } spacer_1; : row { alignment = centered; fixed_width = true; : _BUTTON { key = "OK"; label = "&Ok"; is_default = true; } : _BUTTON { key = "CANCEL"; label = "&Anuluj"; is_cancel = true; } } errtile; } _BUTTON : button { width = 13; fixed_width = true; } _POPUP : popup_list { edit_width = 30; } Quote
rlx Posted June 28, 2017 Posted June 28, 2017 You could try to give the button no label , just a key , use a text tile and give it a fixed width? Quote
ziele_o2k Posted June 28, 2017 Author Posted June 28, 2017 rlx said: You could try to give the button no label , just a key , use a text tile and give it a fixed width? Yes, this is a workaround that I came up with. As interestning thing, we have to play with the value of the tile text. If we will set label for text tile, result will be the same as with label of popup_list. The disadvantage of this solution is loosing the possibility to set mnemionic for popup_list label. I wonder if anyone can explain to me why this is happening. Quote
rlx Posted June 28, 2017 Posted June 28, 2017 ziele_o2k said: Yes, this is a workaround that I came up with. As interestning thing, we have to play with the value of the tile text. If we will set label for text tile, result will be the same as with label of popup_list.The disadvantage of this solution is loosing the possibility to set mnemionic for popup_list label. I wonder if anyone can explain to me why this is happening. Ahhh, I found it! (me think) : horizontal_margin = none; gr.Rlx 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.