Board index » cppbuilder » Setting TCheckBox::Checked or TCheckBox::State without calling click event

Setting TCheckBox::Checked or TCheckBox::State without calling click event

How to I programatically set the value of a check box without calling
the click event?

The only thing I can think of is:

TNotifyEvent SavedOnClick = myCheckBox->OnClick;
myCheckBox->OnClick = NULL;
myCheckBox->State = cbChecked;
myCheckBox->OnClick = SavedOnClick;

Chris

 

Re:Setting TCheckBox::Checked or TCheckBox::State without calling click event


Hi Chris,

Quote
> How to I programatically set the value of a check box without calling
> the click event?

See Q3.9 in part (3/5) of the FAQ...

     Subject: vcl.components.using Mini FAQ (3/5)
        Date: Sat, 15 Jan 2000 04:52:21 -0500
  Newsgroups: borland.public.cppbuilder.vcl.components.using

Good luck!

--
Damon Chandler
http://bcbcaq.freeservers.com

Re:Setting TCheckBox::Checked or TCheckBox::State without calling click event


Thanks

Other Threads