summaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)Author
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.
2011-10-27tree: Added a note about the limitation of Node.HasChildren call.Graeme Geldenhuys
For now, please use Node.Count instead.
2011-10-26treeview: implemented StateImageList support (treeview with checkboxes for ↵Graeme Geldenhuys
example) - Added StateImageList to TfpgTreeview - Added StateImageIndex to TfpgTreeNode - Added OnStateImageClicked event for TfpgTreeview. - Reworked the TfpgTreeview.HandlePaint() method for the new functionality, and also removed all the code duplication that existed before. - The node selection rectangle now only cover the text portion of a node, and note the images related to that node. - Minor bugfix in the selection rectangle, when depending on various properties, the selection rectangle was too small, and the node text wasn't fully visible.
2011-10-26fpg_tree: replaced all debugging writeln() statements with SendDebug() callsGraeme Geldenhuys
We can now use the fpGUI's Debug Server to monitor any debug events.
2011-09-21fixed bug where combobox hint closes the dropdown window.Graeme Geldenhuys
2011-09-21PromputUserDialog: changes so descendants have better access to certain data.Graeme Geldenhuys
- We can new set an initial UserID too. - Moved two TfpgEdit components to protected section.
2011-09-21SelectFileDialog() can now specify the initial directory too.Graeme Geldenhuys
2011-09-07Changed the password char from asterisk to unicode black circleGraeme Geldenhuys
2011-09-02Corrected the timing when AfterCreate is called in TfpgFrameGraeme Geldenhuys
2011-08-24bugfix in PageControl keypress handling. Consume incorrectly set.Graeme Geldenhuys
We incorrectly set the consumed variable, and called inherited unnecessarily. This is now improved.
2011-08-24menu: correctly handle keyboard shortcut events nowGraeme Geldenhuys
Before the menu only used to process the Alt+<key> events for the mainmenu bar (top level menus). Now we recursively run through all menu items looking for a hotkey match.
2011-08-24forms: HandleKeyPress() is replaced my DoKeyShortcut()Graeme Geldenhuys
This is done because DoKeyShortcut() clearly says what it does. It only processes keyboard shortcut events.
2011-08-18Added TfpgFrame to fpGUI.Graeme Geldenhuys
This is a UI Designer friendly component that allows you to embed frames "Windows" inside other windows.
2011-08-17hint window timer field variable renamed.Graeme Geldenhuys
- Renamed the timer field variable from T_Chrono to FTimer. - Renamed the OnTimer event handler from T_ChronoFini to HintTimerFired - Disabled the timer *before* hinding the hint window. This prevents those add AV's that occur when you close an application. - No need to explicityl disable the timer in HintWindow destructor. When you free a timer, it automatically gets disabled.
2011-08-04imagelist Item[] property changed to plural Items[]Graeme Geldenhuys
This is consistent with other components in the RTL, FCL and even fpGUI itself.
2011-07-28docs update mentioning support for OpenSolaris.Graeme Geldenhuys
I have successfully tested fpGUI using OpenSolaris 2010.03 (x86) using FPC 2.4.4.
2011-07-27BaseGrid and Home/End key handling and focused cells.Graeme Geldenhuys
We never used to check if we are allowed to set the FFocusCol, we just assumed we are allowed. Now we try each column while calling CanSelectCell() in each iteration so we select the first available column.
2011-07-27BaseGrid.HandleKeyPress and consume variable behaviour has changed.Graeme Geldenhuys
Old behaviour we simply forced Consumed = True and later Consumed = False. This has a very good chance of overwriting the origin consume value. We now only set consume to True, if it is really so.
2011-07-13calendar improvement: removed unnecessary drawing linesGraeme Geldenhuys
A slightly tweaked DrawButtonFace() is all that is really required.
2011-07-13changes in preparation for FPC Trunk support.Graeme Geldenhuys
Prevents a possible compiler error.
2011-07-13calendar bugfix: we excluded minyear and maxyear from valid rangeGraeme Geldenhuys
This meant that sometimes we couldn't select the desired date.
2011-07-12minor code comment for future considerationGraeme Geldenhuys
2011-07-12commented 2 line of code which really isn't needed in the menu painting processGraeme Geldenhuys
2011-07-12minor fixing of the heigh of the database selection combobox.Graeme Geldenhuys
2011-07-12Added a new Database property to the DB Login Form.Graeme Geldenhuys
this allows us easy access to what database the user selected.