Jump to content

Help with DCL alignment


rog1n

Recommended Posts

Hello,

 

I am working now with DCL, I need when a select a radio_button change the label of toggle, after a search I think it is not possible, so I thought if use a toogle without label and a text on right of toogle like that:

fr_config:dialog{
:boxed_row{
  label="Options";
  :radio_button{
    label="Option 1";
    key="1";
  }
  :radio_button{
    label="Option 2";
    key="2";
  }
}

:boxed_row{
  label="Example";
  :toggle{
    alignment="rigth";
    key= "toggle1";
   }

:text{
    alignment="left";
    key= "text1";
    label = "Text";
   }
}
spacer;
ok_cancel;
}

but I couldn't put them (toggle and text) together...

What I am doing wrong or maybe have a better solution?

Edited by rog1n
Link to comment
Share on other sites

An example:

: boxed_row { fixed_width = true; : toggle { key = "tog1";} : text { label = "Initial name"; key = "t1";}}

Then you need to add an action_tile for the radio_button to control the text by its key with your desired name.

Link to comment
Share on other sites

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