Commit Graph

134 Commits

Author SHA1 Message Date
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
d49c89985a formatting
git-svn-id: trunk@16517 -
2008-09-10 03:00:04 +00:00
paul
0231a67f14 lcl, win32: formatting + misc
git-svn-id: trunk@16344 -
2008-09-01 10:00:29 +00:00
paul
1f78623bce win32:
- cleanup (reduce warnings)
 - fix wheel handling

git-svn-id: trunk@16179 -
2008-08-22 03:01:44 +00:00
marc
e1b010411a * Make bitblt and stretchblt alpha aware. In case of an alpha source or destination our alpha aware stretchmaskblt is used to blit a dc. (fixes #11694)
git-svn-id: trunk@15893 -
2008-07-27 17:13:03 +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
vincents
ae5a3cc7b8 win32 interface: fixed calculating text size on bitbtns (bug #11618)
git-svn-id: trunk@15690 -
2008-07-07 08:09:30 +00:00
marc
d43db7b7f3 * Splitup of TBitmap into TRasterImage, TCustomBitmap, TFPImageBitmap and TBitmap
* Implemented TIcon and reading .ico (including Vista icons)

git-svn-id: trunk@15472 -
2008-06-20 00:21:07 +00:00
sekelsenmat
fe83d3ce23 Fixes range check errors patch by Martin Friebe.
git-svn-id: trunk@15184 -
2008-05-19 21:49:46 +00:00
vincents
9ed9aa3295 win32 interfaces: added some defines to enable unicode support easily.
git-svn-id: trunk@14801 -
2008-04-11 11:22:20 +00:00
paul
a8587506b5 formatting, misc
git-svn-id: trunk@14481 -
2008-03-09 18:45:10 +00:00
paul
2f24df146a formatting, misc
git-svn-id: trunk@14442 -
2008-03-06 06:44:33 +00:00
paul
8f523aab33 - formatting
- misc

git-svn-id: trunk@14414 -
2008-03-05 03:29:25 +00:00
paul
a5b4f9d12f fix key handling of edit part of csSimple combobox (0007318)
git-svn-id: trunk@14249 -
2008-02-26 02:31:35 +00:00
sekelsenmat
9e54486ffa Large unicode improvements for Windows CE.
git-svn-id: trunk@14164 -
2008-02-16 21:38:56 +00:00
sekelsenmat
8023d99e58 Various Windows unicode fixes.
git-svn-id: trunk@14146 -
2008-02-15 20:23:58 +00:00
sekelsenmat
fa9e26c441 Fixes Groupbox child control positioning and TCustomCheckBox descendents autosizing under WinCE.
git-svn-id: trunk@14123 -
2008-02-13 17:26:10 +00:00
paul
f488474106 win32: fix bugs related to scrolling in GetLCLClientBoundsOffset (by Luiz Americo)
git-svn-id: trunk@14010 -
2008-02-07 07:41:21 +00:00
paul
f1d8f78b0c initial implementation of TWinControl.SetShape for gtk, qt, win32 + example
git-svn-id: trunk@13874 -
2008-01-25 06:56:57 +00:00
paul
6974762fd6 - formatting, cosmetic changes and cleanup
git-svn-id: trunk@13774 -
2008-01-16 04:05:34 +00:00
paul
6dd71e054c TMenu, TMenuItem:
- update icon on changes of imagelist and bitmap
- fix HasIcon - now it looks at Bitmap.IsEmpty too (issue #0010313)

git-svn-id: trunk@13125 -
2007-12-03 07:30:37 +00:00
paul
134a65e9b5 win32: fix win98 crash when screen color depth < 16bpp (with Marc's help)
git-svn-id: trunk@12851 -
2007-11-13 10:13:07 +00:00
paul
cf4069023c graphics:
- prevent accessing data outside bounds (when copying data from source to destination with bigger alignment. e.g word -> dword)
- fix win2000 bug with wrongly reported bmWidthBytes (they are calculated by win2000 sometimes as for word alignment while in fact they have dword alignment since all bitmap sections are dword aligned). fixes issue with shifted component images in win2000 ide

git-svn-id: trunk@12825 -
2007-11-11 12:51:38 +00:00
sekelsenmat
7002561862 Fixes unicode support for win32proc.MeasureText and dialogs on win32.
git-svn-id: trunk@12818 -
2007-11-10 18:15:10 +00:00
paul
d6b46fcbb5 decapitalize keywords Procedure, Function, Begin, End
git-svn-id: trunk@12655 -
2007-10-31 03:38:04 +00:00
paul
0492763d06 win32: solve problem with wrong application Z-order (introduced in StayOnTop fix)
git-svn-id: trunk@12471 -
2007-10-15 06:18:03 +00:00
paul
924b036e96 win32: fix bug with main window deactivation (caused by todays commit)
git-svn-id: trunk@12402 -
2007-10-10 09:26:31 +00:00
paul
892e6f172c win32:
- improve RemoveStayOnTopFlags, RestoreStayOnTopFlags to prevent activation of window. Dont allow more than one remove without restore and vice versa.
- remove stay on top from application windows when application become inactive and restore them on activate (so stay on top windows are not on screen when application is inactive) (issue #0008471)

git-svn-id: trunk@12399 -
2007-10-10 00:46:31 +00:00
marc
9117503b5d * Fixed dialog icons on windowsversions before XP
+ Added AlphaBlend for windows versions not supporting is
+ Added GetLastErrorText utility function

git-svn-id: trunk@12361 -
2007-10-07 18:17:07 +00:00
paul
564ac218a6 lcl: fix issue when scrollbar can have position more than in real
win32: fix incorrectly calculated clientrect of TScrollBox
(issue #0001986)

git-svn-id: trunk@12351 -
2007-10-06 15:51:37 +00:00
paul
3f32501f30 fix typo in previous commit
git-svn-id: trunk@12253 -
2007-09-30 08:04:22 +00:00
paul
1a6c35994e win32:
- remove stayOnTop flag on ShowModal and reset it back after
- bring modal window to front
(issue #0002011, #0007824)

git-svn-id: trunk@12252 -
2007-09-30 07:51:49 +00:00
paul
323051e548 win32:
- add BlendRect from Marc (for win32 rubber band. win32 rubber band will be commited later due to unsolved problems)
- fix recursion of WindowProc in case of subclussing of lazarus registered window class
- add missed flags for SetWindowPos
- formatting and misc

git-svn-id: trunk@11955 -
2007-09-07 16:56:15 +00:00
marc
c2645e0867 * Fixed black background on imagelist when no manifest or bpp < 24
git-svn-id: trunk@11917 -
2007-09-02 15:27:57 +00:00
marc
04b4e27b62 * Implemented basic alpha support
* Implemented LCL side of imagelist
* restructured rawimage to more OO

Merged revisions 11289-11617 via svnmerge from 
http://svn.freepascal.org/svn/lazarus/branches/marc-lcl

........
  r11289 | marc | 2007-06-06 22:50:05 +0200 (Wed, 06 Jun 2007) | 1 line
  
  private branch for bitmap rework
........
  r11290 | marc | 2007-06-06 23:30:09 +0200 (Wed, 06 Jun 2007) | 2 lines
  
  * Initial linux and win32 implementation
........
  r11291 | paul | 2007-06-07 03:20:11 +0200 (Thu, 07 Jun 2007) | 3 lines
  
  - fix compilation with fpc 2.3.1
  - remove unneded code for converting cursor mask
  - enabled loading of standard windows status icons instead of LCL
........
  r11292 | paul | 2007-06-07 11:03:27 +0200 (Thu, 07 Jun 2007) | 1 line
  
  - some bugs with mask and alpha
........
  r11299 | marc | 2007-06-08 00:59:26 +0200 (Fri, 08 Jun 2007) | 2 lines
  
  * force alpha channel when PNG has alpha
........
  r11302 | paul | 2007-06-09 04:45:12 +0200 (Sat, 09 Jun 2007) | 1 line
  
  - fix black rectangles instead of manu item images
........
  r11303 | paul | 2007-06-09 04:46:14 +0200 (Sat, 09 Jun 2007) | 1 line
  
  formatting
........
  r11309 | marc | 2007-06-11 02:25:07 +0200 (Mon, 11 Jun 2007) | 3 lines
  
  * Added alpha premultiply
  * Published Colorbox selection property
........
  r11310 | paul | 2007-06-11 19:10:18 +0200 (Mon, 11 Jun 2007) | 1 line
  
  misc
........
  r11312 | marc | 2007-06-12 01:44:03 +0200 (Tue, 12 Jun 2007) | 2 lines
  
  * start with carbon
........
  r11313 | paul | 2007-06-12 14:02:48 +0200 (Tue, 12 Jun 2007) | 1 line
  
  - BitBtn glyph transparency
........
  r11315 | paul | 2007-06-13 05:20:40 +0200 (Wed, 13 Jun 2007) | 1 line
  
  - problems with internal bitmap saving/loading (is was 24bpp when 32bpp needed)
........
  r11319 | paul | 2007-06-14 06:32:04 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - More LCL way of painting images through ThemeServices
........
  r11320 | paul | 2007-06-14 06:32:56 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - ability to override bitbtn glyph to nothing
........
  r11321 | paul | 2007-06-14 06:34:49 +0200 (Thu, 14 Jun 2007) | 1 line
  
  painting headercontrol images through ThemeServices
........
  r11325 | paul | 2007-06-17 10:14:27 +0200 (Sun, 17 Jun 2007) | 1 line
  
  fixing painting of 32bpp bitmaps with no Alpha
........
  r11326 | paul | 2007-06-17 10:16:00 +0200 (Sun, 17 Jun 2007) | 1 line
  
  missed file
........
  r11337 | paul | 2007-06-20 03:44:47 +0200 (Wed, 20 Jun 2007) | 3 lines
  
  - revert previous commit
  - create 24bpp bitmaps by default
........
  r11342 | marc | 2007-06-21 01:47:30 +0200 (Thu, 21 Jun 2007) | 3 lines
  
  * Added Alpha support on Carbon
  * Simplified win32 rawimage_fromdevice
........
  r11343 | paul | 2007-06-21 04:36:28 +0200 (Thu, 21 Jun 2007) | 1 line
  
  - adopt gtk2 code
........
  r11344 | paul | 2007-06-21 04:41:41 +0200 (Thu, 21 Jun 2007) | 1 line
  
  make gtk2 work
........
  r11353 | paul | 2007-06-22 10:12:19 +0200 (Fri, 22 Jun 2007) | 1 line
  
  - default WS imagelist implementation
........
  r11358 | marc | 2007-06-23 13:29:06 +0200 (Sat, 23 Jun 2007) | 2 lines
  
  * Implemented MaskBlit
........
  r11359 | paul | 2007-06-23 20:02:52 +0200 (Sat, 23 Jun 2007) | 1 line
  
  draw new imagelist bitmap on widget canvas
........
  r11371 | marc | 2007-06-25 23:50:13 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  * Rawimage rework
........
  r11372 | marc | 2007-06-25 23:51:00 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  + Added header
........
  r11373 | marc | 2007-06-26 00:05:55 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * Swapped RGBA <-> ARGB defualt format since most widgetsets use ARGB
........
  r11374 | marc | 2007-06-26 00:09:36 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * added
........
  r11462 | marc | 2007-07-12 00:16:02 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  + added header
........
  r11463 | marc | 2007-07-12 00:18:49 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * Added alpha/masked strechblt support
........
  r11464 | marc | 2007-07-12 00:21:27 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * create DIBSection instead of DIBitmap
........
  r11502 | marc | 2007-07-14 00:23:42 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  * Fixed transparentcolor after loading bitmap
........
  r11505 | marc | 2007-07-14 15:10:56 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  - Removed ARGB dataconversion, internal format is by default the same now
........
  r11531 | marc | 2007-07-17 01:23:34 +0200 (Tue, 17 Jul 2007) | 2 lines
  
  * changed TRawImage into object
........
  r11533 | paul | 2007-07-17 05:10:31 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init
  - change imagelist defines to use old imagelist (new is crashes ide)
  - change TWin32ThemeServices to use old imagelist
........
  r11534 | paul | 2007-07-17 05:19:02 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in Qt widgetset
  - change TRawImageDescription.IsEqual and TRawImage.IsEqual
........
  r11535 | paul | 2007-07-17 05:23:53 +0200 (Tue, 17 Jul 2007) | 1 line
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in wince widgetset
........
  r11554 | marc | 2007-07-18 00:10:11 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation on 2.0.4
........
  r11555 | marc | 2007-07-18 00:10:44 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation
........
  r11556 | marc | 2007-07-18 00:11:43 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed fillchar on TRawImage object
........
  r11572 | marc | 2007-07-19 01:41:35 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * fixed crash when object has vmt
........
  r11573 | marc | 2007-07-19 01:42:14 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * Made TRawimage compatible with record again
........
  r11580 | marc | 2007-07-20 01:33:20 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * enabled newimagelist
........
  r11581 | marc | 2007-07-20 01:33:48 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * fixed font
........

git-svn-id: trunk@11861 -
2007-08-25 01:49:40 +00:00
vincents
e9a4a804f8 win32 interface: fixed retreiving shiftstate for wm_mousewheel message (bug #8992)
git-svn-id: trunk@11820 -
2007-08-15 11:37:52 +00:00
paul
21bc08ec17 menuiteminfo compatibility with win95 from Martin Smat
git-svn-id: trunk@11518 -
2007-07-16 01:14:14 +00:00
vincents
af8e274993 win32 interface: allow deactivation of mainform, if it is disabled (bug #9204)
git-svn-id: trunk@11459 -
2007-07-11 07:10:32 +00:00
paul
11e3159669 - BidiMode patch from Zaher Dirkey (0009203)
git-svn-id: trunk@11413 -
2007-07-03 03:34:20 +00:00
paul
d5c7e43700 - BidiMode patch from Zaher Dirkey (0008996) part 1
git-svn-id: trunk@11408 -
2007-07-02 07:00:51 +00:00
vincents
3af8922151 win32 interface: mousepos can get negative value, so use smallint instead of word to store last mouse pos
git-svn-id: trunk@10873 -
2007-04-04 22:05:59 +00:00
micha
61bef86625 * another ugly winxp theming fix; now for trackbars (issue #2013)
git-svn-id: trunk@10839 -
2007-03-31 14:37:42 +00:00
vincents
a655b495c0 win32 interface: store edit maxlength in an integer to prevent range check errors.
git-svn-id: trunk@10593 -
2007-02-05 22:20:35 +00:00
vincents
edabd1fe1f win32 interface: get platform from the sysutils unit.
git-svn-id: trunk@10527 -
2007-01-29 10:21:15 +00:00
mattias
f9fcb805bb LCL: fixed updating control scrollbars, remaining bug: win32 intf moves controls when scrolling
git-svn-id: trunk@10317 -
2006-12-09 10:24:44 +00:00
marc
17018c7bca * Patch from Felipe Monteiro de Carvalho (modified)
* Temp fix for stings without terminator (fix needs improvement, count <> length)

git-svn-id: trunk@10296 -
2006-12-05 00:56:47 +00:00
marc
1c99781bc5 * Modified utf patch from Felipe Monteiro de Carvalho
git-svn-id: trunk@10196 -
2006-11-14 00:31:49 +00:00
micha
a4bd9f7713 fix pointer type conversions
git-svn-id: trunk@10039 -
2006-10-04 22:21:04 +00:00
marc
1d05474b23 * Fixed thumbtracking on scrollbars
git-svn-id: trunk@9497 -
2006-06-24 10:51:49 +00:00
micha
c3e60040cf fix drawing of listview in pagecontrol with winxp themes (issue #1588)
git-svn-id: trunk@9462 -
2006-06-21 15:22:43 +00:00
mattias
6eb4930179 fixed references to COPYING.LCL
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
micha
d9e9f1570f win64 fixes (from peter, modified)
git-svn-id: trunk@9221 -
2006-05-01 21:45:12 +00:00
vincents
47970b97cd fixed PopupMenu.OnClose event (issue #1712)
git-svn-id: trunk@8866 -
2006-03-04 13:07:01 +00:00
vincents
d6b62f2146 fixed AutoSize of TCustomLabel and TButtonControl with & in the caption (issue #1799)
git-svn-id: trunk@8861 -
2006-03-02 20:10:37 +00:00
micha
e85c09186f fix comment
git-svn-id: trunk@8813 -
2006-02-24 12:39:47 +00:00
vincents
b9c2988810 set constraints using wm_getminmaxinfo (issue #1520)
git-svn-id: trunk@8319 -
2005-12-14 21:00:22 +00:00
micha
9793627ce5 implement float spinedit for win32 (issue #1386)
git-svn-id: trunk@8139 -
2005-11-12 23:02:05 +00:00
micha
88a48665d5 make ignoreNextChar a global, because there is only one keyboard per application to be typed on (fixes #1227, setfocus in between KEYDOWN and KEYUP)
git-svn-id: trunk@8004 -
2005-10-30 15:33:20 +00:00
vincents
c67e75e666 fixed autosize of Checkbox
git-svn-id: trunk@7960 -
2005-10-12 14:46:05 +00:00
vincents
084c1127cb fixed fpc warning
git-svn-id: trunk@7916 -
2005-10-05 09:36:10 +00:00
micha
14919eb9e7 fix menu drawing in form (win32, fixes bug #1249)
git-svn-id: trunk@7860 -
2005-09-30 18:11:23 +00:00
micha
c22f97b8b0 message debug improvements
git-svn-id: trunk@7807 -
2005-09-23 19:25:51 +00:00
micha
122df55eae implement preferred size calculation for buttons and bitbtns
seperate text size calculation into general function

git-svn-id: trunk@7746 -
2005-09-19 21:40:26 +00:00
micha
628c0f8d8f fix GetSelected when handling WM_DRAWITEM, then LB_GETSEL is not reliable for currently to be drawn item (fixes #1076)
git-svn-id: trunk@7732 -
2005-09-17 20:37:21 +00:00
micha
25a302f677 fix+optimization: add a list that contains window handles of which the menus need to be redrawn (patch by martin smat)
git-svn-id: trunk@7592 -
2005-08-29 14:45:43 +00:00
micha
91d33a67f4 fixed: do not call KeyPress handling for alt-<x> keys (CN_SYSCHAR, WM_SYSCHAR)
fixed: handle tab when pressing the key, not when releasing it (seems platform independent)
fixed: remove tab handling in combobox
fixed: move dialogchar handling to pre-interface, so that widgetset can "ding" when key was not handled

git-svn-id: trunk@7543 -
2005-08-22 12:49:55 +00:00
vincents
a9cdded52a disable all application windows, when the AppHandle is disabled (fixes bug #788)
git-svn-id: trunk@7158 -
2005-05-06 20:07:29 +00:00
micha
b5bdb59ab4 horzscrollbar is nil sometimes when destroying component (fixing symptoms instead of cause?, fixes bug #607)
git-svn-id: trunk@6820 -
2005-02-20 20:03:07 +00:00
micha
7fc273c941 let general WindowProc also handle childedit of combobox, reduces code duplication, implements doubleclick for combobox
git-svn-id: trunk@6777 -
2005-02-10 21:07:29 +00:00
micha
acf4a0fbbf fix scrolling: left, top should not be changed while scrolling
git-svn-id: trunk@6604 -
2005-01-15 15:36:19 +00:00
micha
dd11737c04 prevent reporting of spurious mousemove messages
git-svn-id: trunk@6440 -
2004-12-31 16:29:59 +00:00
micha
6d3f279a9e fix showmodal to remember disabled windows (fixes bug #478, and more)
git-svn-id: trunk@6378 -
2004-12-16 14:29:51 +00:00
vincents
74bc6baac5 centralized dispose windowinfo
removed debug info

git-svn-id: trunk@6264 -
2004-11-17 23:06:29 +00:00
micha
67bca8d8e8 make code possible safer, with better typecasts and use of GlobalAddAtom, because windows are global
git-svn-id: trunk@6180 -
2004-10-29 14:24:17 +00:00
micha
8be1fd35e2 fix crash on showing tabpage
fix painting of radiobutton in groupbox (non-tabpage-parent)

git-svn-id: trunk@6177 -
2004-10-29 09:52:08 +00:00
vincents
cad1ac59a2 fixed fpc 1.0.x compilation
git-svn-id: trunk@6176 -
2004-10-29 06:57:22 +00:00
micha
cfbcf45a59 convert GetProp and SetProp usage to one Atom pointing to a record of fields
git-svn-id: trunk@6175 -
2004-10-28 21:00:56 +00:00
micha
84c8159e94 fix winxp theming for tabcontrols (shaded background)
git-svn-id: trunk@6167 -
2004-10-27 20:58:58 +00:00
micha
3c81935809 add TCustomForm.BorderIcons (delphi compat)
tweak win32 window dialog flags, to create better dialog look

git-svn-id: trunk@6159 -
2004-10-24 18:54:57 +00:00
micha
bda4272d04 optimize: only create tabpage contents when accessed, not immediately upon creation
git-svn-id: trunk@6157 -
2004-10-23 14:49:38 +00:00
vincents
89fe6ac437 replaced writeln by DebugLn
git-svn-id: trunk@6001 -
2004-09-14 21:30:37 +00:00
micha
47ee7b1b10 fix xp themes drawing image on bitbtn
git-svn-id: trunk@5577 -
2004-06-18 19:55:43 +00:00
vincents
b42f9e541f converted win32proc.inc to unit
git-svn-id: trunk@5549 -
2004-06-10 18:14:10 +00:00