Re: Unexplainable behavior
- Posted by Mike777 <anon4321 at gmai?.c?m> Jan 29, 2008
- 744 views
Greg, Chris, et al, > > > > I'm gonna stop you right there. I don't presume this to be common > > > > practice at > > > > all. You're kind of re-inventing the wheel here. If you give a CheckBox > > > > a title > > > > when you create it, that text will appear to the right of the box, and > > > > be > click-able</font></i> > > > > and trigger onClick (w32HClick) events automatically. I see no sense in > > > > creating > > > > an additional label to receive the click events. If all you want is to > > > > place > > > > the label on the left side of the box, just use the BS_LEFTTEXT style. I misspoke. I meant only that clicking the label should operate the same as clicking the checkbox. I didn't mean to imply that it is common practice to have the label in a separate control. > > > I'd be happy to give this a try. Is there a method whereby I can reset > > > the > > > text to appear with respect to the control I already have? Got it. I had shrunk the size of the checkbox to the point where it was just barely visible within the size of the control. When I expanded the size, the label showed up and its behaviour is as expected. > I created a global integer and +=1'd it and then I display it in the status > bar. It proves that my execution count was correct. It increments by one > when > I click the checkbox (slow or fast). It increments by one if I leave the > sleep(1) > in place or I hold down the left click for a long time. It increments by two > if I click quickly without a sleep(1). There is a part of me that is just a bit queasy about my codebase at the moment, because there is something in there that is not operating as expected. I'll take a snapshot of this before I fix things and at least be able to call this back up to experiment. But, for now, it is on to the next issue. Thanks Mike