summaryrefslogtreecommitdiff
path: root/src/corelib/fpg_base.pas
AgeCommit message (Collapse)Author
2011-07-16added timestamp varibale to Mouse Parameter record structure.Graeme Geldenhuys
This is a placeholder for future use.
2011-06-17Introduced a new property TfpgWindowBase.WindowStateGraeme Geldenhuys
This is an initial implementation for Linux only. Currently this property is read-only, but that alone is already very useful. Next I'll implement the Windows support, and later the read-write support.
2011-02-07Default Font changes.Graeme Geldenhuys
* Linux now defaults to 'Liberation Sans' which comes standard with most Linux distros, and is metric compatible with Arial. The latter is freely available, but doesn't come standard with any Linux disto. * Windows default font size is now 8 (down from previous 10), which is now the same as the remainder of Windows apps. Strange that the same font as size (eg: Arial-10) is different sizes in pixels under Linux and Windows. Weird! :-/
2011-01-12Fix stupid typo bug in HandleMove.Graeme Geldenhuys
We used FHeight instead of FLeft!! Dope!
2011-01-11fixes Alignment and Anchor calculation even before we have a window handleGraeme Geldenhuys
Updated the following methods by rather checking the ComponentState, than the HasHandle result. Why? Because we want alignment and anchor calculations to work, even before we have a window handle. Something that happens often when using a Frame-type design for the UI. * HandleMove() * HandleResize() * UpdateWindowPosition() Due to removing the HasHandle check in UpdateWindowPosition, we had to do the HasHandle check in each backend code instead. We don't want to trigger API calls when we don't have a window handle yet.
2011-01-10DoWaitWindowMessage() defined as virtual abstract in fpg_baseGraeme Geldenhuys
* All fpGUI backends must override it as supply an implementation. * Moved DowaitWindowMessage() implementations to the protected section in the GDI and X11 backends.
2011-01-10DoMessagesPending() renamed to MessagesPending()Graeme Geldenhuys
Also made MessagesPending() a virtual abstract method in fpg_base.pas which every fpGUI backend must supply an implementation.
2010-11-12fpgApplication.CreateForm implementation has changed, but end result is the sameGraeme Geldenhuys
Apparently it is good to allocate a instance, without calling the constructor. I'm not exactly sure why, but it also makes supporting FPC 2.5.1 a lot less messy (no casting required).
2010-10-29Moved OnDragStartDetected from TfpgWidget to TfpgWindowBaseGraeme Geldenhuys
* also introduced virtual DoDragStartDetected which executes the OnDragStartDetected event * We also added a override of DoDragStartDetected in GDI for some extra tasks.
2010-10-29Renamed TfpgMimeDataStruct to TfpgMimeDataItemGraeme Geldenhuys
* Also changed FormatCount to Count (more like standard list interface) * Also introduced a Items property (more like standard list interface) * The above to changes also made other implementations more simplified, so I did a bit of refactoring.
2010-10-28TfpgWindowBase introduced a new abstract methodGraeme Geldenhuys
* This abstract method is called from TfpgWidget's AcceptDrops setter function * Template implementation in X11 * Actual implementation in GDI
2010-10-27Renamed TfpgWindowBase.DoEnabledDrops() to DoDNDEnabled()Graeme Geldenhuys
This will hopefully reduce the confusion between the other TfpgWidget.AcceptDrops property - they had too similar names. * Applied rename changes to all other descendants too * Updated DND demo project
2010-10-01Set default property values for TfpgWindowBaseGraeme Geldenhuys
2010-09-23TfpgMimeDataBase: introduced a new raw Data property. Returns data as variantGraeme Geldenhuys
2010-09-23TfpgMimeDataBase: Fixed implementation of HTML property, and fixed ↵Graeme Geldenhuys
HasFormats() function
2010-09-23Two new MouseCursor shapes added. mcDrag & mcNoDropGraeme Geldenhuys
* X11 DND now changes the mouse cursor depending if a drop target is available or not
2010-09-23Oops, forgot to commit the TfpgDragBase class from earlier.Graeme Geldenhuys
2010-09-23two new classes introduced to manage data associated with mime types.Graeme Geldenhuys
TfpgMimeDataBase is a base class for data associated with mime types. TfpgMimeDataStruct is a simple data class. Currently I'm not sure if Variants are the way to go for storing data, so this might change in the future.
2010-09-23More well known drop actions added to TfpgDropActionGraeme Geldenhuys
2010-09-23Rename TfpgDragAction(s) to TfpgDropAction(s). A more correct description of ↵Graeme Geldenhuys
what they mean.
2010-09-23Renamed DND fpGUI message constants to keep with existing naming convention.Graeme Geldenhuys
2010-09-23New types and message constants for DND support.Graeme Geldenhuys
Also includes an abstract method that must be implemented by each backend to enabled DND for components or forms.
2010-09-21Two new types introduced: TfpgPoint and TfpgSizeGraeme Geldenhuys
The are of type "object" for static allocation, and includes easy initialization methods, and TfpgPoint introduces ManhattanLength (easy and quick way to determine distance between two points). See the class documentation for more information on ManhattanLength.
2010-09-21Removed compiler warnings.Graeme Geldenhuys
2010-09-20Moved GetClientRect() and GetBoundsRect() out of TfpgWidget into TfpgBaseWindowGraeme Geldenhuys
Now these functions are accessible to platform specific code too.
2010-09-04Replaced some RTL functions with fpGUI wrapper ones to handle Unicode text.Graeme Geldenhuys
2010-09-04Rearranged some constants and moved fpgAddColon() to fpg_utils unit.Graeme Geldenhuys
* Also added some new constants for future use.
2010-08-26GDI: Correctly implement clipboard support under Windows.Graeme Geldenhuys
This includes unicode text support.
2010-08-23Use fpGUI wrapper functions instead of RTL functions directly.Graeme Geldenhuys
fpGUI's wrapper functions handle unicode conversions from OS automatically.
2010-07-13PtInRect failed if point was on right or bottom border.Graeme Geldenhuys
This fixes the Button Click bug where if you clicked on the button right or bottom border, the button press state was shown, but the Click never occured.
2010-07-05TfpgImageBase now remembers the co-ordinates used for the mask.Graeme Geldenhuys
This is handy when you want to do later image manipulation, and working on a cloned image.
2010-05-12TfpgImageBase.Invert() now takes a boolean property to include the mask or not.Graeme Geldenhuys
Default is not to include the mask.
2010-04-30Make doubly sure the TagPointer is nil.Graeme Geldenhuys
2010-04-30Fixed bug in TfpgImage.ImageFromRect() where UpdateImage was called to early.Graeme Geldenhuys
This resulted in a black (empty) image.
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-07ModalResult changed to a enum typeGraeme Geldenhuys
* Replaced all magic number modal results with actual enum values * UI Designer now uses enum combolist for ModalResult type in Object Inspector. * UI Designer now handles default values of ModalResult property correctly.
2010-03-30Removed modal result mrError. It's not needed any more and was a bad design.Graeme Geldenhuys
2010-03-18Casting not required any more.Graeme Geldenhuys
2010-03-18Setting MouseCursor at design time now works correctly under X11.Graeme Geldenhuys
2010-03-11changed some consant definitions, but values are still the same.Graeme Geldenhuys
2010-02-26Update copyright notice in all units.Graeme Geldenhuys
2010-02-03fixed re-declaration of HelpContext property in TfpgApplicationBase.Graeme Geldenhuys
2009-11-05Support for DocView's Context ID or Keyword ID added.Graeme Geldenhuys
2009-11-05More support for a help systemGraeme Geldenhuys
* Implemented InvokeHelp in TfpgWidget * implemented InvokeHelp and OnHelp event in TfpgForm * Implemented HelpConext, HelpKeyword and HelpType in TfpgComponent
2009-10-30IsFixedWidth fallback implementation for TfpgFontGraeme Geldenhuys
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
2009-10-23Very basic support for Help Files in fpgApplication.Graeme Geldenhuys
Still plenty to do, but at least it can launch the help viewer now. Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
2009-10-23New WindowPosition setting of wpOneThirdDown.Graeme Geldenhuys
Part of the "golden ratio" goodies. It seems to me more pleasing to the eye if a dialog is not 100% centered in the window, but rather 1/3 down of available vertical space. I think Mac OS X also does this.
2009-10-09Canvas.DrawString() help.Graeme Geldenhuys
The coordinates of DrawString is the top/left corner of the string. So the actual text appears below y.
2009-04-04* Migrated SubVersion repository to Git.Graeme Geldenhuys
* Minor changes to copyright dates to test git commits.
2009-03-13no commentsgraemeg