LB Booster
« Error setting a disabled RadioButton »
Welcome Guest. Please Login or Register. Apr 1st, 2018, 04:35am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
Re: Error setting a disabled RadioButton
« Reply #2 on: Jan 18th, 2014, 11:51pm »
Just upgraded LBB from 2.41 to 2.43 (thanx for the new release), but the test program still stops responding for me. Windows XP sp3 with all updates and minimal software installed; if the RadioButtons are enabled then clicking a "SetRB#" button sets it appropriately, but does nothing when I click a "SetRB#" button if they are disabled, then goes to hourglass and "Not Responding". I'll check again on Win7 when I get that system back up.
No problem, really. I simply enable the RadioButtons before setting them and now my program works fine. Excellent utility you have here, I'm more than happy to bend with a language's odd little quirks... it's what Liberty BASIC programmers do. ^_^
clicking a "SetRB#" button sets it appropriately, but does nothing when I click a "SetRB#" button if they are disabled, then goes to hourglass and "Not Responding".
Strange. LBB doesn't do anything different if the button is disabled - the "set" command simply sends a BM_CLICK message, which according to MSDN "Simulates the user clicking a button":
So it almost sounds as though the 'crash' is a Windows issue. Nevertheless I'll make a note to investigate further at some point.
Meanwhile, as you say, the workaround is to send a "enable; set; disable" command sequence to change the state of a disabled radiobutton.
Edit: Confirmed crash on Windows XP, no crash on Windows 7, no crash on Windows 8.1. This is looking to be a Windows issue (Windows XP becomes unsupported by Microsoft from April).