Highlighted

Radio Button Select and Deselect

New Here ,
Aug 04, 2020

Copy link to clipboard

Copied

Hi Experts,

I've designed InDesign plugin UI with some widgets including three radiobuttons....

After opening my plugin while selecting the radio button i can enable all the three radio buttons..

But, i want to enable only one radio button....

I have done the validation using Select and Deselect to select only one but it won't work...

what i want to do??????????

I know it's simple to experts but i'm struggling here.......... Guide me.

Thanks in advance..

 

Regards,

-ParvathiKannan.

You can aggregate an observer at an enclosing widget boss, e.g. the palette panel. If you're working on a dialog, some of the functionality may also end up at the dialog controller.

For any dynamic behaviour you subscribe the observer to the notifications of each widget, and maintain matching state - e.g. in member variables of the observer. When one button, or checkbox, is changed, maintain the dependencies - enable other fields, populate dropdowns, or in your case toggle the dependent radio buttons. Their setter methods have additional parameters so you don't trigger a notification cascade.

TOPICS
How to, SDK

Views

37

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Radio Button Select and Deselect

New Here ,
Aug 04, 2020

Copy link to clipboard

Copied

Hi Experts,

I've designed InDesign plugin UI with some widgets including three radiobuttons....

After opening my plugin while selecting the radio button i can enable all the three radio buttons..

But, i want to enable only one radio button....

I have done the validation using Select and Deselect to select only one but it won't work...

what i want to do??????????

I know it's simple to experts but i'm struggling here.......... Guide me.

Thanks in advance..

 

Regards,

-ParvathiKannan.

You can aggregate an observer at an enclosing widget boss, e.g. the palette panel. If you're working on a dialog, some of the functionality may also end up at the dialog controller.

For any dynamic behaviour you subscribe the observer to the notifications of each widget, and maintain matching state - e.g. in member variables of the observer. When one button, or checkbox, is changed, maintain the dependencies - enable other fields, populate dropdowns, or in your case toggle the dependent radio buttons. Their setter methods have additional parameters so you don't trigger a notification cascade.

TOPICS
How to, SDK

Views

38

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 04, 2020 0
Advisor ,
Aug 04, 2020

Copy link to clipboard

Copied

You can aggregate an observer at an enclosing widget boss, e.g. the palette panel. If you're working on a dialog, some of the functionality may also end up at the dialog controller.

For any dynamic behaviour you subscribe the observer to the notifications of each widget, and maintain matching state - e.g. in member variables of the observer. When one button, or checkbox, is changed, maintain the dependencies - enable other fields, populate dropdowns, or in your case toggle the dependent radio buttons. Their setter methods have additional parameters so you don't trigger a notification cascade.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 04, 2020 0
New Here ,
Aug 05, 2020

Copy link to clipboard

Copied

Hi Dirk,

Thankyou....

Now my problem is fixed...

 

Thanks,

-ParvathiKannan.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 05, 2020 0