FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Checkbox still strange
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox still strange
Posted: Wed Nov 10, 2010 09:49 PM
TimStone wrote:
Code (fw): Select all Collapse
CONTROL "Core", 750, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 110, 5, 40, 13


Please try with

Code (fw): Select all Collapse
CONTROL "Core", 750, "Button", BS_AUTOCHECKBOX | BS_LEFTTEXT | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 110, 5, 40, 13


This is how BRW defines a checkbox.

EMG
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Checkbox still strange
Posted: Wed Nov 10, 2010 10:26 PM

That is not an error ... when the dialog is created ( opened ), we want the focus to be on the xBrowse control. This is a subset of a much larger dialog, and there are other commands before this ( button bar ). This subset behaves exactly like the full program, however.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox still strange
Posted: Wed Nov 10, 2010 10:28 PM
TimStone wrote:That is not an error ... when the dialog is created ( opened ), we want the focus to be on the xBrowse control.


So you have to use ON INIT clause, not ON PAINT. Please try.

EMG
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Checkbox still strange
Posted: Thu Nov 11, 2010 12:11 AM

That actually fixed the problem. So, why would that cause a problem with checkboxes, and why did it isolate from 10.6 to 10.7 ?

Thanks

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Checkbox still strange
Posted: Thu Nov 11, 2010 08:31 AM

Probably an interaction between paint and focus.

EMG

Continue the discussion