Hi all

I'm doing a ownerdraw popup menuitem which paints a 'super component' (ie a
panel with buttons and combo's)
which when you select it displays the component

all was going well until I did the ownerdraw I thought I could

procedure TmwkDBGridPopupMenu.DrawGridEdit(Sender: TObject;
  ACanvas: TCanvas; ARect: TRect; Selected: Boolean);
    FGrid.FFilterEdit.PaintTo(ACanvas, 0, 0);
end;

But my FilterEdit,paintto only paints TLabels but not TButtons and
TComboBoxes

First question is Why? Ive tried  adding csReplicatable to ControlStyle

I can exchange the TButton for a TSpeedButton and they work!

Second question in order to locate my panel where the popup menu item
apeared
how can I get back the position of the menuItem (I can get the popup
position of the
menu) but all I have is an HDC of the canvas (ie can I get screenpos of an
HDC)

TIA


 Regards Neven
 N.K. MacEwan B.E. E&E
 Ph 649 621 0001
 Fax 649 621 0400
 [EMAIL PROTECTED]

---------------------------------------------------------------------------
    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/

Reply via email to