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 |
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 |
|
koldo
Messages: 3357 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
|
|
|
Goto Forum:
Current Time: Fri Apr 26 16:18:22 CEST 2024
Total time taken to generate the page: 0.03293 seconds
|