OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: jmaeding on April 19, 2010, 03:58:00 PM

Title: optionlist shows bolder each time mouse goes over
Post by: jmaeding on April 19, 2010, 03:58:00 PM
not sure if this is a known issue,
I have a modal form with an optionlist whose background color is transparent.
At runtime, the text gets bolder and bolder each time I move the mouse over.
It took me a while to realize the pattern, see screenshot attached for effect.  I noticed the same thing starts to happen in the editor, when i right click and go to props, then hit ok.  It resets ack to normal each time i focus on it in editor though.
This is happening for all optionlists with transparent backgrounds, per some tests just now.
This is on Win xp32bit, nvidia video card....thx
Title: Re: optionlist shows bolder each time mouse goes over
Post by: jmaeding on April 19, 2010, 03:59:11 PM
the orig is on right, left shows the bold effect, like offset resampling or something...
Title: Re: optionlist shows bolder each time mouse goes over
Post by: BazzaCAD on April 19, 2010, 04:01:12 PM
Where these forms created in an older version of ODCL?
I've seen that happen before with older projects.
You might want to try deleting the OptionList & adding it again.
You can copy & paste the "Button Captions" stings....
Title: Re: optionlist shows bolder each time mouse goes over
Post by: jmaeding on April 19, 2010, 04:02:17 PM
yes, like 4.1.  Any easy fix?  :)
Title: Re: optionlist shows bolder each time mouse goes over
Post by: jmaeding on April 19, 2010, 04:04:46 PM
I just now added an optionlist to a form, same result.
Is there history to this?
Title: Re: optionlist shows bolder each time mouse goes over
Post by: BazzaCAD on April 19, 2010, 04:07:13 PM
Hmmm Owen, may have to look into it more.
Yes, it happened in the MessageBox example that gets installed with ODCL.
Title: Re: optionlist shows bolder each time mouse goes over
Post by: owenwengerd on April 19, 2010, 07:42:52 PM
I'm familiar with that problem. It has something to do with either anti-aliasing and/or font smoothing. It happens with other controls as well, only if they have a transparent background and only on certain OS/graphics combinations. If I understood more about the GDI system in Windows I could probably figure out a solution, but short of scrapping control transparency, I have not yet found a solution.
Title: Re: optionlist shows bolder each time mouse goes over
Post by: Fred Tomke on April 19, 2010, 10:51:27 PM
jmaeding, please have a test with backcolor -16 for the optionlist. -16 was the "original" backcolor. In my mind -24 is not neccesary if you use a standard form with no background image.

Fred
Title: Re: optionlist shows bolder each time mouse goes over
Post by: jmaeding on April 20, 2010, 08:34:35 AM
I set both the form color and optionlist color to -16, problem still happens.
Are you seeing cases where it does not happen?
Title: Re: optionlist shows bolder each time mouse goes over
Post by: BazzaCAD on April 20, 2010, 10:48:26 AM
Quote from: jmaeding on April 20, 2010, 08:34:35 AM
Are you seeing cases where it does not happen?

Yes, if you create a new project from scratch it shouldn't happen.
Title: Re: optionlist shows bolder each time mouse goes over
Post by: jmaeding on April 20, 2010, 05:01:53 PM
oh, good, there is hope.  I'll try a few things to see if i can trick existing ones into shape, thx
Title: Re: optionlist shows bolder each time mouse goes over
Post by: jmaeding on April 22, 2010, 10:25:02 AM
hmm, I am seeing this bold thing happen even on fresh new projects and forms.
I made a project called test2, use this code to load and display form:
(DCL_LoadProject (findfile "Test2.odcl.lsp") T)
(dcl_Form_Show Test2_Form1)

move mouse back and forth over the optionlist, it takes a few passes to see the issue.
Now, this would be livable but there is a worse issue.
If I remove items at runtime, the optionlist does not refresh.  It seems to leave behind previous paints of the control, probably the reason the boldness is happening.
I tried a form redraw call after removing items from the optionlist, no luck.
So this has gone from an annoyance to a signifigant bug for me.
Title: Re: optionlist shows bolder each time mouse goes over
Post by: copter on April 27, 2010, 11:24:22 AM
Same Issue for me: I tried with VISTA 32bits, SEVEN 64 bits. AutoCAD 2009 and 2010.
Background color = -16 doesnt change anything.
This issue (with others) appears with 6.0.0.10
Copter
Title: Re: optionlist shows bolder each time mouse goes over
Post by: Fred Tomke on May 06, 2010, 08:39:45 AM
Hi, I can reproduce this on Win 7 x64 AutoCAD Map 2011 with OpenDCL 6.0.0.26.

Fred
Title: Re: optionlist shows bolder each time mouse goes over
Post by: c2k on May 11, 2010, 08:19:06 AM
It is happening to me as I tab through check boxes. Version 5.1.2.3
Windows 7 64 bit
Nvidia Quadro FX1800

Title: Re: optionlist shows bolder each time mouse goes over
Post by: canavar on February 05, 2011, 04:06:03 AM
Hi there,
Is'nt there any solution up to date? I am suffering it for while and no body is coming up with a solution.
Title: Re: optionlist shows bolder each time mouse goes over
Post by: owenwengerd on February 05, 2011, 11:54:17 AM
I have not had any luck figuring out why it happens.