summaryrefslogtreecommitdiff
path: root/src/gui/fpg_edit.pas
AgeCommit message (Collapse)Author
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.
2010-03-26Fix HandleKeyPress handling. When ReadOnly, then keyTab and keyMenu did not ↵Graeme Geldenhuys
work. Now even though the Edit component is read only, you can select text with the keyboard, tab in/out and activate the popup menu with the Menu key.
2010-03-25Minor tweak to TfpgEdit to unselect text when right arrow key is pressed.Graeme Geldenhuys
When the component gets focus and autoselect is enabled, if you pressed the right arrow it did not unselect the text, but the left arrow did. This is now fixed.
2010-02-26Update copyright notice in all units.Graeme Geldenhuys
2010-02-25Published Hint and ShowHint on all widgets.Graeme Geldenhuys
2010-02-03Published ReadOnly property for Numeric Edit components too.Graeme Geldenhuys
2010-02-03Implemented ReadOnly support for TfpgEdit.Graeme Geldenhuys
2009-10-09New ReadOnly property for Edit components, but not implemented yet.Graeme Geldenhuys
So far it's just a "dummy" property that does nothing. Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
2009-07-28Add and remove todo list items.Graeme Geldenhuys
2009-07-28Add new method InsertAtCursorPos() to TfpgBaseEditGraeme Geldenhuys
This allows you to insert text at the current cursor location. This just makes it easier for the user and reused the DoPaste which was initially for Clipboard support. The is work towards the Character Map support in TfpgEdit popup menu. Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
2009-06-15Fixed InvertCaret exception.David Emerson
2009-06-08Fixed the keyMenu handling in BasicEdit components.Graeme Geldenhuys
2009-06-03GetFieldBounds was not implemented for many tiMediators.Graeme Geldenhuys
2009-03-13plans for future enhancements to edit components.graemeg
2009-02-16Reverted the previous vista hint implementation. Introduced a new ExtraHint ↵graemeg
property which is separate from the Hint property.
2009-02-12* applied a modified patch from Clemens with the following changes:graemeg
- Private DrawSelection method is now a protected virtual method. - New TfpgBaseTextEdit class introduced that only does Text string functions. - Numeric edits now only do Numeric selection handling. This removes the selection paint bug which flashes quickly. - Hint text inside TfpgEdit now disappears on receiving focus and not only when text is entered.
2009-02-12* Applied Jean-Marc's margin patches.graemeg
2009-02-10* Minor fix in fpg_edit and Backspace key handling.graemeg
* Registered the TMediatorItemComboBoxView in tiMediators.
2008-11-13* NumericEdit fixed from Jean-Marc. Fixed bug where value changed as you set ↵graemeg
and loose focus with the mouse cursor.
2008-11-12* Removed public Alignment property from EditInteger, EditFloat and ↵graemeg
EditCurrency.
2008-11-12* new fpgCharAt() functiongraemeg
* Renamed EditXXX's DecimalSeparator and ThousandSeparatar properties to not conflict with the global variables in SysUtils. * Added EditCurrency, EditFloat and EditInteger to the UI Designer palette. I still have issues with TfpgChar type, so you have to use the 'unknow' memo in Object Inspector. * Minor changes in edits demo to compile again after the above changes.
2008-11-11* Jean-marc did excellent work fixing up the numeric edit components.graemeg
2008-11-09* another minor patch from jean-marcgraemeg
2008-11-08* Implemented GetClientRect for TfpgBaseEditgraemeg
* Replaced Char with TfpgChar for TfpgBaseNumericEdit * Fixed visiblity of GetClientRect in TfpgAbstractPanel * Fixed text position in TfpgBaseNumbericEdit - spacing from the right.
2008-11-08formatting patch from Jean-marc for BaseNumericEditgraemeg
2008-11-06* Fixed the selection issue in TfpgEdit.graemeg
* Changed the AChar parameter of UTF8CharAtByte to a out parameter.
2008-10-22* Applied Edit component patch from Vladimir - fixing overflow error.graemeg
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.