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 next 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?




Re: Setting a Gate argument. [message #15203 is a reply to message #15201] Wed, 09 April 2008 09:31 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Quote:

Is this possible?

I think at the moment you can have any 2 out of three of those features. There are some template functions required that aren't there.
Quote:

How can I do this?

Wait for Mirek to get back from holiday and ask nicely? Smile
Previous Topic: How to disable a callback?
Next Topic: callback1 vs callback2
Goto Forum:
  


Current Time: Fri Mar 29 07:32:23 CET 2024

Total time taken to generate the page: 0.01266 seconds