OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: roy_043 on October 04, 2011, 01:15:28 PM

Title: Focus Marker Problem DwgPreview SlideView
Post by: roy_043 on October 04, 2011, 01:15:28 PM
Bricscad 11.4.6
OpenDCL  6.0.2.5
Win XP

I am working on a 'dwg browser' that can display DwgPreviews and SlideViews. I notice a problem with the dotted line ('focus marker') that appears in the preview or slide that has the focus.

1.
First display of dialog: Focus marker is correctly on slide A000.

2
Hit Tab: Focus is on slide A001 but there is no focus marker.

3.
Hit Tab: Focus is on preview A002 and there is a focus marker.

4.
Hit Tab: Focus is on preview A003, but both A002 and A003 have a focus marker.

5.
Hit Tab: Focus is on slide A004 but there is no focus marker on the slide and the focus markers on A002 and A003 are still visible.

6.
Continue hitting Tab: Focus markers on A002 and A003 stay visible until they receive the focus again: then the markers disappears.

7.
After temporarily switching to a different application and coming back to the cad program the focus marker is correct.
Title: Re: Focus Marker Problem DwgPreview SlideView
Post by: Fred Tomke on October 05, 2011, 04:12:59 AM
Hi, I recommend you to set or remove highlighting rectangle by yourself using

Code (autolisp) Select
(dcl_SlideView_SetHighlight <CONTROL> Color [als Color])
(dcl_SlideView_RemoveHighlight <CONTROL>)
(dcl_DWGPreview_SetHighlight <CONTROL> Color [als Color])
(dcl_DWGPreview_RemoveHighlight <CONTROL>)


Regards, Fred
Title: Re: Focus Marker Problem DwgPreview SlideView
Post by: roy_043 on October 06, 2011, 08:27:42 AM
Thank you Fred for your answer. Your suggestion makes sense, but a slide with a highlight looks different.
Strange how the highlight rectangle has two different offsets... Perhaps a Bricscad thing?
Title: Re: Focus Marker Problem DwgPreview SlideView
Post by: Fred Tomke on October 06, 2011, 08:29:35 AM
Try to remove the focus rectangle by focussing another control after OnSetFocus.
Regards, Fred
Title: Re: Focus Marker Problem DwgPreview SlideView
Post by: owenwengerd on October 10, 2011, 10:11:15 AM
There was a bug in the slide view control that caused a focus change to not trigger a repaint. This should now be fixed in the OpenDCL 7 alpha build.
Title: Re: Focus Marker Problem DwgPreview SlideView
Post by: roy_043 on October 12, 2011, 12:30:13 PM
The problem has indeed been solved in OpenDCL 7 alpha. Nice work.