Home » U++ Library support » U++ Callbacks and Timers » Setting a Gate argument.
Setting a Gate argument. [message #15201] |
Tue, 08 April 2008 22:29  |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
I want to do something like the code example for callbacks:
button1 <<= THISBACK1(SetEditorValue, 1);
button2 <<= THISBACK1(SetEditorValue, 2);
which uses a callback with a set value 1 at callback creation
I would like to do this with gates, so as to get the boolean return value.
Ideally, I want to set a Gate that uses a function that takes 2 variables. The first variable, I want set right away when creating the Gate, and the second will be called dynamically.
Is this possible? How can I do this?
|
|
|
|
Goto Forum:
Current Time: Sun May 11 17:35:14 CEST 2025
Total time taken to generate the page: 0.05290 seconds
|