Commit Graph

431 Commits

Author SHA1 Message Date
vincents
1f3f833a84 win32 interface: use UTF16 <-> UTF8 conversion functions from LCLProc instead of UTF8Encode/UTF8Decode from the RTL to work around fpc bug #13075
patch by: Theo
fixes issue #13067

git-svn-id: trunk@18769 -
2009-02-20 08:33:44 +00:00
paul
7ddb879bc3 win32: adjust clientrect when we restore form from minimized/maximized state (fixes bug #0013136, bug #0010503)
git-svn-id: trunk@18743 -
2009-02-18 07:08:46 +00:00
paul
1051a764db lcl: formatting
git-svn-id: trunk@18741 -
2009-02-18 03:43:39 +00:00
paul
ff0c1822d1 win32: postpone combobox CBN_CLOSEUP message to let CBN_SELCHANGE to be handled first (fixes bug #0013189)
git-svn-id: trunk@18723 -
2009-02-17 07:29:14 +00:00
paul
0819d94bb4 win32: use LCL DeliverMessage instead of own
win32: better handle windows theme change (part of bug #0012715)

git-svn-id: trunk@18695 -
2009-02-15 09:33:57 +00:00
paul
53a4ae0a3e win32: remove few workarounds regards window focus and application z-order
lcl: remove code which focused control on every window show. it caused errors with z-order of forms after minimize-restore (issue #0012635)
lcl: restore last active control/form on application restore

git-svn-id: trunk@18645 -
2009-02-12 10:21:33 +00:00
paul
1d777bebeb lcl: introduce TScreen.DisableForms, TScreen.EnableForms,
lcl: Disabling/Enabling forms before/after showing of modal form
win32: remove win32 specific methods of disabling/enabling windows. Use new TScreen methods instead
win32: disable/enable forms before/after showing some system dialog (fixes bug #0012366, bug #0012382)

git-svn-id: trunk@18629 -
2009-02-10 14:38:01 +00:00
paul
746c583d65 win32: set only ptMaxTrackSize. Windows will automatically calculate ptMaxSize (fixes bug #0012655)
git-svn-id: trunk@18609 -
2009-02-09 06:52:53 +00:00
paul
aaefb01ca1 win32: reduce flickering of themed applications (bug #0010307, bug #0012190)
git-svn-id: trunk@18594 -
2009-02-06 18:44:50 +00:00
paul
82572a7ab9 win32: pass both LogOff and ShutDown to Application.OnQueryEndSession, Application.OnEndSession (bug #0011969)
git-svn-id: trunk@18548 -
2009-02-04 02:24:58 +00:00
paul
03516b6b64 win32: don't set combobox text on closeup notification (bug #0010929)
git-svn-id: trunk@18528 -
2009-02-01 10:23:09 +00:00
paul
9056fdcdf0 win32: combobox fixes
- add combobox messages to WM_TO_STRING function
  - fix recursion in the ComboBoxWindowProc related to GetComboboxInfo call and further CB_GETCOMBOBOXINFO message generated by windows
  - fix destroying wrong window info if combobox has no edit (fixes bug #0012529)

git-svn-id: trunk@18525 -
2009-02-01 09:29:47 +00:00
paul
983e3633ec lcl: fix some autosize problems
git-svn-id: trunk@18501 -
2009-01-30 07:44:06 +00:00
paul
6fd6f8e904 win32: workaround showing accelerator chars (bug #0013056)
git-svn-id: trunk@18481 -
2009-01-29 03:30:24 +00:00
paul
7ce333d91a win32: don't reassign already found lWinControl variable by HandleUnicodeChar - use parent lWinControl value (fixes bug #0013044)
git-svn-id: trunk@18448 -
2009-01-26 09:36:50 +00:00
paul
6eccca7842 lcl: button changes
- set TabStop = Checked on radio button checked change (delphi compatibility) 
  - move LM_CLICKED handler from TCustomButton to TButtonControl
  - change TRadioGroup TabStop back to false
win32: pass LM_CLICKED for TButtonControls, remove unneeded code
(fixes #0012855, #0012689 ?)

git-svn-id: trunk@18426 -
2009-01-24 19:38:02 +00:00
paul
f7dce3c301 win32: correct some debugLn
git-svn-id: trunk@18407 -
2009-01-24 11:48:29 +00:00
paul
949b2781aa win32: pass WM_CANCELMODE to the LCL,
lcl: stop mouse capture on LM_CANCELMODE (issue #0012813)

git-svn-id: trunk@18393 -
2009-01-23 02:40:28 +00:00
paul
862a8f9949 win32: don't change mainform window state on application restore (bug #0012654)
git-svn-id: trunk@18284 -
2009-01-14 04:34:13 +00:00
paul
133caf74fd win32: draw missed focus rectangle for all themed bitbtns
git-svn-id: trunk@18250 -
2009-01-11 07:08:27 +00:00
paul
69bd358a27 win32: set focus on first focusable control or on page itself if no such control on pagecontrol page change (bug #0012692)
git-svn-id: trunk@18213 -
2009-01-08 18:06:52 +00:00
paul
e65435e6ab win32: switch tabsheets even if pagecontrol is placed on another controls (bug #0012931)
git-svn-id: trunk@18182 -
2009-01-07 09:14:18 +00:00
paul
cd79a420be win32: don't fire Wheel events for disabled windows (bug #0012803)
git-svn-id: trunk@18019 -
2009-01-01 19:17:29 +00:00
paul
3659841c55 lcl: disable docking at the design time (#0012772)
git-svn-id: trunk@17776 -
2008-12-10 01:56:37 +00:00
paul
4bd4fa8fb0 win32: apply patch of Martin Friebe which allows triple and quad-mouse-click action for windows (only for left mouse button though) #0012767
git-svn-id: trunk@17742 -
2008-12-09 05:57:18 +00:00
paul
efe9d531c3 widgetset: make WS classes method explicitly published
win32: fix WS classes. move methods to published sections

git-svn-id: trunk@17576 -
2008-11-25 02:29:28 +00:00
paul
1628077528 lcl: undo CN_NOTIFY overriding for trackbar
win32: 
  - handle CN_NOTIFY in the default handler and redirect it to the window proc in case of trackbar
  - use ThemeManager code to draw themed trackbar

git-svn-id: trunk@17091 -
2008-10-22 05:12:23 +00:00
paul
112beff0fb win32: don't override TrackBar WM_NOTIFY handler result in the lcl default handler (trackbar bg is transparent now)
git-svn-id: trunk@17090 -
2008-10-22 03:39:47 +00:00
vincents
6361b90a57 win32 interface: don't change spinedit, if readonly=true (issue #12306)
git-svn-id: trunk@16892 -
2008-10-06 10:44:30 +00:00
vincents
273220e891 fixed compilation after merging of the fpc Unicode branch to fpc 2.3.1
git-svn-id: trunk@16573 -
2008-09-12 21:24:45 +00:00
paul
3191164086 win32, wince: revert previous cursor-related commit. It was wrong. Fix real problem. (#0012117)
git-svn-id: trunk@16557 -
2008-09-12 00:48:44 +00:00
paul
6c22b2ee3b win32: fix WM_SETCURSOR handling (#0012117)
git-svn-id: trunk@16533 -
2008-09-11 01:00:40 +00:00
paul
3374c666b8 lcl: publish OnUTF8KeyPress
git-svn-id: trunk@16520 -
2008-09-10 09:22:59 +00:00
paul
c9143f45a9 win32: workaround WM_MOUSEWHEEL (#0011768)
git-svn-id: trunk@16515 -
2008-09-10 01:10:04 +00:00
paul
0231a67f14 lcl, win32: formatting + misc
git-svn-id: trunk@16344 -
2008-09-01 10:00:29 +00:00
tombo
6e943705bf IDE object inspector: added switch UseOnGetItems to use OnGetItems instead of OnDropDown
LCL stdctrls: new event TCustomComboBox.OnGetItems - for just-in-time populating of items, fired with TCustomComboBox.IntfGetItems from widget set
LCL win32: implemented OnGetItems
Docs stdctrls: added TCustomComboBox.OnGetItems

git-svn-id: trunk@16300 -
2008-08-29 14:53:32 +00:00
jesus
b53d0aeba0 LCL, check for modified charcode after keypress, issue #11793
git-svn-id: trunk@16091 -
2008-08-17 18:20:33 +00:00
vincents
db3eeab4f1 win32 interface: don't send keystrokes to unkown LCL objects (bug #11810)
git-svn-id: trunk@16024 -
2008-08-11 22:16:14 +00:00
vincents
dcaa111227 LCL: FloatSpinEdit uses double for internal representation, so that the full range of 32 bits integer can be represented without rounding problems (fixes #10844)
git-svn-id: trunk@15835 -
2008-07-22 10:01:50 +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
vincents
492e1d41d8 win32 interface: don't focus wincontrol on left click explicitly, the LCL and windows itself can handle that on their own, fixes bug #1773
git-svn-id: trunk@15658 -
2008-07-02 19:20:24 +00:00
jesus
0b3665c441 lcl, fixed typing unicode chars under win32 when local cp doesn't match current keyboard layout
git-svn-id: trunk@15641 -
2008-07-01 21:01:21 +00:00
vincents
e0ddcf13ee win32 interface: remove selecting all text when focussing a TCustomEdit, this can be down in the LCL by setting TCustomEdit.AutoSelect := true (fixes bug #11558)
git-svn-id: trunk@15588 -
2008-06-27 12:41:42 +00:00
paul
cba644ed21 win32: improve double buffering protection (#0011145)
git-svn-id: trunk@15455 -
2008-06-18 00:49:25 +00:00
paul
c3efd672e0 win32: protect double buffer gdi objects from enemies (#0011145)
git-svn-id: trunk@15449 -
2008-06-17 08:18:31 +00:00
paul
75bb6cfe41 formatting
git-svn-id: trunk@15448 -
2008-06-17 07:32:09 +00:00
paul
37de3d4197 win32, qt: report wheel events in client coords (#0011442)
git-svn-id: trunk@15408 -
2008-06-13 14:30:07 +00:00
paul
72096b4856 lcl:
- add TCheckListBox.ItemEnabled property
- implement ItemEnabled for win32, qt, gtk2

git-svn-id: trunk@15295 -
2008-06-03 02:02:42 +00:00
vincents
a367413cf8 win32 interface: further fix to implement TComboBox.DropDownCount
git-svn-id: trunk@15171 -
2008-05-16 23:54:00 +00:00