summaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)Author
2010-07-01TfpgBevel has a new Shape type: bsVerDividerGraeme Geldenhuys
It's similar to bsLeftLine, but looks a bit prettier. :-) It could also possibly be used as a grab handle for movable toolbars in the future.
2010-07-01fpg_panel: Refactored the HandlePaint method.Graeme Geldenhuys
* It was extremely hard to maintain that method as all Shape types drawing code are mixed together. * Not all shape types (eg line top,bottom,right,left) was painted 100% because of shared code. * Each shape type now has its own DrawXXX method, with the result both issues mentioned above are resolved.
2010-07-01fpg_panel refactoredGraeme Geldenhuys
FPanelShape is only required in TfpgBevel, so I removed from all other classes.
2010-06-29Calendar Combo: Correctly position Month popup menu.Graeme Geldenhuys
If there isn't space at the bottom of the Month Edit, then place the Month popup menu above the Month Edit. We had to introduce a friend class, to get access to the protected PrepareToShow method.
2010-06-29Calender Check Combo: when unchecked and you select date, it must show checked.Graeme Geldenhuys
The internal state was updated to checked, but visually it still looked unchecked. A simple call to Repaint fixes this.
2010-06-29Popup menu: Added some spacing after menu item text.Graeme Geldenhuys
We had spacing in front of menu item text for in case we use an image. But this made text look off-centre, so we added some space after text as well.
2010-06-29Combobox: no point having protected methods that are not virtual.Graeme Geldenhuys
2010-06-29Calendar: DontCloseWidgset property doesn't actually need to be set in this ↵Graeme Geldenhuys
case.
2010-06-29Removed forgotten debug line.Graeme Geldenhuys
2010-06-28Calendar: Implemented year select popup window when clicking the Year in ↵Graeme Geldenhuys
calendar. Now end-users can quickly move through years, 10 at a time - forward or backwards.
2010-06-28Checkbox Calendar: Clicking the checkbox didn't repaint the display.Graeme Geldenhuys
No idea how I missed that one! Anyway, fixed now.
2010-06-28Checkbox Calender: Bug fix in SetDateValueGraeme Geldenhuys
* The validation that was done, was done with the internal date value, instead of the new date value passed in. Oops! * Removed some old commented code.
2010-06-28popupcalendar: minor fix to code to remove compiler hint. Unused variable.Graeme Geldenhuys
2010-06-28publish Alignment property for hyperlink labelGraeme Geldenhuys
2010-06-25Calendar: adjust day if needed when new month is selected.Graeme Geldenhuys
eg: if current day is 31, and we select February, adjust day to 28 or 29 (last day of Feb).
2010-06-25Calendar: Implemented month selection popup menu when clicking on Month editbox.Graeme Geldenhuys
2010-06-17Calendar Combo: Selecting dates outside current month is now ignoredGraeme Geldenhuys
Before if you select for example 29 of previous month, it selects the 29th of the current month. This could cause problems with shorter months so now selecting days in grey (previous or next month) are ignored.
2010-06-17Calendar Combo: implemented Single Click Select.Graeme Geldenhuys
* When enabled with CloseOnSelect, then as soon as the end-user selects a date with a single click, the dialog is closed. * When enabled without CloseOnSelect, then the date value is changed as soon as use single clicks on a date.
2010-06-11Scrollbar: New convenience functions added.Graeme Geldenhuys
These functions set a new scrollbar position and fires the OnScroll event.
2010-06-07ListBox: Items.Assign() now correctly updates scrollbar status.Graeme Geldenhuys
2010-06-04ListBox: internal Items.Exchange now notifies the listbox to redraw.Graeme Geldenhuys
2010-06-04Bumped visibility to Published for some properties.Graeme Geldenhuys
This facilitates in the loading of external form files at runtime.
2010-05-31StringGrid: Text was not perfectly centered in each cell.Graeme Geldenhuys
2010-05-31Scrollbar: When resized it now triggers a recalc of slidersize.Graeme Geldenhuys
2010-05-31Scrollbar: replaced magic numbers with a constant.Graeme Geldenhuys
2010-05-28Scrollbar: All painting is now done from inside HandlePaintGraeme Geldenhuys
This is now safer and more consistent with all other fpGUI components.
2010-05-25Disable grid smooth scrolling by default.Graeme Geldenhuys
I don't want to alter behaviour of existing fpGUI applications.
2010-05-24grids: 90% of smoothscrolling support is implemented.Graeme Geldenhuys
It now needs lots of testing though!
2010-05-24grids: Removed todo items that are completed.Graeme Geldenhuys
2010-05-23New Input Query (text) Dialog and global function fpgInputQuery().Graeme Geldenhuys
2010-05-23Moved the global dialog functions to the fpg_dialogs.pas unitGraeme Geldenhuys
(out of the include files)
2010-05-15Published some new events in TfpgForm.Graeme Geldenhuys
They were available in TfpgWidget, so why not make them available in TfpgForm as well.
2010-05-15When using ICommand (aka actions) it takes preferences over OnClick event ↵Graeme Geldenhuys
handler.
2010-05-12Moved Check image drawing out of TfpgMenuItem.DrawText()Graeme Geldenhuys
* As the method name indicates, it is only supposed to draw text. The check mark drawing is now done in TfpgPopupMenu.DrawItem(). The same location where submenu arrow etc is drawn. * We also now took advantage of the AItemFocused parameter to draw the check mark in inverted colors when selected.
2010-05-12TfpgPopupMenu's DrawItem() and DrawRow() now as AItemFocused propertyGraeme Geldenhuys
This allows us more flexibility in how to draw menu items.
2010-05-07Edit: removed redundant background painting code for BaseNumericEdit.Graeme Geldenhuys
* now read-only and disabled states display correctly.
2010-05-07Merge branch 'master' of ssh://fpgui.git.sourceforge.net/gitroot/fpgui/fpguiGraeme Geldenhuys
2010-05-07Popup Menu now paints the Checkmark when a MenuItem.Checked = True.Graeme Geldenhuys
* Thanks to JP Anghel for the initial patch. * I added some mods by replacing magic numbers with a constant. * I also removed some old commented code.
2010-05-05Minor optimization in property settings order for CreateLabel()Graeme Geldenhuys
2010-04-30Fixed resource allocation of ColorWheel.Graeme Geldenhuys
We called the image.UpdateImage to early. We are only supposed to do it after we populated the imagedata arrow with color values.
2010-04-30BaseGrid: OnRowChange and OnFocusChange does not occur.Clemens Capitain
When a grid has zero rows and you add a row, neither OnRowChange nor OnFocusChange get fired. This patch fixes this.
2010-04-29unit description update.Graeme Geldenhuys
2010-04-29Fixed code to remove compiler warnings/hints.Graeme Geldenhuys
2010-04-29TRGBTriple conflicts with a declaration in the Windows unit.Graeme Geldenhuys
* I introduced a new record type TFPColor (same as the declaration in the FPImage unit. I also introduced new conversion functions that work with TFPColor. * I marked the TRGBTriple type as deprecated. * I replaced all TRGBTriple usage with TFPColor.
2010-04-29New "Select Color" dialog added to fpGUI.Graeme Geldenhuys
Not 100% complete yet, but the first tab is working.
2010-04-28Remove todo items already completed.Graeme Geldenhuys
2010-04-28TfpgBaseGrid now has a new option and property: alternative colorGraeme Geldenhuys
The AlternativeBGColor property only takes affect when the go_AlternativeColor grid option is enabled. go_AlternativeColor also takes preference over ColumnBackgroundColor[]
2010-04-28TfpgBaseGrid now updated by using new predefined grid colors.Graeme Geldenhuys
2010-04-28Listbox now updated with 4 new predefined colors.Graeme Geldenhuys
2010-04-26Add PopupMenu property to StringGrid.Graeme Geldenhuys
At the moment the popup menu only appears if user clicks outside the Header row. Maybe this behaviour will become user selectable in the future.