summaryrefslogtreecommitdiff
path: root/src/gui/fpg_edit.pas
AgeCommit message (Collapse)Author
2014-03-10Move ShowThousand setting to BaseNumericEditJean-Marc.Levecque
2014-02-23edit: Remove more hard-coded values for improved themes support.Graeme Geldenhuys
2013-06-07Surfaced OnKeyChar event for fpg_edit widgets.Graeme Geldenhuys
2013-05-20Removed Canvas.DrawControlFrame() - fpgStyle has tha functionality nowGraeme Geldenhuys
Canvas.DrawControlFrame() simply passed it along to fpgStyle for a long time already. Now we finally separate the two, so the Styling code can be separated from the corelib code.
2013-04-17Revert "Make special characters known by edit components"Graeme Geldenhuys
This reverts commit bff6c8c3b5071ae28ba3c10cf612c55e893926b4.
2013-04-17Revert "Use dead key codes for special accentuated characters"Graeme Geldenhuys
This reverts commit 5ee5b79db4825a3b2afa03dde72ddbe7e46b3c47.
2013-04-17Revert "Add common procedures in fpg_base for deadkeys"Graeme Geldenhuys
This reverts commit ccfd4b2ae0a9dfae0d19ae7ba673118af70c75da.
2013-03-22Add common procedures in fpg_base for deadkeysJean-Marc Levecque
2013-03-22Use dead key codes for special accentuated charactersJean-Marc Levecque
2013-03-22Make special characters known by edit componentsJean-Marc Levecque
2013-02-25numeric edits: adds min/max limitsJean-Marc Levecque
I was just ready to send a new patch concerning the limit values which is solving the issue with the gridediting. In addition, it is now possible to set only one limit, max or min, and I solved a bug on the editfloat which prevented to enter decimals in some cases.
2013-01-03needed of values limits on integer edits.Jean-Marc Levecque
2012-11-09Moved Menu-key press handling up the class hierarchy to TfpgWidget.Graeme Geldenhuys
No need for so much code duplication. This also means that widgets like TfpgStringGrid now have keyMenu keypress behaviour. Basically any widget that supports a PopupMenu.
2012-10-23edit: HandlePaint() now uses the theming engine to determine the border widths.Graeme Geldenhuys
No more hard-coded 2 pixel widths.
2012-04-05Fixes text selection which caused double text to appear.Graeme Geldenhuys
The following changes was made: * Revert "Edit: fixed vertical centering of text." This reverts commit 6f0128aea4f4efcffe0d6ab3ce9bfe. This commit made many undesired results, so it was best to undo them all. * Fix GetClientRect() which never set the Result value for BorderStyle = ebsNone. This now fixes the actual problem we experienced and was the reason for commit 8e129e1d34.
2012-02-21fpg_edit: again found some TAB character indentation lines - replaces with ↵Graeme Geldenhuys
Space indentation.
2012-02-21fpg_edit: for text color adjust to work, repainting must occur a bit later.Graeme Geldenhuys
DoOnChange must now occur before any call to RePaint. This gives us time to adjust the text color for possitive or negative values.
2012-02-21fpg_edit: adjust text color only when the edit box value has changed.Graeme Geldenhuys
2012-02-21merge with previous commit.Graeme Geldenhuys
2012-02-21fpg_edit: setting the text color via the field variable instead.Graeme Geldenhuys
If setting the text color via the TextColor property, then FOldColor get overwritten and we loose the real old color.
2012-02-21fpg_edit: use the existing DoOnChange method instead. Consistency is key. :)Graeme Geldenhuys
2012-02-21fpg_edit: setting NegativeColor property at runtime never caused an repaint.Graeme Geldenhuys
2012-02-21fpg_edit: Setting TextColor in numeric edit components never updated ↵Graeme Geldenhuys
OldColor value.
2012-02-21fpg_edit: refactored out the TextColor change due to negative/positive values.Graeme Geldenhuys
This allows use to reuse this bit of code without affecting the internal FText values - as is caused by SetShowThousand in FormatEdit().
2012-02-21minor code formatting in fpg_edit unit.Graeme Geldenhuys
There was tab character indentation for some reason. I converted these to Space character indentation.
2011-11-29move declaration of TfpgEditBorderStyle so it is more accessible.Graeme Geldenhuys
This now makes it easier to reuse this border style declaration in other widgets. We need to refactor some other widgets too, that have there own border styles as well.
2011-09-07Changed the password char from asterisk to unicode black circleGraeme 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-06Refactored the TfpgBaseEdit to use the new style painting method.Graeme Geldenhuys
2011-01-13Creating various Edit components via helper functions now call UpdateWindowStateGraeme Geldenhuys
This means that the internal state of the result component instances are set correctly - without extra developer intervention.
2010-11-12Edit widget: changed AutoSize default to FalseGraeme Geldenhuys
* This was done in preperation for layout managers which will control widget sizes, and AutoSize will just interfere. * Default Height is now set at 24px (same as what it was before with default Arial font) * Also implementeted setter for AutoSize property. This now correctly adjusts the widget set when the property is changed to True.
2010-11-12Position the cursor correctly inside a Edit with text.Graeme Geldenhuys
Old behaviour was that the beginning of long text was scrolled off the left of the edit, so you saw the end of the text. Now we should see the beginning of the text and the end of the Text is out of view on the right.
2010-10-29Published the DND propertys for some of the most used components.Graeme Geldenhuys
This is so they can be tested. Once DND stabilizes, I'll make the properties available on the other components too.
2010-10-15BaseNumericEdit NegativeColor property was used instead of field variable.Graeme Geldenhuys
The property does more that just set the color. It calls FormatEdit, which changes the color of TextColor property. This meant the parent color was never stored in FOldColor field variable.
2010-10-15BaseNumericEdit did not specify the default property color.Graeme Geldenhuys
By defining the default color, the UI Designer can omit that line in generated code, if the color did not change.
2010-10-15fpg_edit: removed pointless property declarationsGraeme Geldenhuys
Those properties are exactly the same visibility as inherited classes, so no point in simply listing them again. TextColor was the exception, it was public, so you can't decrease the visibility in descendants.
2010-10-04Published Align property for all widgets.Graeme Geldenhuys
2010-10-01minor bugfix in TfpgBaseNumericEdit. Setting NegativeColor doesn't cause a ↵Graeme Geldenhuys
repaint
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-22memo: implemented clipboard support with default popup menu support.Graeme Geldenhuys
2010-05-07Edit: removed redundant background painting code for BaseNumericEdit.Graeme Geldenhuys
* now read-only and disabled states display correctly.
2010-04-25Publish the new OnShowHint for all other widgets in fpGUI.Graeme Geldenhuys
2010-04-21Edit: fixed vertical centering of text.Graeme Geldenhuys
Before we had a hard-coded top co-ordinate for the text. This caused problems when the TfpgEdit.Height was adjusted for some reason. So now we rather use the Canvas.DrawText() and give it a rectangle and text flags so text output can be calculated correctly. This is very useful for inline editing in a StringGrid. Internally Canvas.DrawText calls fpgStyle.DrawString, so custom styling should still be applied.
2010-04-14Edit: When the component is disabled, the ExtraHint should not be shown.Graeme Geldenhuys
The old behaviour was indistinguishable between Disabled state with actual Text. So we had to modify the ExtraHint painting.
2010-04-13Edit: When setting read-only at runtime, the component never repainted itself.Graeme Geldenhuys
2010-04-07Added 'Insert from Character Map' menu item for default popup menu in TfpgEditGraeme Geldenhuys
Text can now be inserted into a TfpgEdit via the Character Map dialog.
2010-04-01edit: Introduced a new property AutoSize.Graeme Geldenhuys
If True (default), then the Height will be adjusted based on the FontDesc being set.
2010-04-01edit: Introduced a new property IgnoreMouseCursorGraeme Geldenhuys
By default the mouse pointer changes to a I-beam when the mouse enters the TfpgEdit component. This property overrides that behaviour.
2010-03-26TfpgEdit popup menu options enabled property not always set correctly.Graeme Geldenhuys
When a Edit component is ReadOnly, not all the options was correctly disabled. Also, even though Delete (clear edit contents) was disabled, it still fired when enter key selected that option. Now all this is fixed.