Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Sat Nov 28 20:35:23 CET 2020

Total time taken to generate the page: 0.01416 seconds