summaryrefslogtreecommitdiff
path: root/src/gui/fpg_button.pas
AgeCommit message (Collapse)Author
2014-03-29style: new button state btfEnabledGraeme Geldenhuys
2014-03-24Publishes the OnKeyPress event for TfpgButtonGraeme Geldenhuys
We had that event all implemented, and it is useful ever for buttons - so I decided to publish it too.
2013-08-27published OnExit and OnEnter events for TfpgButton class.Graeme Geldenhuys
2013-04-02Buttons & Styles now support hover effect on standard buttons too.Graeme Geldenhuys
Before we only had the mouse hover effect on Flat buttons. But now the Style can enable hover support for normal buttons too. Important for Win7 and MacOSX like themes.
2011-11-07fixes a spelling mistake in a code commentGraeme Geldenhuys
2011-05-19Button Click function should only run if widget is enabled.Graeme Geldenhuys
2011-05-10Fixed widget commentGraeme Geldenhuys
2011-05-08Removed magic numbers with GetButtonBorders() usage instead.Graeme Geldenhuys
2011-05-08globally renamed TFTextFlags to TfpgTextFlagsGraeme Geldenhuys
Somehow I forgot to rename this type when we introduced the 'fpg' prefix years ago.
2011-05-08globally renamed TFButtonFlags to TfpgButtonFlagsGraeme Geldenhuys
Somehow I forgot to rename that type name when we moved over to the 'fpg' prefix.
2011-05-04Call methods from fpgStyle directly.Graeme Geldenhuys
Seeing that we already use a few methods directly from fpgStyle, lets change all the others to be consistent.
2011-05-04Introduced the usage of fpgStyle.GetButtonShift.Graeme Geldenhuys
Custom styles can now define there own button shift values and the TfpgButton will adhere to them.
2011-05-03AText variable was never really used, so I removed it.Graeme Geldenhuys
2011-05-03promoted nested function CalculatePositions() to a method of TfpgBaseButtonGraeme Geldenhuys
2011-01-13button: CreateButton() helper method never called UpdateWindowPositionGraeme Geldenhuys
2011-01-12Use Width and Height properties instead of internal fields in constructorGraeme Geldenhuys
This is sow that the internal FPrevXXX and other state information is setup correctly. The Edit Button controls also needed some extra code to work correctly in the UI Designer.
2010-11-09* Added property IgnoreDblClicks to TfpgWidgetAndrew Haines
* TfpgButton now ignores double clicks by default
2010-10-29TfpgButton.Down property didn't have a default in property declaration.Graeme Geldenhuys
2010-10-29bugfix: button click via keyboard was broken.Graeme Geldenhuys
When I changed the DoubleClick and SingleClick behaviour I accidently broke the 'click via keyboard' (Enter or SpaceBar).
2010-10-25Improved event firing of OnDoubleClick and OnClickGraeme Geldenhuys
* Single click produces one OnClick event * On a Double Click in produces a OnClick, then a OnDoubleClick event. Old behaviour used to procuder yet another OnClick at the end. This is not needed. * OnMouseDown and OnMouseUp events behaviour has not changed. The reason we introduce the FOnClickPending instead of fully handling the events in TfpgWidget.MsgMouseUp is because a TfpgButton has slightly different behavior (eg: When clicking on a button, keep mouse down, and move mouse out of button rectangle, then an OnClick must not fire.) The extra FOnClickPending allows us to toggle this behaviour of HandleLButtonUp (which normally fires the OnClick event)
2010-10-11TfpgButton: experimental feature allowing multi-line textGraeme Geldenhuys
2010-10-04Published Align property for all widgets.Graeme Geldenhuys
2010-10-01published Enabled property on all (most) componentsGraeme Geldenhuys
* Now the UI Designer can work with that property too * A few other components got one or two other properties published too.
2010-09-25published DND events for Button, Edit and Label components.Graeme Geldenhuys
This is just a start, so a few widgets can be tested with DND. After DND has be tested more, other widgets will get the published properties too.
2010-09-21Button: Flat=True (toolbar) buttons are now painted as such in the uidesignerGraeme Geldenhuys
This makes them easily distinguishable between normal buttons.
2010-07-05Extended TfpgButton to paint disabled images when needed.Graeme Geldenhuys
Again, this uses the new grayscale filter to paint a disabled image when Enabled = False.
2010-06-04Bumped visibility to Published for some properties.Graeme Geldenhuys
This facilitates in the loading of external form files at runtime.
2010-05-15When using ICommand (aka actions) it takes preferences over OnClick event ↵Graeme Geldenhuys
handler.
2010-04-25Publish the new OnShowHint for all other widgets in fpGUI.Graeme Geldenhuys
2010-02-26Update copyright notice in all units.Graeme Geldenhuys
2008-10-14* Applied SpinEdit, Edit, Button and Panel patch from Jean-Marc.graemeg
2008-10-03* Added Jean-Marc initial implementation of SpinEdit component.graemeg
* I made some changes and minor bug fixes to the SpinEdit and highlighted some todo items in the header of the unit.
2008-09-27* Phase 2 of the unit rename is complete. The gui units have now been renamed.graemeg
* UI Designer has been updated to reflect the new gui unit names.