summaryrefslogtreecommitdiff
path: root/src/gui/gui_button.pas
AgeCommit message (Collapse)Author
2008-07-14* Implemented a ModalResult type and related constants.graemeg
* Updated fpGUI framework to use the new TfpgModalResult type and mrXXX constants.
2008-07-03* EditTest in the prototypes directory now tests Button ImageLayout property.graemeg
* TfpgBevel has been added to the UI Designer component palette. * TfpgBevel is used in the UI Designer and Shape=Spacer it paints itself different in the UI Designer, so it's more visible. At runtime it doesn't paint like that.
2008-07-02* Applied Button patch from Michael van Canneyt. Adding ImageLayout property ↵graemeg
to Buttons.
2008-07-01* TfpgButton now contains a new property called Flat which gives it a flat ↵graemeg
look. As the mouse hovers over the button, it gets the normal look. This property overrides the Default property look. * UI Designer now has support for the Button.Flat property, but the flat behaviour has been disabled in the designer form to make buttons more visible compared to labels.
2008-06-26* Refactored the TfpgButton class so it's easier to create custom button ↵graemeg
type classes.
2008-06-19* Restore button state if an exception occurs inside the Click event.graemeg
2008-05-27* Applied Vladimir's button flag patch.graemeg
2008-05-19* Merged my private graemeg branch changes (r752:r781) into trunk. These ↵graemeg
changes are required to change all componens from 1-based indexing to 0-based indexing.
2008-04-27* Removed unneeded Canvas.BeginDraw and Canvas.EndDraw calls.graemeg
2008-04-25* Updated some widgets to handle the Keypad Enter key as well.graemeg
* Updated the UI Designer so F11 works switching between Properties Editor and Form Designer. * Updated the UI Designer so that New Form and Size or Position dialog accepts values when Enter is pressed.
2008-04-25* Fixed a bug introduced in r719 with toggle buttons.graemeg
2008-04-21* Fixed unwanted button down behaviour on mouse hover if buttons Click ↵graemeg
raised an error.
2008-03-25applied patch from Jean-Marc allowing ImageName to be set at creation.graemeg
2008-02-25* I believe I fixed the Button down state and Mouse Events issue. It now ↵graemeg
works under Linux. I still need to test under Windows. * Remove the unneeded .ReleaseMouse call in EditCombo unit. * Added new credit in the Authors text file * Fixed the tab order of the Wu Line example project.
2008-02-20* Applied Vladimir's patch for arrow key support in RadioButtons.graemeg
* TfpgWidget.TabOrder is now set at creation time. * Published the TabOrder property for all components that can receive keyboard input. * Extended the UI Designer so the TabOrder property can be edited.
2008-02-15* Applied Jean-Marc's TextColor and BackgroundColor patch.graemeg
* Made many more modifications based on Jean-Marc's patch and fixed a few things missed.
2008-02-01* Applied patch from Jean-Marc which fixes a minor issue in the TfpgMemo and ↵graemeg
TfpgMenu components. It also adds a new BackgroundColor property to TfpgButton. * Minor fixes to Jean-Marc's patch with button painting. * The threedee example now uses the new Button.BackgroundColor property.
2008-01-28* Applied Jean-Marc memo patch adding TextColor and BackgroundColor properties.graemeg
* Renamed the Color property to TextColor for RadioButton, Memo, DBLabel, Label, Edit and CheckBox. It's less confusing.
2008-01-26* Added a new Color property to RadioButton, Button and CheckBox.graemeg
The text color can now be changed per component. * Fixed up the default values for Color and BackgroundColor for a few components. * Extended the EditTest project to show the Color property in action.
2008-01-04* GUI: Moved all MenuItem painting into the Paint event handler.graemeg
* GUI: MenuItems OnClick is now triggered on mouse button up (like all other toolkits). * GUI: Clicking outside a menu while it's open doesn't trigger the OnClick event anymore. * Examples: Extended the menu example to show when each menu item's OnClick was triggered. * All the above needs testing under Windows.
2007-12-27* ComboBox dropdown now opens and closes as expected when you click insidegraemeg
the body of the combobox. * When OnClick was introduced in TfpgWidget, it caused duplicate OnClick calls. This has now been fixed. * PopupWindow.Close now calls HandleClose instead of HandleHide. * Fixed a few bugs in ComboBox and ListBox components.
2007-12-14* Implemented a OnClick event in TfpgWidget.graemeg
* published OnClick and OnDoubleClick in TfpgLabel, TfpgButton, TfpgBevel.
2007-11-28* Implemented a Command pattern interface.graemeg
* Added CommandHandler support to TfpgButton.
2007-10-28* Refactored the TfpgLabel component.graemeg
* Implemented a TfpgDBLabel (data-aware) label component. * Created a new DB test example to show how TfpgDBLabel works.
2007-10-22* Fixed more default property values.graemeg
2007-09-26* Added comments as to how the ImageMargin and ImageSpacing properties of ↵graemeg
TfpgButton works. * GUI Designer: Added ImageMargin settings to main form to centre toolbutton images.
2007-09-26* Added copyright information in the GUI units.graemeg
2007-09-08* Fixed initial painting of components when they are placed in the graemeg
form designer. * Fixed the initial state of scrollbars for various components. * Implemented more fine grained cursors. Used by the designer for the resizer buttons. * Components can now be moved around in the designer form. * Components can now be placed inside container components like TfpgBevel. * Treeview doesn't crash the GUI designer anymore, yet the painting is still not working for it. * Tab and reverse Tab now work in the GUI designer. * GUI Designer title bar is now consistent in text format.
2007-09-07GFX: Added support for handle component creation at runtime correct graemeg
while the parent component is already visible. * GUI: Introduced the usage of ComponentState so that the components react correctly in the GUI Designer. Not all components are tested yet. * GUI Designer almost paints the designed form correctly. When placing a component, they are invisible, but as soon as you resize them, they are painted correctly. This is still work
2007-08-29* Implemented a Default property for TfpgButtongraemeg
2007-08-10* Fixed minor compiler error and Mouser Cursor supportgraemeg
* Fixed minor compiler error and FastDoubleBuffer support * Fixed a bug in GDI DrawRectangle when LineStyle <> lsSolid * Implemented Canvas.DrawFocusRect * Implemented fpgStyle.DrawFocusRect
2007-08-08* Fixed the TfpgButton focus rectangle to not be so close to the edge.graemeg
* Fixed the TfpgBaseGrid header title painting.
2007-08-08* Finally fixed all painting issues with rectangles and clipping.graemeg
* Reverted the methods back to using TfpgRect instead of TRect. TfpgRect has better support for Width and Heigh - required by many Canvas methods. * Implemented helper functions like InflateRect but support TfpgRect * Fixed all painting issues and rectangle sizes in all components. * Fixed up all examples and test projects to compile and work correctly. * Fixes some clip rectangle issues under Linux. TfpgRect was a big help. * Changed the method signatures of many Canvas methods to rather use x, y, width and height. This causes much less confusion and actually less coding in widgets.
2007-08-07reverted unintentional changes to gui_buttondrewski207
2007-08-07* Most Keyhandling for listviewdrewski207
* Listview uses better colors for drawing * Better listview selection control * Minor changes to listview example
2007-08-07* Changed the parameters of DrawRectangle, FillRectangle to rather use Width ↵graemeg
and Height. * DrawLine and DrawRectangle now use the same coordinate system as Windows does. * I need to fixed corrupted painting in widgets due to this.
2007-07-27X11 only:graemeg
* Fixed a bug in the SetLineStyle which caused inaccurate line drawing. This eluded me for ages. * Started the process of removing TfpgRect and replacing it with the standard Object Pascal TRect. * Started updating some methods to rather use two sets of coordinates instead of width and height. * Added a new test to verify drawing accuracy * Implemented more line styles under X11 * Fixed up painting issues in widgets (Scrollbar and Memo are still outstanding) * Added three new helper functions for use with TRect in fpgfx.pas (InflateRect, CentrePoint, OffsetRect).
2007-07-26* Added a DrawString() method to TfpgStylegraemeg
* Changed TfpgCheckBox, TfpgRadioButton, TfpgLabel and TfpbButton to use fpgStyle.DrawString instead. * Updated the prototype test app to demo these features. * TfpgCheckBox now handle image painting correctly based on the widget state and mouse state (up, down). * Minor improvement to the look of the X in the CheckBox image.
2007-07-23The first part of removing the obsolete fpGUI and replacing it with the new ↵graemeg
multi-handle design from the prototypes directory.