Checkbox still strange

Re: Checkbox still strange

Postby Enrico Maria Giordano » Wed Nov 10, 2010 9:49 pm

TimStone wrote:
Code: Select all  Expand view
CONTROL "Core", 750, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 110, 5, 40, 13


Please try with

Code: Select all  Expand view
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
User avatar
Enrico Maria Giordano
 
Posts: 8381
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox still strange

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Checkbox still strange

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8381
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Checkbox still strange

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2909
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Checkbox still strange

Postby Enrico Maria Giordano » Thu Nov 11, 2010 8:31 am

Probably an interaction between paint and focus.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8381
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 38 guests