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 » Community » Newbie corner » How to use THISBACK1 in this case?
How to use THISBACK1 in this case? [message #38765] Tue, 15 January 2013 16:21 Go to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Hi!
I want to have only one callback.

It needs to pass a parameter to identify the control that was clicked.

I'm handling WhenLeftUp event for Controls4u StaticRectangle control. I need to paint it with a color when the user clicks it.

The problem is its callback already passes 2 parameters: Point and dword.

How to use THISBACK1 in this case?

Thanks

[Updated on: Tue, 15 January 2013 16:22]

Report message to a moderator

Re: How to use THISBACK1 in this case? [message #38769 is a reply to message #38765] Wed, 16 January 2013 09:10 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Lectus

It cannot be done with actual Controls4U implementation.

AFAIK the Callback class hides the caller class to the called function. This means that callback does not know what has been the caller.

Now I do not know how to add this feature in a grateful way. Meanwhile I advise you to do your own custom implementation including a caller id in the Callback call.


Best regards
IƱaki
Previous Topic: Vertical tabs in U++
Next Topic: Audio playback in U++?
Goto Forum:
  


Current Time: Sat Apr 20 00:25:15 CEST 2024

Total time taken to generate the page: 0.12641 seconds