OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: velasquez on February 19, 2010, 05:30:33 AM

Title: OtionList question
Post by: velasquez on February 19, 2010, 05:30:33 AM
Is it possible to remove the mark of the selection of an item of OptionList? 
In OptionButton this mark doesn't exist.
Title: Re: OtionList question
Post by: Fred Tomke on February 19, 2010, 05:46:19 AM
Hi, as far as I remember (somebody may correct me), this is controlled by the SetAnchorIndex method in ListBoxes.
So maybe the question is: wouldn't it be good for consistency of OpenDCL controls to provide such methods like GetAnchorIndex, GetTopIndex, SetAnchorIndex, SetTopIndex for ListBoxes as well as for ListViews, DWGList, BlockList and OptionList? Just a thought of mine, I may be wrong... But if so, we should add it as a feature request.

Fred
Title: Re: OtionList question
Post by: owenwengerd on February 19, 2010, 06:48:11 AM
The anchor index is the base item for a multiple selection. Since the optionlist control doesn't support multiple selection, it would not make sense to set the anchor index. It would be easy to not paint the focus rectangle, but that focus rectangle serves an important function for keyboard only users.
Title: Re: OtionList question
Post by: velasquez on February 19, 2010, 07:53:13 AM
This doesn't seem to be important with OptionButton. 
The selection of the item shows more than the rectangle.
Title: Re: OtionList question
Post by: owenwengerd on February 19, 2010, 11:04:48 AM
Why do you think it is not important?
Title: Re: OtionList question
Post by: velasquez on February 19, 2010, 11:32:28 AM
It is just my thought. 
I believe that the Item just selected it is already enough to show this. 
In this case I will continue working with OptionButton.
Title: Re: OtionList question
Post by: BazzaCAD on February 19, 2010, 01:36:03 PM
Quote from: velasquez on February 19, 2010, 11:32:28 AM
It is just my thought. 
I believe that the Item just selected it is already enough to show this. 
In this case I will continue working with OptionButton.

velasquez, this doesn't mean that the item was selected, it means that it has focus...
If you look at the Acad Options window vid. below you'll see that it does the same thing, both when you pick & when you use the keyboard.

Owen, I think I found a small bug because of this topic. Note in my vids, the last picked item has the focus box around it even when you keyboard away from it..
Title: Re: OtionList question
Post by: owenwengerd on February 19, 2010, 02:31:44 PM
I can't reproduce the focus rectangle painting problem in Windows 7 / AutoCAD 2010.
Title: Re: OtionList question
Post by: BazzaCAD on February 19, 2010, 03:58:14 PM
Ya this was on Win XP, Acad2008.
Oh ya prob. on 5.1.2.3, I'll check v6...
Title: Re: OtionList question
Post by: BazzaCAD on February 19, 2010, 04:06:33 PM
OK you're right. In 6.0.0.22 I don't have the focus box issue anymore.

But now I see a new issue (or one I thought we visited before).
Now the OptionsLists keep repainting themselves as I pass the mouse over them & they get darker & darker...
WinXP, Acad2008 & Acad2010, Default XP theme
Title: Re: OtionList question
Post by: BazzaCAD on February 19, 2010, 04:23:56 PM
hmmm never mind, I think it's just something wrong with that Messagebox Demo file.
I even tried it on Win7 Acad2010 & I still get that darkening effect, but when I run one of my newer projects with OptionsLists in it, they're fine..
Title: Re: OtionList question
Post by: owenwengerd on February 19, 2010, 05:08:39 PM
I have the same problem with the message box demo. I think it's some combination of anti-aliasing and overlapping controls (in this case the frame) that causes it, but I have never been able to solve it.