Commit Graph

293 Commits

Author SHA1 Message Date
paul
a3dac0b6df lcl: redo context menu message handling:
- when called by keyboard pass -1, -1 coords
  - remove child->parent loop from LCL to widgetsets (win32 and wince do this automatically, qt do it too if mouse propagation is on)
  - don't show parent context menu if child has own standard menu (like TEdit)
qt: redo mouse handling, turn on mouse propagation and mouse tracking for most of widgets, stop propagation in event filters
gtk2: implement context menu loop
widgetsets: remove LM_PRESSED, LM_RELEASED messages (LCL does not use them and they are not needed for any compatbility reasons)

git-svn-id: trunk@26637 -
2010-07-14 08:47:02 +00:00
zeljko
5b9b9419d0 Gtk2: fixed gtk2 spinedit OnChange() event.fixes #16410.
git-svn-id: trunk@25218 -
2010-05-05 15:55:36 +00:00
zeljko
ecf56f9f71 Gtk2: implemented Gtk2WSScrollingWinControl.ScrollBy(), gtk >= 2.8 uses "changed-value" instead "value-changed" on all TScrollingWinControls (GtkRange instead GtkAdjustment callbacks) from now on.NOTE: with gtk >= 2.18 users must set environment variable GDK_NATIVE_WINDOWS=1 otherwise GdkWindow paintings will be funny (when scrolling GtkScrolledWindow). fixes #7321, #10390.
git-svn-id: trunk@24217 -
2010-03-26 11:35:06 +00:00
zeljko
42ecbc3588 Gtk2: rework cursor_pos update for GtkEntry.Now it works correct and completely fixes #7243
git-svn-id: trunk@24043 -
2010-03-16 15:34:28 +00:00
zeljko
3bd8a20b34 Gtk2: AlignToGtkAlign() moved from gtk2wscomctrls to gtkproc for reusing.Status bar labels alignment rework - fixed #14790.
git-svn-id: trunk@23963 -
2010-03-12 10:25:01 +00:00
zeljko
b6218b0cd8 Gtk2: introduced RectFromGdkRect(), GdkRectFromRect() moved from gtkthemes to gtkproc. Fixed wrong result in TGtk2WSCustomListView.ItemDisplayRect() because TGdkRectangle isn't same like TRect.
git-svn-id: trunk@23927 -
2010-03-10 18:37:59 +00:00
mattias
f833ae42ef gtk intf: fixed GTKAPIWidgetClient_GetType: gtype
git-svn-id: trunk@21794 -
2009-09-21 08:04:10 +00:00
paul
91915ea85b gtk: simplify DestroyWindowFromPointCB and other minor corrections to WindowFromPoint
git-svn-id: trunk@21598 -
2009-09-07 09:45:07 +00:00
mattias
7dbec45e6d gtk2 intf: fixed slow down when mouse outside bug #11740, fixed crash when WindowFromPoint widget destroyed
git-svn-id: trunk@21213 -
2009-08-13 06:53:35 +00:00
marc
42c8e0fbea * Removed own shiftstate tracking since it doesn't work when the app looses focus.
Either X or windows is queried now. Fixes issue #14102
  Also removed the EnableGtkShiftState conditional (r20870), since it is not an ubunto only problem, the concept was faulty itself

git-svn-id: trunk@20888 -
2009-07-18 16:10:55 +00:00
mattias
69d68a7b86 gtk intf: added flag EnableGtkShiftState to use gtk key shift state, needed on ubuntu
git-svn-id: trunk@20870 -
2009-07-16 12:28:03 +00:00
marc
7077d774a2 * Implemented own way of tracking shiftstate, solves issues with reporting ssAlt or ssAltGr being pressed. Solves issue #009394 too
git-svn-id: trunk@20767 -
2009-06-29 22:53:31 +00:00
paul
3c4f8ff042 gtk: don't apply SubstractScroll for gtk1 widgetset
git-svn-id: trunk@20428 -
2009-06-05 09:20:11 +00:00
paul
fdd47f0673 gtk: fill modifiers for 2 mouse extra butttons
git-svn-id: trunk@20419 -
2009-06-05 03:12:54 +00:00
paul
a3283dde56 gtk: cleanup, formatting
git-svn-id: trunk@20098 -
2009-05-21 09:01:38 +00:00
paul
8ed7281c00 gtk: use more generic code to set menuitem shortcuts and caption, redo SetLabelCaption for gtk2
git-svn-id: trunk@20027 -
2009-05-18 13:04:06 +00:00
paul
447f5d8a3c gtk: fix copying a rect from drawable to bitmap (issue #0012131)
git-svn-id: trunk@20024 -
2009-05-18 07:11:28 +00:00
paul
8103033b44 gtk2: use better system color map from http://www.endolith.com/wordpress/2008/08/03/wine-colors/, fix some issues with menu styles in GetStyle()
git-svn-id: trunk@19658 -
2009-04-28 07:08:50 +00:00
paul
49a493794c gtk, gtk2: initial support for native alpha bitmaps (using pixbuf as storage) tested on windows only
git-svn-id: trunk@19503 -
2009-04-19 09:46:08 +00:00
paul
c42b65b456 gtk: fix memory leak (internal mask was never freed), cleanup
git-svn-id: trunk@19488 -
2009-04-18 16:16:06 +00:00
paul
44fa480f4a gtk2: implement image flipping in StretchMaskBlt (part of issue #0013059)
git-svn-id: trunk@19215 -
2009-04-04 12:52:39 +00:00
mattias
26b2693ef7 gtk1+2 intf: key handling: fixed handling result of DeliverMessage, bug #9638
git-svn-id: trunk@18577 -
2009-02-05 10:30:42 +00:00
mattias
777ba7c055 gtk2 intf: fixed stopping mouse up event
git-svn-id: trunk@18454 -
2009-01-27 00:55:54 +00:00
mattias
8889f04e1d clean up
git-svn-id: trunk@16100 -
2008-08-18 06:56:53 +00:00
paul
988a36252e gtk: return drawing of clInfoBk with styled box
git-svn-id: trunk@15985 -
2008-08-07 15:42:08 +00:00
mattias
5f699ac8b2 gtk2: implemented TCanvas.ClipRect during paint, improved hiding/drawing caret with double buffer
git-svn-id: trunk@15865 -
2008-07-25 14:42:09 +00:00
mattias
e5805aab68 gtk/gtk2 intf: combobox: toggle selection mode to support ItemIndex=-1, fixed ReadOnly, updating intf ItemIndex cache on Delete/Insert/Change, refactoring for WS classes, from Luiz
git-svn-id: trunk@15842 -
2008-07-23 08:17:39 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
mattias
b26fda5243 gtk+gtk2+win32 intf: TComboBox: fixed LM_CHANGED, LM_SELCHANGED events, now LM_CHANGED are sent, whenever the text changes, from Luiz
git-svn-id: trunk@15831 -
2008-07-21 21:29:07 +00:00
mattias
02181f508e gtk1: fixed regression: gtk list IndexOf locked the change vents
git-svn-id: trunk@15725 -
2008-07-09 15:00:23 +00:00
paul
db26dddf06 gtk1, gtk2: Add CreateIconIndirect implementation which returns pixbuf. Move CreateCursor code there and remove its declaration.
git-svn-id: trunk@15457 -
2008-06-18 09:14:27 +00:00
sekelsenmat
f098565cff Starts separating gtkproc for gtk2 in gtk2proc.
git-svn-id: trunk@14854 -
2008-04-17 01:55:53 +00:00
tombo
d8a2b452ec LCL file dropping under gtk: applied #0011105: Patch to fix file drag and drop problems from Colin Western
git-svn-id: trunk@14784 -
2008-04-08 13:31:23 +00:00
paul
67ebf94a2e lcl: remove LM_INSERTTEXT, LM_DELETETEXT (not used in LCL anymore and fixes #0010930)
git-svn-id: trunk@14461 -
2008-03-07 17:09:25 +00:00
paul
11de6af8b9 decapitalize all procedure and function keywords to make all looks the same
git-svn-id: trunk@14375 -
2008-03-03 08:06:26 +00:00
mattias
348cc7798a LCL: small cleanups
git-svn-id: trunk@14021 -
2008-02-07 18:52:11 +00:00
paul
e48133ad74 gtk: perform erasing background on non opaque controls
git-svn-id: trunk@13842 -
2008-01-23 10:21:20 +00:00
paul
e0b764dc96 gtk:
- move GtkSwitchPage from GtkCallbacks unit to GtkWsExtCtrls unit
- fix double call of OnChanging on manual page change (part of 8338)

git-svn-id: trunk@13745 -
2008-01-14 08:10:31 +00:00
paul
c8d52d15d6 gtk:
- remove FinishComponentCreate: code moved to appropriate ws classes
- remove HookSignals (same reason)

git-svn-id: trunk@13537 -
2007-12-30 18:15:53 +00:00
paul
9d15123d91 - gtk: move dialogs related stuff to gtkwsdialogs and gtk2wsdialogs
- gtk complete moving CreateComponent code to appropriate classes
- lcl remove CreateComponent method since there is no more need in it

git-svn-id: trunk@13478 -
2007-12-27 09:51:27 +00:00
paul
44d1b9c7a8 lcl messages:
1) move LM_CREATE and LM_DESROY to windows base (fix crash of progress bar after enabling user messages on windows issue #0010458)
2) move LCL LM_ messages far from LM_USER base to prevent collisions with popular user messages like WM_USER, WM_USER+1, ...
3) remove 2 unneeded gtk messages: LM_EXPOSEEVENT, LM_MOVECURSOR and few totally unneeded messages
4) move WM_LCL_SOCK_ASYNC away from WM_USER

git-svn-id: trunk@13415 -
2007-12-22 18:51:06 +00:00
paul
b45bfc8cb3 - menu item icon drawing with effect for gtk1/2
- cleanup of win32 menu drawing

git-svn-id: trunk@12989 -
2007-11-23 18:34:55 +00:00
mattias
8f7f9fbebb gtk2 intf: GtkNoWindowFixed: removed gdkwindows for groupboxes and notebooks
git-svn-id: trunk@12976 -
2007-11-23 00:37:28 +00:00
marc
28578c3a91 * Started with object based GDI
* More splitup of gtk1/gtk2 code
* Fixed restore of GC after linedrawing
* Enabled desktop grabbing for gtk1

git-svn-id: trunk@12975 -
2007-11-23 00:07:45 +00:00
paul
d0cdd9d471 remove old imagelist code
git-svn-id: trunk@12972 -
2007-11-22 08:32:35 +00:00
paul
7309af00e9 gtk2: playing around transparent GtkFixed (no window + eventbox)
git-svn-id: trunk@12933 -
2007-11-20 03:21:36 +00:00
mattias
09342edb8f gtk intf: fixed GetClientRect for notebook
git-svn-id: trunk@12694 -
2007-11-02 10:58:55 +00:00
marc
9313297b28 * Fixed rowstride rounding
* Fixed bitmap endianes on bigendian displays
* Fixed pixbuf alpha loading on bigendian displays
(fixes #9740)

git-svn-id: trunk@12587 -
2007-10-26 00:08:10 +00:00
andrew
e628172571 Applied patch from Ales Katona for bug #9885 which fixes gtk2 Combobox OnSelect
git-svn-id: trunk@12395 -
2007-10-09 16:35:38 +00:00
sekelsenmat
ea7c9a28a9 Moved the minimum necessary types and constants from commctrl to lcltype to allow compilation of gtk, gtk2, carbon and qt.
git-svn-id: trunk@12321 -
2007-10-04 19:39:15 +00:00