Topic: Radio Button

Hi,
How can I have Radio buttons on MVDB ?!
Thanks a lot

Re: Radio Button

sonixax wrote:

Hi,
How can I have Radio buttons on MVDB ?!
Thanks a lot


Don't know about that, but you can use the checkBox, its like the same big_smile

Re: Radio Button

Hello,


In current version you can create them using script, but it is not very convenient.
And you can use them only by script.



Here you can download example:

Post's attachments

Attachment icon RadioButton.zip 2.12 kb, 664 downloads since 2014-11-05 

Dmitry.

Re: Radio Button

Thanks a lot

Re: Radio Button

How does one set an action using the radiobutton ?  Is there a case statement that needs to be added or how does one know which radio item is active?

Re: Radio Button

rjkantor
example, how to read status of RadioButton

procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
    if RadioButton1.Checked then ShowMessage('Checked');
end;
Dmitry.

Re: Radio Button

So I have to use a button to trigger the radiobutton check?  There is no on onclick for the radiobutton group ?

Re: Radio Button

You can make a script for OnClick event, but as long as it makes no sense, as there is no full support for the RadioButton.

Dmitry.

Re: Radio Button

Sorry to re-up that post, but I think radio-buttons make sens.


The main point is that there is only one choice possible with radio-buttons (exemple smoker / non-smoker), when with check boxes, you could have both checked which is not possible : you can not be a smoker AND a non-smoker smile

Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Radio Button

I would agree.  I am using the radiobuttons as a filter mechanism for my TableGrid.

http://www.backdoortechnology.com/public/radiobuttons.png