This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

TLMDListBox callback "Sender" value

TRSTRS
edited September 2012 in LMD-Tools
Builder C++ 2010, Windows XP

I have a TLMDListBox with an on-click callback. 

from header: TLMDListBox *TankAdjustmentList;

callback: void __fastcall TMachine2MainForm::TankAdjustmentListClick(TObject *Sender)

The "Sender" value appears to point to a TLMDExtListBox rather than the TLMDListBox component. Is this correct?

I deduced that by checking the value of Sender against values shown in Debug for the TLMDListBox control. Is there any way to get back to the TLMDListBox pointer from Sender?
 

Comments

  • >> Is this correct?<<
    Yes. TLMDListBox contains the inner listbox control. It is the same control you can reference via TLMDListBox.LB parameter.

    >> Is there any way to get back to the TLMDListBox pointer from Sender?<<
    Sure. It is the parent/owner of the sender.

    Regards,

    Rafael Maricca
    LMD Innovative
Sign In or Register to comment.