Commit Graph

14682 Commits

Author SHA1 Message Date
blikblum
0b8695e5ae lcl: put dataset in edit state only if data changed
git-svn-id: trunk@34385 -
2011-12-24 14:10:21 +00:00
blikblum
b417b1eed4 win32: remove check for returned WindowInfo (dead code)
git-svn-id: trunk@34384 -
2011-12-24 13:20:13 +00:00
blikblum
bea8f07f37 win32: group boolean fields of TWin32WindowInfo. Saves 8 bytes per record (96 -> 88)
git-svn-id: trunk@34383 -
2011-12-24 12:59:41 +00:00
blikblum
ae39c05267 win32: replace TList by TFPList in win32proc
git-svn-id: trunk@34382 -
2011-12-24 12:44:04 +00:00
blikblum
48b3086233 win32: cleanup ObjectToHWND
git-svn-id: trunk@34381 -
2011-12-24 12:35:49 +00:00
blikblum
a2141d47cb win32: cleanup GetLCLClientBoundsOffset. remove check for scrollbar fields if RedirectDestroyMessages defined
git-svn-id: trunk@34380 -
2011-12-24 12:24:26 +00:00
sekelsenmat
89dd7c918b Fixes bug #20195: Removes LCLIntf.Frame in favor of a cross-platform implementation for TCanvas.Frame
git-svn-id: trunk@34379 -
2011-12-24 10:52:33 +00:00
sekelsenmat
21e55aba98 Fixes the misterious non-windowed control dancing in customdrawnws (implementing Save/RestoreDC was the fix), advances the regions support and starts trayicon implementation in customdrawnws (doesnt work yet)
git-svn-id: trunk@34378 -
2011-12-24 10:06:18 +00:00
blikblum
9c630b6274 win32: redirect messages sent by win32 after call to DestroyWindow to a specific window proc (disabled by default through a define). Those messages can lead to access to LCL objects after destruction with potential crashes.
git-svn-id: trunk@34377 -
2011-12-24 01:08:30 +00:00
blikblum
7b40b6ff7e lcl: always close/prevent dropdown when pressing Return, ESC or TAB. Code cleanup
git-svn-id: trunk@34373 -
2011-12-23 14:19:28 +00:00
blikblum
8ad1d066b9 win32: remove checks for windowinfo
git-svn-id: trunk@34372 -
2011-12-23 14:17:50 +00:00
paul
32d6b7cde2 cocoa: improve Font selection
git-svn-id: trunk@34371 -
2011-12-23 07:37:07 +00:00
paul
0ba57d4557 cocoa: reimplement setting bold and underline using more safer way
git-svn-id: trunk@34370 -
2011-12-23 03:48:45 +00:00
paul
7c13806132 cocoa: implement underline, strikeout fonts, implement font applying
git-svn-id: trunk@34369 -
2011-12-23 03:16:30 +00:00
paul
847f9b8c20 cocoa: implement text coloring in graphics context
git-svn-id: trunk@34368 -
2011-12-23 02:22:13 +00:00
paul
ab221e099a cocoa: start redoing text drawing using NSTextLayout
git-svn-id: trunk@34367 -
2011-12-23 01:03:56 +00:00
sekelsenmat
cbe7d6ff5f Compilation fix and starts TApplication.MoveFormFocusToChildren
git-svn-id: trunk@34365 -
2011-12-22 16:58:18 +00:00
sekelsenmat
cbb0725222 Fixes focusing into intf controls
git-svn-id: trunk@34364 -
2011-12-22 16:43:37 +00:00
sekelsenmat
ded92535b3 LCL-CustomDrawn-Windows: Advances the keyboard and mouse support
git-svn-id: trunk@34363 -
2011-12-22 15:57:14 +00:00
sekelsenmat
3884615b5c Starts native text for LCL-CustomDrawn-Windows
git-svn-id: trunk@34362 -
2011-12-22 15:21:21 +00:00
zeljko
6a551041eb Carbon: implemented SM_CYCAPTION.
git-svn-id: trunk@34361 -
2011-12-22 12:30:48 +00:00
zeljko
9832a3cb06 Qt: fixed branch indicator position under mac themes
git-svn-id: trunk@34360 -
2011-12-22 12:04:26 +00:00
sekelsenmat
4062bd1bdd LCL-CustomDrawn-X11: Adds support for XAddConnectionWatch
git-svn-id: trunk@34359 -
2011-12-22 11:06:45 +00:00
sekelsenmat
cf2403a126 Adds LCLIntf functions for conveniently obtaining a native form Handle or a native Canvas Handle from the LCL
git-svn-id: trunk@34358 -
2011-12-21 20:13:07 +00:00
sekelsenmat
c01e1b5cde Fixes compilation for non-x11 LCL-CustomDrawn
git-svn-id: trunk@34357 -
2011-12-21 19:18:38 +00:00
sekelsenmat
383db45538 LCL-CustomDrawn-X11: Fixes timers with zero interval, adds support for Application.Idle calling and more checks for Terminated
git-svn-id: trunk@34356 -
2011-12-21 17:01:22 +00:00
zeljko
ecf3f41b11 Gtk2: fixed selections in listview (vsList, vsReport) for gtk2 < 2.10.issue #19820
git-svn-id: trunk@34355 -
2011-12-21 16:36:54 +00:00
sekelsenmat
eaab533d22 LCL-CustomDrawn-X11: Improves the timer precision, allows bigger waits when no timers are active and implements AppProcessMessages
git-svn-id: trunk@34354 -
2011-12-21 16:20:05 +00:00
sekelsenmat
023e61f0d5 Makes the X11 timer less influenciable by X11 events
git-svn-id: trunk@34352 -
2011-12-21 15:20:55 +00:00
sekelsenmat
1933e0f5ff Adds a callback for Android OnCreate and also implements TTimer in X11
git-svn-id: trunk@34350 -
2011-12-21 13:40:14 +00:00
paul
438fe7f401 cocoa: reimplement FrameRect using NSFrameRect function
git-svn-id: trunk@34349 -
2011-12-21 13:15:32 +00:00
zeljko
829de72590 Carbon: fixed key reporting when dragmanager is active. issue #19680
git-svn-id: trunk@34345 -
2011-12-21 10:04:25 +00:00
paul
47ac6db82c cocoa: port StretchMaskBlt from carbon, fix context destruction, misc
git-svn-id: trunk@34341 -
2011-12-21 08:30:02 +00:00
zeljko
99f59d9279 Qt: updated README.txt
git-svn-id: trunk@34339 -
2011-12-21 07:16:54 +00:00
sekelsenmat
3625472f5d LCL-CustomDrawn-Windows: Fixes compilation
git-svn-id: trunk@34338 -
2011-12-21 07:09:33 +00:00
zeljko
ac028a407b TCustomColorComboBox: trigger custom color dialog on OnCloseUp instead of OnChange.Patch by theo. issue #20924
git-svn-id: trunk@34337 -
2011-12-21 07:00:56 +00:00
paul
494b78cea1 cocoa: implement SendMessage, PostMessage
git-svn-id: trunk@34336 -
2011-12-21 06:05:11 +00:00
mattias
1b781cdb35 IDE: updating po files using codetools file caches
git-svn-id: trunk@34334 -
2011-12-20 22:09:06 +00:00
sekelsenmat
96d5e480cc Advances the support for setting the font size in Android
git-svn-id: trunk@34323 -
2011-12-20 13:12:14 +00:00
sekelsenmat
1f545e968d Many DPI fixes for customdrawn_common and Android support
git-svn-id: trunk@34320 -
2011-12-20 10:35:32 +00:00
paul
81f2d6d659 cocoa: intial implementation for GetDeviceCaps
git-svn-id: trunk@34314 -
2011-12-20 07:07:02 +00:00
paul
3d9e75c6de cocoa: implement GetBkColor, redo SetTextColor, GetTextColor
git-svn-id: trunk@34313 -
2011-12-20 06:28:14 +00:00
paul
f69729f41b cocoa: implmenebt GetContextSize
git-svn-id: trunk@34312 -
2011-12-20 06:12:33 +00:00
paul
fd4ac5495b cocoa: copy carbon implementation of GetObject
git-svn-id: trunk@34311 -
2011-12-20 04:58:01 +00:00
sekelsenmat
322b0f930c LCL-CustomDrawn: Advances bitmap handling code and adds more object deletion support. Attempted to fix a crash when running the magnifier. The crash isnt yet fixed, however.
git-svn-id: trunk@34310 -
2011-12-20 04:08:52 +00:00
sekelsenmat
d6604b2665 Adds one more init for bpp=1
git-svn-id: trunk@34309 -
2011-12-20 04:07:24 +00:00
paul
e63a0d80b5 cocoa: implement GetFocus, SetFocus
git-svn-id: trunk@34308 -
2011-12-20 03:42:39 +00:00
paul
c59a98a83e cocoa: implement SetActiveWindow and SetForegroundWindow
git-svn-id: trunk@34307 -
2011-12-20 02:24:14 +00:00
paul
76950c5c17 cocoa: port carbon Frame, Frame3D, FrameRect
git-svn-id: trunk@34306 -
2011-12-20 02:06:14 +00:00
paul
7d50bae583 cocoa: copy carbon implementation of DrawFocusRect
git-svn-id: trunk@34305 -
2011-12-20 01:19:06 +00:00
paul
3690a04cd0 cocoa: simplify some cocoa utils
git-svn-id: trunk@34304 -
2011-12-20 01:11:51 +00:00
mattias
8d89a03bd1 LCL: less warnings
git-svn-id: trunk@34293 -
2011-12-19 20:37:58 +00:00
sekelsenmat
b41b044791 Finishes screenshot code in LCL-CustomDrawn-Cocoa
git-svn-id: trunk@34292 -
2011-12-19 19:46:23 +00:00
sekelsenmat
a454e1415f lcl-customdrawn-cocoa: Fixes compilation
git-svn-id: trunk@34290 -
2011-12-19 19:10:38 +00:00
sekelsenmat
217b6bb45b Changes the lapDefault resolution into Application.Initialize
git-svn-id: trunk@34289 -
2011-12-19 18:59:14 +00:00
mattias
37c57a6bf4 LCL: less warnings
git-svn-id: trunk@34285 -
2011-12-19 17:15:25 +00:00
sekelsenmat
62b39a7ba1 lcl-customdrawn-android: Updates all forms when the screen rotates, not only the current one
git-svn-id: trunk@34282 -
2011-12-19 15:02:34 +00:00
sekelsenmat
454c19a3d7 Android: Fixes screen sizing and attempts to improve timer destruction
git-svn-id: trunk@34281 -
2011-12-19 14:31:09 +00:00
sekelsenmat
cc0e04b161 Finishes the basic implementation of dpi and screen rotation adjustment for Android. Not 100% perfect, but in general already functional.
git-svn-id: trunk@34279 -
2011-12-19 13:51:13 +00:00
paul
b839a5040a lcl: report ssMeta in GetKeyShiftState
git-svn-id: trunk@34276 -
2011-12-19 12:21:36 +00:00
sekelsenmat
b5a59868f9 Commits the first part of layout auto-adjustment support in the LCL
git-svn-id: trunk@34272 -
2011-12-19 10:25:13 +00:00
paul
01acb2ab16 cocoa: try to implement GetActiveWindow, GetForegroundWindow
git-svn-id: trunk@34271 -
2011-12-19 09:17:30 +00:00
zeljko
c318a6099e Carbon: fixed TTabControl, now it's TCarbonCustomControl, also fixed issue #12506
git-svn-id: trunk@34270 -
2011-12-19 09:08:12 +00:00
zeljko
6dce0066e9 Qt: fixed segfault when designing TTabControl.
git-svn-id: trunk@34269 -
2011-12-19 08:47:13 +00:00
sekelsenmat
d2c89a1ff3 Starts screenshot taking code in LCL-CustomDrawn-Cocoa, already works, but the colors are switched
git-svn-id: trunk@34268 -
2011-12-19 08:36:19 +00:00
paul
2a70b1b482 cocoa: add BkColor, BkMode to TCocoaContext
git-svn-id: trunk@34267 -
2011-12-19 08:24:29 +00:00
zeljko
38ffe4cb95 Carbon: fix key events after toolbutton clicked inside toolbar. issue #19275
git-svn-id: trunk@34266 -
2011-12-19 08:06:59 +00:00
paul
808daec901 cocoa: add ROP2 to CocoaContext
git-svn-id: trunk@34265 -
2011-12-19 06:27:02 +00:00
paul
81f9739b39 cocoa: implement SetProp, GetProp, FillRgn
git-svn-id: trunk@34264 -
2011-12-19 05:24:43 +00:00
paul
99a670dfcb cocoa: add cnt_Error to region type enumeration, create a map between cocoa region types and win32, return correct region type instead of complexregion
git-svn-id: trunk@34263 -
2011-12-19 01:26:35 +00:00
zeljko
f84b0a0a4e Gtk2: fix inaccurate paint of checkbox and radiobutton when caption is empty. issue #20764
git-svn-id: trunk@34261 -
2011-12-18 18:17:53 +00:00
zeljko
fc972af002 LCL: TCustomEditButton: update button position when bidi mode changes. issue #20628
git-svn-id: trunk@34260 -
2011-12-18 16:14:14 +00:00
zeljko
6dce9e5fb8 Qt: formatting
git-svn-id: trunk@34259 -
2011-12-18 16:00:53 +00:00
zeljko
d2f60568af Gtk,Qt: do not pass button into TShiftState in MouseUp event. issue #20916
git-svn-id: trunk@34258 -
2011-12-18 15:44:27 +00:00
zeljko
97b7e5c8ef Qt: fixed seg fault with TCheckListBox, fixed passing OnItemClick when adding items.issue #20927
git-svn-id: trunk@34254 -
2011-12-18 11:12:40 +00:00
mattias
ae753f4f56 LCL: ReadPoText: small optimizations
git-svn-id: trunk@34238 -
2011-12-17 10:42:26 +00:00
mattias
6ab26d942e LCL: translation: replaced FIdentifierToItem with TStringToPointerTree
git-svn-id: trunk@34237 -
2011-12-17 01:05:18 +00:00
mattias
ed7ff21c35 LCL: added some inline
git-svn-id: trunk@34236 -
2011-12-17 00:59:07 +00:00
mattias
f50fcef931 LCL: Read po file: some optimizations
git-svn-id: trunk@34231 -
2011-12-16 21:04:06 +00:00
sekelsenmat
2d144d5ed2 Many fixes for Android keyboard handling
git-svn-id: trunk@34224 -
2011-12-16 15:56:40 +00:00
sekelsenmat
f2254e0143 Various fixes for handling the Back key in Android and fixes OnClick in all backends
git-svn-id: trunk@34223 -
2011-12-16 15:39:33 +00:00
sekelsenmat
0e7a6b3226 Adds bidi properties to TPage and TNotebook
git-svn-id: trunk@34222 -
2011-12-16 14:39:05 +00:00
sekelsenmat
3270436597 Adds virtual keyboard support to LCL-CustomDrawn-Android
git-svn-id: trunk@34221 -
2011-12-16 14:31:57 +00:00
sekelsenmat
3c9ee8524f Adds the new Application.ExtendedKeysSupport flag and advances the implementation of keyboard support in LCL-CustomDrawn-Cocoa
git-svn-id: trunk@34219 -
2011-12-16 08:22:27 +00:00
mattias
b7e59c0f5b lazutils: optimized UTF8CStringToUTF8String
git-svn-id: trunk@34218 -
2011-12-16 01:16:04 +00:00
mattias
93a466e9bb LCL: ReadPoText: small optimization
git-svn-id: trunk@34217 -
2011-12-16 01:07:11 +00:00
sekelsenmat
3eb7e6d65f Starts the keyboard support in LCL-CustomDrawn-Cocoa
git-svn-id: trunk@34213 -
2011-12-15 21:04:45 +00:00
sekelsenmat
2365759795 Adds comments about the meaning of VK_* keys and improves the Android key mapping
git-svn-id: trunk@34212 -
2011-12-15 18:55:37 +00:00
sekelsenmat
9e9d729258 LCL-CustomDrawn: Starts implementing X11 utf8keypress and adds redrawing when focus changes
git-svn-id: trunk@34211 -
2011-12-15 16:10:55 +00:00
sekelsenmat
7cbda7c1e4 LCL-CustomDrawn-X11 Fixes key up
git-svn-id: trunk@34210 -
2011-12-15 15:17:25 +00:00
sekelsenmat
a104532170 customdrawnws: Implements critical sections to avoid the flood of debugln; Fixes a bug in non-native form handling, it didnt inform the LCL that the form was getting closed; Removes the wrongly added BackendAppInit
git-svn-id: trunk@34209 -
2011-12-15 14:57:23 +00:00
sekelsenmat
d0fbd55816 LCL-CustomDrawn-X11: Advances the table X11 keys
git-svn-id: trunk@34208 -
2011-12-15 13:38:11 +00:00
sekelsenmat
05cd46835f Advances keyboard events in Android and X11. Simple key down/up can already be received in both
git-svn-id: trunk@34207 -
2011-12-15 13:19:01 +00:00
zeljko
09b6901936 Qt: qt on mac always expects that brush mode = transparent when drawing text.
git-svn-id: trunk@34202 -
2011-12-15 11:33:30 +00:00
zeljko
b7aae45a58 Qt: fix null clip region disaster under coregraphics and quickdraw paintengines (macosx)
git-svn-id: trunk@34201 -
2011-12-15 09:03:36 +00:00
zeljko
c89a9595eb Qt: final fix for TQtMenuBar memleaking.
git-svn-id: trunk@34200 -
2011-12-15 07:25:41 +00:00
paul
e162c3f604 cocoa: implement ScreenToClient and ClientToScren + various cleanup and formatting
git-svn-id: trunk@34199 -
2011-12-15 07:22:12 +00:00
blikblum
3608d8a050 lcl: fix crash when dataset is edit state. Issue #20900
git-svn-id: trunk@34195 -
2011-12-15 00:28:52 +00:00
sekelsenmat
3f621c5134 Some more small changes to decrease the file size
git-svn-id: trunk@34191 -
2011-12-14 18:52:45 +00:00
sekelsenmat
bcf40c505b customdrawnws: Removes the wrong usage of the unit Translations, saves 1MB in file size
git-svn-id: trunk@34190 -
2011-12-14 18:29:28 +00:00
zeljko
e4f9a6fa22 Qt: set again immediate widget creation to darwin too, problem was with FOwnWidget which should be false anyway
when QMenuBar is constructed with known parent (form in this case), so qt will destroy it.

git-svn-id: trunk@34189 -
2011-12-14 17:56:50 +00:00
zeljko
59c576a21a Qt: revert r34171 #7571057b7d, mac can crash with this enabled under heavy load, let qt think about time of creation of window.
git-svn-id: trunk@34187 -
2011-12-14 17:33:50 +00:00
zeljko
8d9b107ca7 Qt: do not show menubar for empty menus from child forms on macosx.
git-svn-id: trunk@34186 -
2011-12-14 17:13:29 +00:00
sekelsenmat
53aba472a1 Adds a new TApplication property to control the layout auto-adjustment policy. This property will allow converting the LCL fixed layouting effectively into a stretchable grid layout
git-svn-id: trunk@34185 -
2011-12-14 17:12:03 +00:00
zeljko
68737c98a0 Qt: mapped shift+alt as groupswitch under macosx to be consistent with native qt widgets.
git-svn-id: trunk@34184 -
2011-12-14 15:50:15 +00:00
zeljko
e31005f909 Qt: extended debug info for -dVerboseQtKeys
git-svn-id: trunk@34183 -
2011-12-14 15:06:31 +00:00
sekelsenmat
150858b684 Adds BiDi to tab controls and removes the old TTabControl implementation for simplification
git-svn-id: trunk@34182 -
2011-12-14 14:51:04 +00:00
sekelsenmat
4a5b2a2815 customdrawn-android: Improves the non-native form handling and implement appropriate support for the Back hardware key
git-svn-id: trunk@34180 -
2011-12-14 13:16:24 +00:00
sekelsenmat
872dd6830b customdrawn-android: Implements TTimer and improves the key handling
git-svn-id: trunk@34179 -
2011-12-14 12:36:48 +00:00
zeljko
4df5e7288b Qt: fixed memleaks with TQtMenuBar under macosx, added forgoten scancodes into latest patch for macosx.
git-svn-id: trunk@34178 -
2011-12-14 12:30:03 +00:00
zeljko
9b93b7a0bc Qt: change scancode under macosx with qt > 4.5. Related to issue #13470
git-svn-id: trunk@34176 -
2011-12-14 10:59:29 +00:00
sekelsenmat
52611f279a customdrawnws: Adds more stub code to the text metrics to prevent crashes. Updates the non-android example for the second form
git-svn-id: trunk@34174 -
2011-12-14 09:46:26 +00:00
zeljko
9395999ae0 Qt: added attribute QtAA_MacDontSwapCtrlAndMeta for qt >= 4.6 under mac.issue #20897
git-svn-id: trunk@34172 -
2011-12-14 09:26:35 +00:00
zeljko
7571057b7d Qt: make qt under mac happier with enabling immediatewidget creation attribute for forms.
git-svn-id: trunk@34171 -
2011-12-14 09:08:57 +00:00
zeljko
fe19967858 Qt: proper pass text of keypress when enter pressed (numpad) under macosx.issue #20896
git-svn-id: trunk@34170 -
2011-12-14 09:06:11 +00:00
paul
bd6fd1f10c cocoa: implement BitBtn image showing
git-svn-id: trunk@34168 -
2011-12-14 08:18:01 +00:00
sekelsenmat
aa5c1a901c customdrawnws: Starts implementing TEdit, Starts implementing Android key events, updates the example
git-svn-id: trunk@34167 -
2011-12-14 08:14:19 +00:00
paul
75b7ee82c5 cocoa: implement GetSysColor, GetSysColorBrush
git-svn-id: trunk@34166 -
2011-12-14 07:40:29 +00:00
sekelsenmat
cebbdc9d4a customdrawn: Corrects the Application.MessageBox result
git-svn-id: trunk@34162 -
2011-12-13 21:23:32 +00:00
sekelsenmat
cab34d03db customdrawnws: Implements TLabel
git-svn-id: trunk@34161 -
2011-12-13 20:06:36 +00:00
zeljko
9f43a00709 Qt: use more clever mouse grabber on all platforms when dragmanager is started in tabbar mouse event, now it's same on all platforms. issue #17393
git-svn-id: trunk@34160 -
2011-12-13 19:48:28 +00:00
zeljko
c1536eef8b Qt: use better approach when designing pagecontrol.
git-svn-id: trunk@34159 -
2011-12-13 18:48:54 +00:00
zeljko
4b834dcd73 Qt: implemented TQtTabBar.TabBarOffset for themes where tabs doesn't start at 0,0 (eg. macosx).
git-svn-id: trunk@34158 -
2011-12-13 18:20:07 +00:00
zeljko
e85441db12 Qt: fixed mouse events in TQtTabBar on MacOSX. issue #17393
git-svn-id: trunk@34157 -
2011-12-13 16:48:28 +00:00
sekelsenmat
49ce7da4b4 customdrawnws: Adds support for TStaticText
git-svn-id: trunk@34156 -
2011-12-13 12:55:50 +00:00
sekelsenmat
aa6e4e422d customdrawn-android: Fixes autosizing of controls by postposing Application.Run into Activity.OnCreate
git-svn-id: trunk@34155 -
2011-12-13 12:06:53 +00:00
zeljko
108b21dfc0 Qt: fixed wrong param in MapToGlobal and MapFromGlobal, should be TQtPoint instead TPoint
git-svn-id: trunk@34153 -
2011-12-13 11:08:10 +00:00
sekelsenmat
50dc7cf2e8 customdrawn-android: Improves the drawing of the bottom part of letters like g
git-svn-id: trunk@34152 -
2011-12-13 10:22:29 +00:00
zeljko
f45d3703b2 Qt: pascalified mapToGlobal() and mapFromGlobal()
git-svn-id: trunk@34151 -
2011-12-13 09:49:30 +00:00
sekelsenmat
c7d4748e81 customdrawn-android: Improves the text rendering, starts implementing text metrics. Improves the customdrawn examples.
git-svn-id: trunk@34150 -
2011-12-13 09:30:28 +00:00
paul
a206f65bcd cocoa: fix some sizing/positioning code like GetClientRect
git-svn-id: trunk@34149 -
2011-12-13 09:19:06 +00:00
paul
f2b683630b cocoa: port carbon clipping code, port carbon SaveDC, RestoreDC
git-svn-id: trunk@34148 -
2011-12-13 07:51:39 +00:00
sekelsenmat
be198d094a Small naming fix
git-svn-id: trunk@34147 -
2011-12-13 07:51:37 +00:00
sekelsenmat
33b5417013 Minor commenting improvement
git-svn-id: trunk@34146 -
2011-12-13 07:15:44 +00:00
sekelsenmat
9fc8c6bedc customdrawn-android: Improves the text rendering by adding a new way of doing alpha blending which ignores the existing pixels. This was required because otherwise many pixels were misteriously being read as red in the target area which resulted in a redish text
git-svn-id: trunk@34145 -
2011-12-13 07:02:01 +00:00
paul
edffab4454 cocoa: continue work on moze/sizing
git-svn-id: trunk@34142 -
2011-12-13 02:17:06 +00:00
sekelsenmat
446ffaa84b customdrawn-android: Finishes the initial implementation of text rendering, it works ok for a very initial support. Improves the AlphaBlend method in TLazCanvas to be more optimized and support a custom source position.
git-svn-id: trunk@34138 -
2011-12-12 21:10:18 +00:00
zeljko
2b4adf30f7 Carbon,QtMac: fixed wrong behaviour of mouse wheel scroll,because LCL assumes 120 as wheel delta.issue #20888
git-svn-id: trunk@34137 -
2011-12-12 16:54:28 +00:00
sekelsenmat
e52894ea3f customdrawn-android: Small crash fix, native text not yet working
git-svn-id: trunk@34136 -
2011-12-12 16:49:20 +00:00
sekelsenmat
9645315d87 customdrawn-android: Improves the native text, not yet working
git-svn-id: trunk@34135 -
2011-12-12 16:46:11 +00:00
sekelsenmat
9d9bf409cd customdrawn-ws: Fixes non-android compilation
git-svn-id: trunk@34133 -
2011-12-12 12:42:42 +00:00
zeljko
f57344cde7 Carbon: implemented TCarbonWidgetSet.ScrollWindowEx (with r34130 #a40be07236 - forgot to add to log), now small cleanup inside that routine.
git-svn-id: trunk@34131 -
2011-12-12 10:27:22 +00:00
zeljko
a40be07236 Carbon: implemented SIF_TRACKPOS in GetScrollInfo for TCarbonCustomControl.
git-svn-id: trunk@34130 -
2011-12-12 10:23:56 +00:00
zeljko
0c30efa09e Carbon: implemented SW_SHOW and SW_HIDE for non-window controls, also for TCarbonWindow.
git-svn-id: trunk@34129 -
2011-12-12 08:32:08 +00:00
paul
61a5e41099 cocoa: start work on sizing/positioning
git-svn-id: trunk@34128 -
2011-12-12 07:52:53 +00:00
sekelsenmat
9c38c40343 Reworks the assyncronous modal dialogs interface and adds it to the TCustomForm too. Reimplements the Android support for modal dialogs to support 1 Java implementation for both MessageBox and PromptUser. Implements LCLIntf.PromptUser for Android
git-svn-id: trunk@34127 -
2011-12-12 07:30:55 +00:00
zeljko
33c4eb1f2f Qt: workaround for Qt-4.5 bug. issue #20863
git-svn-id: trunk@34126 -
2011-12-12 07:12:28 +00:00
paul
66e6e42951 cocoa: send LM_CLICKED for button clicks and LM_CHANGED for checkbox change
git-svn-id: trunk@34125 -
2011-12-12 06:14:44 +00:00
blikblum
5f0b15ad52 win32: dont update index for ReadOnly in TWin32WSCustomComboBox.SetText. It's not necessary because index, so the Text, is updated in LCL. The previous implementation was also wrong since could select wrong item, e.g., setting text to 'a' in a combo that has items 'abc', 'a' was selecting 'abc'
git-svn-id: trunk@34120 -
2011-12-11 23:11:29 +00:00
sekelsenmat
6646781795 Starts the support in the LCL for assyncronous modal dialogs, implements MessageBox in LCL-CustomDrawn-Android and updates the Android example to test this API
git-svn-id: trunk@34117 -
2011-12-11 20:31:09 +00:00
zeljko
4495bb0f1f Qt: use averageCharWidth under MaxOSX with Qt >= 4.6
git-svn-id: trunk@34116 -
2011-12-11 19:20:12 +00:00
zeljko
2ae7c7e1df Qt: fixed black mask on window icons under MacOSX
git-svn-id: trunk@34114 -
2011-12-11 19:00:25 +00:00
zeljko
bdb4d0c6b9 Qt: fixed masked image drawing under MacOSX
git-svn-id: trunk@34111 -
2011-12-11 18:23:00 +00:00
maxim
bfb6d5511b regenerated translations; updated Russian translation
git-svn-id: trunk@34109 -
2011-12-11 16:32:03 +00:00
blikblum
ee5256ca4a win32: remove unnecessary type cast check
git-svn-id: trunk@34108 -
2011-12-11 16:02:41 +00:00
juha
c596657f60 Finnish translation improvements
git-svn-id: trunk@34103 -
2011-12-11 15:12:37 +00:00
blikblum
327e84b060 win32: fix selecting items that differs only in case in combobox. Issue #16816.
git-svn-id: trunk@34100 -
2011-12-11 15:00:33 +00:00
zeljko
649fbe7f16 Gtk2: Fixed ScrollWindowEx when region rect is equal clip rect.
Gtk2: TGtk2WidgetSet.ShowWindow(), changed behaviour so it's win32 and qt compatibile.Respect SW_SHOW and SW_HIDE if hand
le is PGtkWidget without window.

git-svn-id: trunk@34099 -
2011-12-11 13:58:46 +00:00
zeljko
5d7716606b Gtk: TGtkWidgetSet.ShowWindow(), changed behaviour so it's win32 and qt compatibile.Respect SW_SHOW and SW_HIDE if handle is PGtkWidget without window.
git-svn-id: trunk@34098 -
2011-12-11 13:57:30 +00:00
blikblum
b360e5a0bf gtk2: clear content of combobox when setting ItemIndex to -1
git-svn-id: trunk@34097 -
2011-12-10 21:41:49 +00:00
zeljko
05f61e9cb9 Qt: implemented supported ternary raster ops for BitBlt(),StretchBlt(),StretchMaskBlt().
git-svn-id: trunk@34090 -
2011-12-10 18:15:42 +00:00
sekelsenmat
62636dd7fd customdrawnws: Patch from bug #20848 plus a small comment fix
git-svn-id: trunk@34088 -
2011-12-10 16:55:07 +00:00
zeljko
5522c80015 Gtk2: fixed bug in TGtk2WidgetSet.DrawText() where gtk2 missed to draw text if DT_NOCLIP flag exists.
git-svn-id: trunk@34086 -
2011-12-10 15:50:29 +00:00
zeljko
d34721833f Qt: removed TQtWidgetSet.RadialPie() implementation, it's wrong since qt have different meaning of calculating pie parameters. let lcl draw it.
git-svn-id: trunk@34085 -
2011-12-10 15:36:06 +00:00
blikblum
372a68c92c lcl: simplified TDBLookup.UpdateData;
remove TDBLookup.FLookupList. Not needed anymore
handle setting Null data

git-svn-id: trunk@34084 -
2011-12-10 14:40:25 +00:00
blikblum
3b2f0d4e32 lcl: remove TDBLookup.ListFieldValue. Is not used anymore
git-svn-id: trunk@34083 -
2011-12-10 13:55:27 +00:00
blikblum
fa1ad856db lcl: use DisplayText in db Lookup controls. Fixes #20768
git-svn-id: trunk@34082 -
2011-12-10 13:53:07 +00:00
blikblum
94c0cf0f16 lcl: clear text after setting itemindex to -1. Avoid not being cleared when itemindex is already -1
git-svn-id: trunk@34081 -
2011-12-10 13:31:02 +00:00
juha
66508f5197 LCL, Win32: Fix Rangecheck error when assigning ImageList to ListView. Issue #20861
git-svn-id: trunk@34080 -
2011-12-10 10:58:09 +00:00
zeljko
43874efc17 Qt: fixed combobox itemindex when list contain duplicates. issue #20863
git-svn-id: trunk@34079 -
2011-12-10 08:22:53 +00:00
blikblum
2389b0aed4 lcl: db lookup use the index to locate the list values instead of the display text. Fixes #20841
git-svn-id: trunk@34078 -
2011-12-09 20:23:24 +00:00
mattias
21bf214ace LCL: TControl.SetAlign: do not clean AnchorSides for alNone, alCustom
git-svn-id: trunk@34077 -
2011-12-09 19:55:12 +00:00
mattias
8ccddae67e LCL: TControl.SetAlign: do not set AnchorSides while loading
git-svn-id: trunk@34075 -
2011-12-09 19:48:52 +00:00
mattias
011e74dc5a LCL: TControl.SetAlign: do not set AnchorSides while loading
git-svn-id: trunk@34074 -
2011-12-09 19:41:51 +00:00
zeljko
724f6f8e29 Qt: implemented QPushButton autosizing. issue #20805
git-svn-id: trunk@34069 -
2011-12-09 14:42:10 +00:00
sekelsenmat
d80ca7832e customdrawn-windows: Fixes the drawing of sub-controls and starts using the unified message handlers
git-svn-id: trunk@34068 -
2011-12-09 09:29:32 +00:00
sekelsenmat
1763e07ef9 Removes LCL-Android in favor of LCL-CustomDrawn-Android
git-svn-id: trunk@34067 -
2011-12-09 08:46:48 +00:00
sekelsenmat
da50c7a83c customdrawn: Removes the intfgroupbox, this control will be implemented via direct drawing
git-svn-id: trunk@34066 -
2011-12-09 08:00:02 +00:00
zeljko
33b5efc277 Gtk2: formatting
git-svn-id: trunk@34065 -
2011-12-09 07:58:06 +00:00
zeljko
4ee63e0524 Gtk2: cleanup
git-svn-id: trunk@34064 -
2011-12-09 07:43:27 +00:00
zeljko
ac0b4e91c6 Gtk2: cleanup, removed GetWindowManager, it already exist in Gtk2WidgetSet
git-svn-id: trunk@34063 -
2011-12-09 07:42:04 +00:00
zeljko
b8a8a0fe39 Gtk2: proper handle of cursor moving in memo view, use mark instead cursor move. issue #20847
git-svn-id: trunk@34061 -
2011-12-09 07:19:11 +00:00
zeljko
8efdf7144d Gtk2: skip taskbarhint after call to gtk_window_present() for modal forms. issue #18323
git-svn-id: trunk@34060 -
2011-12-09 07:06:54 +00:00
sekelsenmat
59c140bec2 customdrawnws: Starts unifying the event callbacks by the Cocoa backend
git-svn-id: trunk@34059 -
2011-12-09 06:35:10 +00:00
blikblum
4361a67b65 lcl: fix itemindex when combobox has duplicates. Issue #20846
git-svn-id: trunk@34053 -
2011-12-08 19:53:11 +00:00
sekelsenmat
c526606ce5 customdrawn: Starts improving the scrollbar move and fixes a bug in the common frame draw routine
git-svn-id: trunk@34052 -
2011-12-08 17:30:11 +00:00
zeljko
f0cd76b3a5 Qt: removed usage of slow QApplication_syncX() when showing forms, all X11 code merged into one ifdef inside ShowHide().
git-svn-id: trunk@34051 -
2011-12-08 17:16:47 +00:00
sekelsenmat
bea498988d customdrawn-windows: Fixes compilation
git-svn-id: trunk@34048 -
2011-12-08 16:37:58 +00:00
zeljko
c9e116762e LCL: TCustomListBox fixed drawing with non-default color and drawing of focus rect.Patch by Ask,modified by me. issue #20837
git-svn-id: trunk@34045 -
2011-12-08 15:18:44 +00:00
sekelsenmat
8603783deb Code simplification for the TCDButton common drawer
git-svn-id: trunk@34043 -
2011-12-08 15:14:02 +00:00
sekelsenmat
af439d12fd customdrawnws: Adds support for set/getprop, adds support for focus by clicking in a control, adds support for bsClear in brush
git-svn-id: trunk@34041 -
2011-12-08 12:42:46 +00:00
sekelsenmat
9a66e29797 customdrawn-x11: Improves the paint profiling debug info, starts unifying the code to draw the form and speeds up the X11 rendering by eating redundant paint messages
git-svn-id: trunk@34039 -
2011-12-08 10:32:13 +00:00
sekelsenmat
e495c78e4d Reworks the drawing code in LCL-CustomDrawn to support drawing only 1 control or it and its children, adds more elements to the lazcanvas save state and makes lazregions more similar for fpc 2.7 and old versions by adding a copy of TFPCustomRegion
git-svn-id: trunk@34038 -
2011-12-08 09:48:14 +00:00
sekelsenmat
c10575f191 lazcanvas: Fix a mistake in the sharp stretch and corrects the rectangle implementation
git-svn-id: trunk@34037 -
2011-12-08 08:25:24 +00:00
sekelsenmat
506fc9ad3b lazregions sub-rect point in region fix and fixes compilation of customdrawn-cocoa
git-svn-id: trunk@34035 -
2011-12-08 07:36:52 +00:00
sekelsenmat
9adba3fe2d lazcanvas: Fixes compilation in fpc 2.7.1
git-svn-id: trunk@34033 -
2011-12-07 21:04:48 +00:00
zeljko
482dfef45c LCL: preserve TCustomLabel bg color when TCustomLabel is disabled for delphi compatibity.Patch by stimulus. Issue #20739
git-svn-id: trunk@34032 -
2011-12-07 20:01:36 +00:00
zeljko
ab4efd3d8d Qt: fixed bug where TGraphicControls weren't painted on TTabControl,changed underlaying widget handle of TTabControl from TQtTabWidget to TQtWidget.
git-svn-id: trunk@34031 -
2011-12-07 19:56:19 +00:00
zeljko
c2fcfb1833 Gtk2: fixed bug in tabcontrol painting in gtk2themes, issue #20822
git-svn-id: trunk@34030 -
2011-12-07 19:21:19 +00:00
zeljko
534feafb8e LCL: Themes.DrawText() added DT_WORDBREAK and DT_END_ELLIPSIS.
git-svn-id: trunk@34028 -
2011-12-07 15:51:26 +00:00