summaryrefslogtreecommitdiff
path: root/src/gui/fpg_tab.pas
AgeCommit message (Collapse)Author
2015-04-22Clean up unused local variablesGraeme Geldenhuys
2015-04-06Clean up unused local variablesStéphane Aulery
2015-02-19tabs: Replace internal FFont reference variable.Graeme Geldenhuys
If the fpgStyle was changed at runtime, the FFont reference variable was out of scope and caused a runtime error. We now simply ask fpgStyle for the DefaultFont and then all is well.
2014-08-20Fix PageControl bug where left or right tabs are unresponsive to clicksGraeme Geldenhuys
PageControl tabs were on the left or right, and you went over a certain number of tabs, then you couldn't change tabs by clicking with the mouse. The TabSheetAtPos() never took into account the TabPosition, and it always used MaxButtonWidthSum, which is only meant for Top or Bottom postitions.
2013-07-25tabs: Fixed the painting of tabs when positioned at tpBottom.Graeme Geldenhuys
* The text was not at the correct position (to high) * The tab height was not the same as when tpTop is used
2013-07-25tabs: Tab height is now correctly drawn - no hard-coded 21px height any moreGraeme Geldenhuys
2013-07-15tabs: ensures that scroll buttons are not visibleGraeme Geldenhuys
2013-07-15pagecontrol: tab height is not hard-coded any more.Graeme Geldenhuys
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.
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-05-08globally renamed TFTextFlags to TfpgTextFlagsGraeme Geldenhuys
Somehow I forgot to rename this type when we introduced the 'fpg' prefix years ago.
2011-01-13tabs: When creating tabsheets, there sizes are immediately calculated.Graeme Geldenhuys
* A new constructor was also added where you can pass the tabsheet title, so tabsheet size can be better calculated if tabs are set to Left or Right.
2011-01-12Set Width and Height properties so internal state is correcty.Graeme Geldenhuys
We must not use field variables for Width, Heigh, Top and Left any more.
2011-01-12PageControl: Set a default value for published property ActivePageIndexGraeme Geldenhuys
2010-11-18PageControl: introduced BeginUpdate and EndUpdate methods.Graeme Geldenhuys
Because new now only paint inside the HandlePaint() method, we need some optimization while setting properties. BeginUpdate now blocks painting until EndUpdate it called.
2010-11-18PageControl: tabs painting is now only done in HandlePaint()Graeme Geldenhuys
Painting outside the HandlePaint is possible but very unpredictable, so it is best we do not do it.
2010-11-01PageControl: Right click popup menu caption now shows tab you clicked overGraeme Geldenhuys
* The popup menu caption changes if you click over any non-active tabs * Selecting the popup menu item, closes the tab you clicked over - no need to set it as the active tabsheet first, before closing.
2010-11-01fpg_tab: Refactored HandleLMousUp and extracted most of the code into a newGraeme Geldenhuys
method called TabSheetAtPos(). This allows the developer to reuse this method too for other things.
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-04-25Publish the new OnShowHint for all other widgets in fpGUI.Graeme Geldenhuys
2010-04-21Fixed scroll buttons in PageControl when tabs are left|right positioned.Graeme Geldenhuys
2010-04-20PageControl: has a new property Options.Graeme Geldenhuys
Two new Tab Options are available, but only one is implemented so far. to_PMenuClose : Show the 'Close Tab' in popup menu to_PMenuShowAvailTabs : When implemented will list available tabs and change active tab to the selected one. By default the Options property is empty.
2010-04-19PageControl: New popup menu to close active tabGraeme Geldenhuys
This needs to be extended in the near future. - enable/disable this function - close active tab or tab that was clicked on - list open tabs in popup menu, so user can change to them.
2010-04-19PageControl: New OnClosingTabSheet event added.Graeme Geldenhuys
2010-04-14tabs: adds support for Left/Right tab position and mouse support.Graeme Geldenhuys
The Left/Right tab look is still not pretty enough, but at least it is now functional.
2010-03-26tabs: make sure internal ActivePageIndex is still correct.Graeme Geldenhuys
2010-03-24tabs: InsertPage can now suppress the OnChange event from firing.Graeme Geldenhuys
This is required for loading forms at runtime, on when creating new tabsheets at runtime with Owners set in the constructor.
2010-03-24tabs: OnChange even is automatically fired when ActivePage is set.Graeme Geldenhuys
Before this was a manual process. But if the ActivePage was set programatically, the event never fired. This is now fixed. I also changed the internal DoChange event to DoPageChanged - it's now a bit more descriptive.
2010-03-24tabs: populate tabsheet.Text for UI Designer.Graeme Geldenhuys
This only occurs in the UI Designer. tabsheet.text will be the same value as the component Name property.
2010-03-24tabs: initial implemenation of tab position tpRight.Graeme Geldenhuys
There is no user interaction via mouse yet, just visual painting and keyboard handling works.
2010-03-24tabs: Text Formatting Flags are now set per tab position.Graeme Geldenhuys
This is getting ready for new tab positions which will follow shortly.
2010-03-24tabs: Fixed ButtonHeight implementation to take FixedTabHeight into account.Graeme Geldenhuys
2010-03-24tabs: Correct MaxButtonWidth implementation to take FixedTabWidth into account.Graeme Geldenhuys
2010-03-24tabs: defined other tab positions + minor code formattingGraeme Geldenhuys
2010-03-24tabs: Renamed MaxButtonHeight method to more clearly define what it does.Graeme Geldenhuys
* New name is MaxButtonHeightSum() * Also set default FixedTabHeight value in constructor which I forgot before.
2010-03-24tabs: Implemented left and right tab drawing in DrawTab() method.Graeme Geldenhuys
This is only visual painting, no user interaction yet. This is also just the initial painting - it needs some more tweaking before it is 100% correct.
2010-03-24Tabs: New property FixedTabHeight.Graeme Geldenhuys
2010-03-24PageControl: UTF8 compliance with text handling in tabs.Graeme Geldenhuys
2010-03-21Tab: implemented TabPosition tpBottom and tpNoneGraeme Geldenhuys
Thanks to Jean-Pierre ANGHEL <jp.anghel@bbox.fr> for help with implementing this.
2010-03-19PageControl: Neaten up code and some minor improvements.Graeme Geldenhuys
Functionality did not change.
2010-02-26Update copyright notice in all units.Graeme Geldenhuys
2010-02-25Published Hint and ShowHint on all widgets.Graeme Geldenhuys
2008-11-06* Minor fix in TabSheet bg color.graemeg
2008-10-14* UI Designer: New component TfpgTabSheet component on the palette.graemeg
* UI Designer: visual editing of PageControl is now possible. Loading and saving of your design also works. It still needs testing and the pagecontrol sometimes draws artifacts.
2008-10-13* Added some extra sanity checks in TfpgPageControl.graemeg
* UI Designer: Started experimental support to edit a PageControl visually in the designer.
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.