Commit Graph

94 Commits

Author SHA1 Message Date
paul
91b8f86233 try to fix menuitem bitmap loading and assigning
git-svn-id: trunk@13425 -
2007-12-23 08:54:58 +00:00
vincents
01a956df63 LCL: in case of index out of bounds error, the message shows the upperbound instead of the count of the list (bug #10367)
git-svn-id: trunk@13201 -
2007-12-07 13:00:20 +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
mattias
dd735a4378 replaced writeln with debugln
git-svn-id: trunk@13011 -
2007-11-24 21:28:46 +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
paul
f1ce28907c Menus:
- improved TMenuItem ImageIndex / Bitmap logic
- draw win32 menus with effects (disabled, selected, normal)

git-svn-id: trunk@12794 -
2007-11-09 06:29:07 +00:00
mattias
b75d65f8d7 IDE: improved various dialogs using the new LCL bugfixes
git-svn-id: trunk@12539 -
2007-10-20 22:53:55 +00:00
vincents
fd83263261 LCL: made menu caption and hint translatable (#9876)
git-svn-id: trunk@12389 -
2007-10-09 08:27:16 +00:00
marc
5e2d879340 * Fixed menuitemclick for menus with submenu. Based on patch from Luis Rodrigues
* Optimized getting menu imagelist
* some cleanup

git-svn-id: trunk@12025 -
2007-09-13 22:42: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
paul
9d62526137 - (QT) TQtImage.AsIcon
- (QT) set image to menu item
- (LCL) destroy menu item bitmap if ImageIndex reseted to -1

git-svn-id: trunk@11423 -
2007-07-05 03:47:03 +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
mattias
be15116595 IDEIntf: added OnShow handler for TIDEMenuSection, h2pas wizard: implemented adding/editing text tools
git-svn-id: trunk@9698 -
2006-08-02 16:36:35 +00:00
mattias
6eb4930179 fixed references to COPYING.LCL
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
mattias
d13febced8 added TMenuItem.IsLine from Graeme
git-svn-id: trunk@8987 -
2006-03-22 19:01:55 +00:00
mattias
c5381fa007 reduced debugging output and extended debugging of lcl
git-svn-id: trunk@8565 -
2006-01-19 18:36:07 +00:00
mattias
ae7c181070 improved menuitems, speedbuttons and imagelist from Colin
git-svn-id: trunk@8071 -
2005-11-06 10:23:34 +00:00
vincents
34bd4ff3a5 Show radiobutton, if TMenuItem.RadioItem is checked (issue #1377)
git-svn-id: trunk@8032 -
2005-11-02 12:44:29 +00:00
mattias
3749535cc4 fixed menuintf removing items
git-svn-id: trunk@7784 -
2005-09-22 21:03:24 +00:00
mattias
a0c1aa4499 fixed not setting TMenu.Items.Caption
git-svn-id: trunk@7780 -
2005-09-21 22:51:47 +00:00
mattias
3a45cb4d8d fixed menu editor deleting items
git-svn-id: trunk@7642 -
2005-09-07 22:06:17 +00:00
vincents
d2051e0818 free menuitemhandlers when destroying a menuitem
git-svn-id: trunk@7628 -
2005-09-05 12:12:44 +00:00
mattias
ff7171bad0 implemented dynamic menu item in MenuIntf, Source Editor now uses the menuintf
git-svn-id: trunk@7616 -
2005-09-02 17:46:30 +00:00
mattias
7ef1a6df74 CodeExplorer now uses the MenuIntf
git-svn-id: trunk@7457 -
2005-07-30 15:01:39 +00:00
mattias
2d239b23cd MessagesView now uses the MenuIntf
git-svn-id: trunk@7456 -
2005-07-30 13:47:05 +00:00
mattias
f2ecd38e12 moved some menu intf methods to the TXXXWSMenuItem class from Martin Smat
git-svn-id: trunk@7310 -
2005-07-01 12:07:50 +00:00
mattias
1114e5832d added message parts to Help interface
git-svn-id: trunk@7225 -
2005-06-08 08:02:09 +00:00
mattias
b2ba0f4418 implemented right justification for menuitems for winapi intf from Martin Smat
git-svn-id: trunk@7191 -
2005-05-21 15:58:44 +00:00
micha
d1470964a1 fix spelling
git-svn-id: trunk@7152 -
2005-05-06 07:52:58 +00:00
mattias
4049e50ad0 implemented TMenuItem.SetVisible
git-svn-id: trunk@6360 -
2004-12-10 21:36:27 +00:00
micha
f9d650d137 convert LM_CREATE message to interface methods
remove SendMsgToInterface, CNSendMessage and related methods
remove TWidgetSet.IntSendMessage3; all LCL to interface messages have been converted

git-svn-id: trunk@6073 -
2004-09-24 21:34:14 +00:00
micha
07ce1184e8 convert LM_DESTROY message to interface methods
git-svn-id: trunk@6028 -
2004-09-18 12:43:15 +00:00
micha
4c7a853aca convert LM_SHORTCUT message to interface methods
git-svn-id: trunk@6018 -
2004-09-17 10:56:26 +00:00
micha
773ffa3278 convert LM_ATTACHMENU to interface method
git-svn-id: trunk@5961 -
2004-09-10 18:58:24 +00:00
micha
d189d5601f convert LM_SETLABEL message to interface methods
git-svn-id: trunk@5954 -
2004-09-10 09:43:13 +00:00
mattias
885b54ba20 fixed codetools ConstSet, implemented notifying TApplication whenmenu popups
git-svn-id: trunk@5776 -
2004-08-13 10:20:19 +00:00
mattias
356acf3d9a fixed TMenuItem.GetIconSize
git-svn-id: trunk@5596 -
2004-06-24 17:45:33 +00:00
mattias
220f368496 implemented painting menuitem icons from ImageList
git-svn-id: trunk@5575 -
2004-06-17 21:24:19 +00:00
mattias
f7b6d663a8 fixed setting ImageIndex when TMenuItem.ActionChange
git-svn-id: trunk@5574 -
2004-06-17 20:52:19 +00:00
mattias
7f77713e6c replaced writeln by debugln
git-svn-id: trunk@5456 -
2004-05-11 12:16:48 +00:00
mattias
ce11f9f6e2 implemented mainunit hints for include files
git-svn-id: trunk@5393 -
2004-04-10 17:58:57 +00:00
micha
912d81b51e revert intf split
git-svn-id: trunk@5225 -
2004-02-23 08:19:05 +00:00
micha
8c520fe744 split interface into non-lcl and lcl-component dependent parts
git-svn-id: trunk@5224 -
2004-02-22 22:52:59 +00:00
mattias
c111d6709d TMenuItem.Bitmap is now auto created on read. Added TMenuItem.HasBitmap
git-svn-id: trunk@5181 -
2004-02-08 11:31:32 +00:00
mattias
7218b6a616 implemented Actions for TSpeedButton, TMenuItem, TCheckBox
git-svn-id: trunk@5172 -
2004-02-05 09:45:33 +00:00
mattias
1ef103e7bf fixed updating menu designer caption when editing in OI
git-svn-id: trunk@5166 -
2004-02-04 17:06:26 +00:00
mattias
9bcc3289ba implemented generic function to hide TComponents without page in designer
git-svn-id: trunk@5164 -
2004-02-04 13:55:08 +00:00
mattias
bf8c04c86a ShortCutToText now deletes any modifier
git-svn-id: trunk@5163 -
2004-02-04 13:40:19 +00:00
mattias
f5c3e32e19 added TMenuItem.Action
git-svn-id: trunk@5142 -
2004-02-02 18:09:41 +00:00
marc
41da727612 * renamed (Check|Enable)MenuItem to MenuItemSet(Check|Enable)
+ Started with accelerator nameing routines
* precheckin for createwidget splitup

git-svn-id: trunk@5048 -
2004-01-11 16:38:29 +00:00