Jump to content

Recommended Posts

Posted

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;
}

Posted

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)

Posted (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:

radio1.jpg

and on another same as Kerry Brown.

 

Anyone has any idea where the problem is?

Edited by ziele_o2k
Posted
  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.

Capture.JPG

Posted

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

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

Posted

You can work with OpenDCL instead as a bounce to your DCL experience.

Posted
  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 :x because I want everything to be as symmetrical as possible and can spent lots of time just to get it right.

 

 

gr. Rlx

Posted

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.

test.jpg

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; }

Posted

You could try to give the button no label , just a key , use a text tile and give it a fixed width?

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

Posted
  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

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