summaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)Author
2012-10-23treeview: fixed bug where setting FontDesc had no affect on the treeview.Graeme Geldenhuys
I forgot the actually set the Font property of the Canvas. :-/
2012-10-19Code formatting fix: Replace tab character with spaces or fixing indentation ↵Graeme Geldenhuys
levels.
2012-10-19PageControl now has a new ActiveTabColor propertyGraeme Geldenhuys
We can now set the background color of the active tab so it is much more visible which tab is active.
2012-10-12Surface the TopRow propertyGraeme Geldenhuys
2012-10-12ESC key now cancels the InputQuery dialog.Graeme Geldenhuys
2012-10-12Correctly set the default values of TfpgBevel.Shape propertyGraeme Geldenhuys
2012-09-26You can now copy to clipboard the content of message dialogs.Graeme Geldenhuys
The TfpgMessageDialog and TfpgMessageBox dialogs now support the "copy to clipboard" keyboard shortcuts. This is nice and handy for pasting an error message into an email or something.
2012-09-21trackbar: bug fix. When setting the position, it never caused a repaint.Graeme Geldenhuys
2012-09-21trackbar: refactor the classes and introduced a new TfpgBaseTrackBar class.Graeme Geldenhuys
This process is not complete, but it already reduced a lot of code duplication.
2012-09-21trackbar: Fixed the focus rectangle flicker problem while dragging.Graeme Geldenhuys
2012-09-21trackbar: made sure all painting only occurs in the HandlePaint eventGraeme Geldenhuys
2012-08-28Publishes various other mouse events for the various panel widgets.Graeme Geldenhuys
2012-08-28Publishes the OnMouseScroll event for various widgets.Graeme Geldenhuys
2012-08-28treeview: scrollbar width is now set to the standard 16pxGraeme Geldenhuys
No more usage of "magic" numbers either.
2012-08-23listbox: Rather use BeginUpdate..EndUpdateGraeme Geldenhuys
This will call UpdateScrollBar and Repaint anyways.
2012-08-21changes param type from String to TfpgStringGraeme Geldenhuys
2012-08-21memo: removes unnecessary code. The Memo field was just a reference.Graeme Geldenhuys
This also fixes a strange "lost pointer reference" issue under Windows. Not sure what FPC is doing there.
2012-08-02Prevents a possible AV when the Memo reference might already have been set ↵Graeme Geldenhuys
to nil. This could happen in some cases when the TfpgMemo is destroyed while contain text.
2012-07-31grid: Adds some missing mouse events to the published section.Graeme Geldenhuys
2012-07-31filedialog: widgets were not perfectly spaced in the horizontal area.Graeme Geldenhuys
* Increased the width of most widgets by 2 pixels. Now left and right border spacing is equal. * Increased the grid height by 2 pixels, just to give grid content some extra space.
2012-07-31Fixes a potential memory leak.Graeme Geldenhuys
I say potential, because FDropDown is free immediately after it is not needed any more, but if for some reason it wasn't, then we should free it in the destructor of the widget.
2012-07-31progressbar: text percentage is now only calculated when really needed.Graeme Geldenhuys
2012-07-31replaces tab character indentation with 2-space indentation.Graeme Geldenhuys
2012-07-17hyperlink: published more properties that where available from TfpgCustomLabel.Graeme Geldenhuys
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-03-15Canvas read-only LineWidth property changed to a function GetLineWidth()Graeme Geldenhuys
This is so AggPas's canvas doesn't conflict, which also has a LineWidth method. I want to prevent similar name confusion.
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.
2012-02-21New method GetNodeAt() for TfpgTreeView.Graeme Geldenhuys
This is vital for drag-n-drop support inside a treeview component.
2012-01-18A reworked patch from Jean-MarcGraeme Geldenhuys
* moved the modifications from TfpgAbstractPanel to TfpgFrame. The new additional behaviour only relates to Frame usage, not Panel or Bevel. * Added a new OnCreate() event for convenience. * Now calling AfterCreate at the correct time - just like what is done in TfpgForm.
2011-12-08Introduced a BaseGauge class which TfpgGauge descends from.Graeme Geldenhuys
- Also made the various xxxDraw methods virtual and moved them to the protected section. So they can be overridden in descendants if needed. - Fixed the default color value of the Color property. The value stored in RTTI was different to the actual value assigned in the constructor.
2011-12-08embedded TAB characters replaced with Space character indentation.Graeme Geldenhuys
2011-12-05Bump visibility of BorderStyle property in StringGrid and FileGrid widgetsGraeme Geldenhuys
2011-12-05Implements BorderStyle property for basegrid widget.Graeme Geldenhuys
2011-12-05Remove redundant painting code in basegrid.Graeme Geldenhuys
The HandlePaint() method is already wrapping with BeginDraw/EndDraw calls in the TfpgWidget class.
2011-12-01treeview: Adds BeginUpdate / EndUpdate support.Graeme Geldenhuys
This drastically improves performance, if you have some code that iterates and updates all nodes.
2011-11-29Implements BorderStyle for TfpgMemo.Graeme Geldenhuys
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-11-21Fixed the parameter modifier of TfpgStyleManager.AssignStyleTypes()Graeme Geldenhuys
We can now pass in the Lines property of a Memo or Combobox directly, without the need of an extra local TStrings variable.
2011-11-18First draft of MDI support.Graeme Geldenhuys
This work equates to about 3 hours of coding. Not bad I think! ;-) The general idea is to have to new classes. The MDIWorkArea class is the parent widget form MDI child forms. We then also have a MDIChildWindow class which implements the outer child window - thus the one with the titlebar and blue borders. The end use creates a form based on TfpgFrame, not TfpgWindow. This design might change later. The users form is then embedded inside the MDIChildWindow, and displayed inside the bounds of the MDIWorkArea.
2011-11-07fixes a spelling mistake in a code commentGraeme Geldenhuys
2011-10-27tree: improved the spacing / positioning of the node text inside the focus ↵Graeme Geldenhuys
selection The text was right on the left edge of the focus selection rectangle. Now it is evenly spaced with 2px margin on each side.