Page 1 of 1
Easy options bug
Posted: Wed Nov 19, 2008 6:46 am
by gopo
There is a bug when activating easy options, i.e. the modules are not hidden properly. You should set the Enabled property to "false" in addition to making a control invisible, otherwise when you hide modules they disappear from the screen but you can still click them.
FormOpenDental RefreshLocalData
Re: Easy options bug
Posted: Wed Nov 19, 2008 6:50 am
by jordansparks
You can't click on an invisible control. So you must mean something else. I would need a better description of the exact easy option that you are turning on, exactly which module is visible before you turn it on, what the exact behavior is after you turn it on, and what exact user action causes that behavior. Give it to me step by step.
Re: Easy options bug
Posted: Wed Nov 19, 2008 6:59 am
by gopo
Typically to disable a control you must set ctrl.Visible = false; ctrl.Enabled = false;
Now to my problem. When you set Basic Modules Only in Easy Options, the buttons disappear from the outlook bar, but you can still click them. Try to click on the exact spot where the Manage button used to be, it will open the manage control. Normally, that can be easily fixed by setting Enabled to false, but in this case you are working with OutlookButton which does not implement this behavior. You will probably have to add this property to the OutlookButton and test it in mouse listeners.
Re: Easy options bug
Posted: Wed Nov 19, 2008 7:05 am
by richardwaite
I can confirm this behavior, running head/6.2.
Re: Easy options bug
Posted: Wed Nov 19, 2008 7:12 am
by gopo
I was wrong about the general method for disabling controls, it seems that the visible property is sufficient.
The particular problem with the OutlookButton remains.
Re: Easy options bug
Posted: Wed Nov 19, 2008 7:44 am
by jordansparks
Got it. I wrote the OutlookBar control, and it looks like a very simple tweak to change its behavior. Thanks.