Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8015813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:21:43+00:00 2026-06-04T20:21:43+00:00

I set up a dialog with 2 radio buttons, and use a boolean to

  • 0

I set up a dialog with 2 radio buttons, and use a boolean to check them programmatically.

    // Not working day radio button
    final Button notWorkingDayButton = new Button(mSelectedDayGroup, SWT.RADIO);
    notWorkingDayButton.setSelection(isWorkingDay);
    notWorkingDayButton.setText("Jour chômé"+(isHoliday ? deft : ""));

    // Working day radio button
    final Button workingDayButton = new Button(mSelectedDayGroup, SWT.RADIO);
    workingDayButton.setText("Jour travaillé"+(isHoliday ? "" : deft));
    workingDayButton.setSelection(!isWorkingDay);

As you can see, they use the same boolean so they always have opposed states.

Here’s how it looks like if isWorkingDay is true: isWorkingDay=true

Here’s how it looks like if isWorkingDay is false: isWorkingDay=false

As you can see the first radio stays somewhat enabled. I want the first one to be completely disabled and the second one completely enabled when isWorkingDay = false.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:21:45+00:00Added an answer on June 4, 2026 at 8:21 pm

    I don’t have a Mac but this looks like the keyboard focus to me. There is no “somewhat enabled” state for radio buttons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I use startActivity(Intent) to load an activity with the theme set to Theme.Dialog
public void createpass() { //set up dialog final Dialog dialog = new Dialog(App.this); dialog.setContentView(R.layout.createpass);
I've got a set of radio buttons in my html site. When the users
I'm using jQuery validation to validate a form with a radio button set on
I am trying to get the custom dialog to close on button press //set
How can I set the initial directory of where an Open File Dialog appears?
I am trying to set an edit box in a nested dialog, but the
I am creating a popup dialog box where I need to put a set
In my installer I have set WixUIBannerBmp to point to my own custom dialog-banner.bmp
In the March 31 release of MonoTouch.Dialog we aren't able to set the color

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.