Page 1 of 1

CHECKBOX EM READONLY

PostPosted: Thu Sep 11, 2008 10:25 am
by rasptty
Como colocar CHECKBOX em readonly

Re: CHECKBOX EM READONLY

PostPosted: Thu Sep 11, 2008 11:06 am
by wmormar
rasptty wrote:Como colocar CHECKBOX em readonly


REDEFINE CHECKBOX oCheck ID 101 OF oDlg
oCheck:disable()

PostPosted: Thu Sep 11, 2008 11:29 am
by Antonio Linares
You have to call to Disable(), as William has explained you, but do it from the ON INIT clause of the dialog, as from that moment the control has a valid Windows handle:
Code: Select all  Expand view
REDEFINE CHECKBOX oCheck ID 101 OF oDlg

ACTIVATE DIALOG oDlg ;
   ON INIT oCheck:disable()