diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-03-11 14:34:10 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-03-11 14:34:10 +0000 |
commit | b4e79f5e55cef2382ebc746e5882d51f13727698 (patch) | |
tree | 0cafceaa063dd08eeb81263399acfb76d5c1115c | |
parent | fbe880978c36601bbad36908b909b093985607e6 (diff) | |
download | fpGUI-b4e79f5e55cef2382ebc746e5882d51f13727698.tar.xz |
* Popup Menu display via Menu Key is now centred in active widget.
-rw-r--r-- | src/corelib/gfx_widget.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/gfx_widget.pas b/src/corelib/gfx_widget.pas index 1f4603d5..e1f68e6e 100644 --- a/src/corelib/gfx_widget.pas +++ b/src/corelib/gfx_widget.pas @@ -620,7 +620,7 @@ begin begin { TODO : We could improve the X,Y coordinates. Not really sure how Menu Key should handle that. } - HandleRMouseDown(10, 10, []); + HandleRMouseDown(Width div 2, Height div 2, []); end; end; |