Hello Neven,
NM> I can exchange the TButton for a TSpeedButton and they work!
You are better at this than I but would not the clue be in the above one being a
Tgraphic and the other being a Twincontrol (or something like that)
NM> Second question in order to locate my panel where the popup menu item
NM> apeared
NM> how can I get back the position of the menuItem (I can get the popup
NM> position of the
NM> menu) but all I have is an HDC of the canvas (ie can I get screenpos of an
NM> HDC)
Something like below I wrote a wee while ago:
PopMsg: TPopupMenu;
DynaMenu: TMenuItem;
procedure TCamForm.PopMsgS(PSentstate: word; SMsg: string);
var
p: TPoint;
begin
if PSentstate = Pstate then exit;
DynaMenu.caption := SMsg;
GetCursorPos(p);
PopMsg.Popup(p.x, p.y);
Pstate := PSentstate;
end;
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/