summaryrefslogtreecommitdiff
path: root/src/gui/fpg_tree.pas
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-08-28treeview: scrollbar width is now set to the standard 16pxGraeme Geldenhuys
No more usage of "magic" numbers either.
2012-02-21New method GetNodeAt() for TfpgTreeView.Graeme Geldenhuys
This is vital for drag-n-drop support inside a treeview component.
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-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-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-01-13treeview: various changes due to new resizing behaviour of toolkitGraeme Geldenhuys
* Also fixed the issue where the treeview did not always display in the UI Designer. * When the treeview is in the UI Designer, then only limited painting occurs.
2011-01-13treeview: publish more properties and set default values.Graeme 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-27treeview: minor bugfix in the accuracy of selecting a node with the mouse.Graeme Geldenhuys
An earlier commit fixed the selected rectangle offset painting. I forgot to also fix the node selection via mouse click. They y offsets was a bit off.
2010-09-12treeview: Adds PgUp/PgDown key handling supportGraeme Geldenhuys
2010-09-12treeview: bug fix in node painting.Graeme Geldenhuys
* fixed offset that node image was painted * fixed offset that node text was painted * fixed offset that selected node rectangle was painted
2010-09-12treeview: Mouse wheel scroll, now scrolls 1/3 of height, and not 1 pixelGraeme Geldenhuys
2010-09-12treeview: up/down scrollbar buttons now scroll one line and not one pixel.Graeme Geldenhuys
2010-08-26treeview: Improved the page_up/page_down jump size of the scrollbars.Graeme Geldenhuys
2010-08-25Treeview bug fix: GotoNextNodeDown did not expand and traverse the last node ↵Graeme Geldenhuys
in RootNode.
2010-08-24treeview: When setting the Selection property, the selected nodeGraeme Geldenhuys
is now correctly scrolled into view (even if nodes had to expand). To make things look even better, the selected node is now centered vertically in the tree view.
2010-08-19Treeview: repaint tree after FullCollapse or FullExpand calls.Graeme Geldenhuys
2010-08-18Treeview: Bumped up the visibility of some handy methods.Graeme Geldenhuys
2010-08-18TreeNode.Append() changed parameter name to something more meaningful.Graeme Geldenhuys
2010-08-18Treeview: Introduced a new method TfpgTreeNode.MoveTo()Graeme Geldenhuys
Tree nodes can now be moved around in the tree. Behaviour is controlled with the TfpgNodeAttachMode parameter.
2010-08-18Treeview: Two now methods added. FullCollapse and FullExpand.Graeme Geldenhuys
2010-08-18Treeview: Tree nodes now track which tree they belong with.Graeme Geldenhuys
2010-04-25Publish the new OnShowHint for all other widgets in fpGUI.Graeme Geldenhuys
2010-03-19TreeView: SetSelection did not position the selected node in a visible area.Graeme Geldenhuys
Now it does.
2010-02-26Update copyright notice in all units.Graeme Geldenhuys
2010-02-25Published Hint and ShowHint on all widgets.Graeme Geldenhuys
2009-12-29New methods GotoNextNodeUp and GotoNextNodeDown to step through a tree.Graeme Geldenhuys
2009-11-09Published the OnDoubleClick event for the Treeview and Listbox components.Graeme Geldenhuys
Signed-off-by: Graeme Geldenhuys <graemeg@gmail.com>
2009-11-05minor changes required in fpg_tree.pas to work with FPC 2.3.1Graeme Geldenhuys
2009-11-05Fixed mouse wheel scrolling in treeview.Graeme Geldenhuys
* Content does not scroll vertically off the screen anymore. * Vertical scrollbar button now positions correctly when scrolling with mouse wheel of scrollbutton slider.
2009-10-21Treeview can now do a FindSubNode using the Node.Data property.Graeme Geldenhuys
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
2009-02-16* Removed a lot of memory leaks from fpg_treeview.pas.graemeg
* Reworked the Treeview Test example so that it is managed by the Form Designer.
2009-01-14* new methods added to fpg_utils unit.graemeg
* Select Dir Dialog can already display some directories, but still far from complete.
2009-01-12* Added two new functions to fpg_utils unit.graemeg
* More work on the Select Directory dialog.
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.