Re: Checkbox still strange
Posted:
Wed Nov 10, 2010 9:49 pm
by Enrico Maria Giordano
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
Re: Checkbox still strange
Posted:
Wed Nov 10, 2010 10:26 pm
by TimStone
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.
Re: Checkbox still strange
Posted:
Wed Nov 10, 2010 10:28 pm
by Enrico Maria Giordano
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
Re: Checkbox still strange
Posted:
Thu Nov 11, 2010 12:11 am
by TimStone
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
Re: Checkbox still strange
Posted:
Thu Nov 11, 2010 8:31 am
by Enrico Maria Giordano
Probably an interaction between paint and focus.
EMG