03-11-2009 11:10 AM
03-13-2009 10:10 AM
03-16-2009 08:40 AM
03-16-2009 10:32 AM
The tooltip tool is distributed in source code in the Programmer Toolbox. Looking at its code, I noted that this function uses not to install a callback on the control, but to chain one to it, in order to prevent a possibly existing control callback. That is to say, you may have better results unchaining the control callback (which is installed via "CtrlToolTip" Type Name and can be unchained with the same text passed to UnchainCtrlCallback).
I hadn't time to test it, though...
03-17-2009 03:33 AM
After digging a while on this problem, I have to correct my previous assertion.
Based on my tests it seems that one possible solution to permit duplicating and discarding of duplicated control is this one:
Duplicated controls can then be removed without errors.
I attach a simple project that shows thi method.
03-20-2009 06:40 AM
03-20-2009 08:29 AM
Guillaume Dargaud wrote:
> - When duplicating a control: find if it has an associated tooltip
> - If it has, save and remove it from the control
Remove it with UnchainCtrlCallback, you mean ?
No, remove it by passing an empty string to SetCtrlTooltiAttribute. All the matter is realized in the example I attached to my previous post (it lies a bit mimetized among the signature: I need to change it)
03-20-2009 10:40 AM
03-22-2009 10:49 AM
03-23-2009 09:10 AM