Home » Community » Newbie corner » Dialog box with some internal actions
Re: Dialog box with some internal actions [message #31637 is a reply to message #31634] |
Fri, 18 March 2011 15:39   |
|
Oh, so there was one more mistake that I missed (but the unforgiving compiler sees it ). To assign WhenPush callback, you should use just plain "=" operator:MyDlg() {
...
action.WhenPush = THISBACK(DoAction);
}
The "<<=" is shortcut for ".WhenAction =". For other callbacks, only ordinary assignment is used. BTW: Are you sure you want to use WhenPush? WhenAction gives you the expected results most of the time, I think WhenPush is only for some special cases (I personally never used it ).
So, to sum it up:MyDlg() {
...
action <<= THISBACK(DoAction); // Sets WhenAction
/*OR*/ action.WhenAction = THISBACK(DoAction);
/*OR*/ action.WhenPush = THISBACK(DoAction); // If you really want WhenPush
}
Honza
|
|
|
Goto Forum:
Current Time: Wed Apr 30 09:40:04 CEST 2025
Total time taken to generate the page: 0.00482 seconds
|