U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Callbacks and Timers » Setting a Gate argument.
Setting a Gate argument. [message #15201] Tue, 08 April 2008 22:29 Go to previous message
captainc is currently offline  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?




 
Read Message
Read Message
Previous Topic: How to disable a callback?
Next Topic: callback1 vs callback2
Goto Forum:
  


Current Time: Sun Apr 26 13:33:35 GMT+2 2026

Total time taken to generate the page: 0.00576 seconds