Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

TLMDListBox callback "Sender" value

TRS
edited September 2012 in LMD-Tools Vote Up0Vote Down
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

  • 2 Comments sorted by Votes Date Added
  • >> 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.