[Lazarus] Displaying system menu

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Thu Nov 25 11:36:46 CET 2010

Graeme Geldenhuys wrote:
> 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.

A visible grab panel of some sort is a definite option, as long as it 
can be done portably. Otherwise I'll simply use the popup menu to turn 
the title bar on or off- I think that should work.

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

True, but I'm uneasy about forcing users to have to remember this sort 
of thing. One of the major benefits of Windows (and comparable GUIs) was 
that it displayed a menu so that users didn't have to remember special 
key combinations.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the Lazarus mailing list