[Lazarus] Displaying system menu

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Nov 25 11:14:20 CET 2010


Op 2010-11-25 10:06, Mark Morgan Lloyd het geskryf:
> 
> Is there an easy and portable way of extending the system menu with e.g. 
> an entry to pop up an "about" box?

As Michael mentioned, it it totally out of your control under X11, but you
could always add some "grab panel" in your window. When the user clicks
that and holds the mouse button down (or even on the background canvas of
the form)... you can let the user move the form that way.

If've done this before (with fpGUI), but most systems have a keyboard
shortcuts to allow this anyway. eg: under X11 you can normally do Alt+Click
and drag a window around while holding the Alt and mouse button down.

Windows has a keyboard shortcut as for as I remember, and then allows you
to move the window with the arrow keys.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list