dkeene Posted January 30, 2021 Share Posted January 30, 2021 Hello Is there any way to specify the positions of the radiobuttons drawn in a radiogroup? For example if columns=2, I want to draw the left radiobutton at 10 pixels and the right radiobutton at the radiogroup's width -10... Thanks Doug Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2021 Share Posted January 30, 2021 2 minutes ago, dkeene said: and the right radiobutton at the radiogroup's width -10... Hello, But what about the radiobutton name? Quote Link to comment Share on other sites More sharing options...
dkeene Posted January 30, 2021 Author Share Posted January 30, 2021 I am trying to achieve a more visually meaning layout. This is currently how I display a RadioGroup using Y, N for Yes No. snap113.bmp However I wish to display the label between the Y on the left and N on the right, but expanding the radiogroup doesn't look perfect for "High Blood Pressure", as I would like to have the N in that location but the border of the radiogroup close to it. I could do this with a slider, but that doesn't exist for Desktop Applications. snap114.bmp Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2021 Share Posted January 30, 2021 Something like this? Quote Link to comment Share on other sites More sharing options...
dkeene Posted January 30, 2021 Author Share Posted January 30, 2021 Yes. Quote Link to comment Share on other sites More sharing options...
dkeene Posted January 30, 2021 Author Share Posted January 30, 2021 How can I achieve this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2021 Share Posted January 30, 2021 I'm trying now. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2021 Share Posted January 30, 2021 16 minutes ago, dkeene said: How can I achieve this? One possible solution, try: function afterlayout(sender, layout, eOpts) { sEl = sender.getEl().select('td:nth-child(2)').elements[0]; if (sEl) { sEl.style.direction = 'rtl' } } Quote Link to comment Share on other sites More sharing options...
dkeene Posted January 30, 2021 Author Share Posted January 30, 2021 thank you I will try this. is there any way to do it with native delphi code Quote Link to comment Share on other sites More sharing options...
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.