Hello folks,
To begin with: I'm really glad that this bulletin board is 'on air' again.
Now my question: I've a DDT-made dialog, containing 6 checkboxes.
The button 'check all' does its work properly: after clicking this button
all boxes are checked.
Sometimes it is necessary to let the program itself check
them all, instead of the user. In that case I send a %BM_CLICK message, like this:
CONTROL SEND CBHNDL, %BUTN_ID, %BM_CLICK, 0, 0.
Under W95 this works, but under NT4 the checkboxes stay empty.
Of course there is a (Power) Basic work-around:
FOR cnt& = chkID1 to chkID6
CONTROL SET CHECK CBHNDL, cnt&, %TRUE
NEXT
It works on both platforms, but I prefer to use the %BM_CLICK message, which is
more 'professional'. Has someone also experienced this? Or am I doing something wrong?
Thanks for bailing me out.
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
To begin with: I'm really glad that this bulletin board is 'on air' again.
Now my question: I've a DDT-made dialog, containing 6 checkboxes.
The button 'check all' does its work properly: after clicking this button
all boxes are checked.
Sometimes it is necessary to let the program itself check
them all, instead of the user. In that case I send a %BM_CLICK message, like this:
CONTROL SEND CBHNDL, %BUTN_ID, %BM_CLICK, 0, 0.
Under W95 this works, but under NT4 the checkboxes stay empty.
Of course there is a (Power) Basic work-around:
FOR cnt& = chkID1 to chkID6
CONTROL SET CHECK CBHNDL, cnt&, %TRUE
NEXT
It works on both platforms, but I prefer to use the %BM_CLICK message, which is
more 'professional'. Has someone also experienced this? Or am I doing something wrong?
Thanks for bailing me out.
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Comment