summaryrefslogtreecommitdiff
path: root/src/corelib/fpg_base.pas
AgeCommit message (Collapse)Author
2015-05-25Fixes compiler error when AggCanvas is enabled.Graeme Geldenhuys
Recently we removed some variables that were needed for AggCanvas ifdef'ed code.
2015-04-22Merge branch 'lkppo' into fixes_1.4Graeme Geldenhuys
2015-04-22Clean up unused local variablesGraeme Geldenhuys
2015-04-10WinCE: fixes compilation errors for WinCE-ARMGraeme Geldenhuys
* Disabled OLE support for WinCE * Disabled Drag-n-Drop support for WinCE * Fixed PChar vs PWidechar types * Fixed IFDEF's. Differences between MSWINDOWS, WINDOWS and WINCE.
2015-04-06Revert "Minor optimisation to CanvasBase.SetFont()"Graeme Geldenhuys
This reverts commit 58fbaf95ad23b3b3393d172cbee6cc0eea5611d9.
2015-04-06Clean up unused local variablesStéphane Aulery
2015-03-18Two new form helper functions added to fpgApplicationGraeme Geldenhuys
- GetFormByClassName() - GetFormByName()
2015-03-10Removes deprecated TFPColor usageGraeme Geldenhuys
- That includes any color conversion functions - Projects using TFPColor
2015-02-19Minor optimisation to CanvasBase.SetFont()Graeme Geldenhuys
2015-02-19Removed fpgApplication.DefaultFontGraeme Geldenhuys
We really don't need yet another "default font". All references to fpgApplication.DefaultFont has been changed to fpgStyle.DefaultFont - as it should be.
2014-12-13Implements custom form icon support for X11Graeme Geldenhuys
TfpgForm now has a new IconName property. Load a 16x16 image into the global fpgImages instance and use that icons name in the IconName property. Windows support is still work-in-progress.
2014-10-19New fpgApplication.GetScreenPixelColor() for X11Graeme Geldenhuys
We can now color pick a value on a X11 desktop.
2014-10-17Fixes "division by zero" errorGraeme Geldenhuys
eg: Compile DocView and resize the contents panel all the way to the right. The gradient panel ends up having < 1 width, which means it is not visible any more, so really the GradientFill doesn't need to do anything.
2014-10-17Revert "CanvasBase.GradientFill causes a math error"Graeme Geldenhuys
This reverts commit 1bd4b9091d3649f531c77ef0d0d656de4f6e3129.
2014-09-19Windows: Just for fun, allow the ability to hook into the System MenuGraeme Geldenhuys
This means we can easily add an "About fpGUI" menu item in the System Menu of a window.
2014-09-16Edit2 font alias is now a variable and not hard coded.Graeme Geldenhuys
This makes it a bit more configurable (default values) for various platforms. Thanks to Marcus Sackrow for the suggestion.
2014-07-25Fixed StretchDraw() "abstract error" due to DoFreeImage call.Graeme Geldenhuys
2014-07-24Fixed StretchDraw() "abstract error" due to DoFreeImage call.Graeme Geldenhuys
2014-07-17CanvasBase.GradientFill causes a math errorAndrew Haines
I've noticed that if Width = 1 then count = 0 and causes a math error in: newcolor.Red := RGBStart.Red + (i * RDiff) div count; I think if ADirection = gdVertical then count := ARect.Bottom - ARect.Top else count := ARect.Right - ARect.Left; Should be if ADirection = gdVertical then count := ARect.Height else count := ARect.Width; But I'm not sure of the reasoning of the paint code. I've only seen this crash on the AlienWindows branch. I get it when moving the splitter in docview all the way to the right side. Andrew
2014-07-15Fixes a GDI bug dating back to July 2007.hinst
For some reason the DoFreeImage call was commented and thus Windows apps leaked GDI objects. Once the 9000 limit was hit, paint corruption occured. Many thanks to Hinst <hinstance@yandex.ru> for persisting and finding this bug.
2014-06-23Merge remote-tracking branch 'demerson/scroll-frame' into 'develop'Graeme Geldenhuys
2014-06-20Revert "File Search Result Name was never correctly converted from OS ↵Graeme Geldenhuys
encoding to UTF-8" This reverts commit 85682e5586a60487d8aa65564dc0a77c24f080d4. The reason is because the fpgFindFirst and fpgFindNext functions already fix the sr.Name encoding. So doing it in the base filelist class corrupts the text because the encoding is applied twice. Amazing nobody picked this up for so long.
2013-08-27Replaced the FPC dbugintf unit with the customised fpGUI one.Graeme Geldenhuys
2013-07-12New Rectangle and Point methods introduced in fpg_mainGraeme Geldenhuys
* Moved PtInRect() to fpg_main, from fpg_base * New Rect and Point utility functions introduced in fpg_main
2013-05-28horizontal scrolling, commit 2David Laurence Emerson
2013-05-28Revert "Add common procedures in fpg_base for deadkeys"Graeme Geldenhuys
This reverts commit ccfd4b2ae0a9dfae0d19ae7ba673118af70c75da.
2013-05-28debug supportGraeme Geldenhuys
2013-05-28Add common procedures in fpg_base for deadkeysJean-Marc Levecque
2013-05-13fixes compiler hint about unused variableGraeme Geldenhuys
2013-05-01Adds much faster Canvas.CopyRect() implemenation for the GDI backend.Graeme Geldenhuys
2013-04-30Adds CP1251 to UTF8 encoding conversionGraeme Geldenhuys
2013-04-25Implemented a new ConvertTextToUTF8() which converts some encoding to UTF8Graeme Geldenhuys
2013-04-18Merge branch 'hotfix-2' into developGraeme Geldenhuys
I found a problem with the deadkey support - it broke keyboard input under Windows. The original deadkey input issue seems to have been X11 specific, so should be fixed at widget level, but rather in the fpg_x11.pas unit.
2013-04-17Revert "Add common procedures in fpg_base for deadkeys"Graeme Geldenhuys
This reverts commit ccfd4b2ae0a9dfae0d19ae7ba673118af70c75da.
2013-04-12New record structure to be used in future OnMove events.Graeme Geldenhuys
2013-04-09Merge latest fixes from 'release-1.0' branch into developGraeme Geldenhuys
2013-04-09New SearchMode property to FileListBase classDibo
This allows the developer to filter the file results by Files only, Directories only, or both (default).
2013-04-04launching help viewerGraeme Geldenhuys
Under *nix systems, if we can't find the direct location of docview, we try the 'which docview' command. If we get a positive response, we know docview is in the system path, and we can go ahead and launch it. At least this doesn't instantly throw an exception when docview can't be found on the first attempt.
2013-04-03debug supportGraeme Geldenhuys
2013-03-22Add common procedures in fpg_base for deadkeysJean-Marc Levecque
2012-11-30Fixes compiler warning about using a deprecated type... TFPColorGraeme Geldenhuys
2012-11-30Fixes compiler hint about unused unitGraeme Geldenhuys
2012-11-13File Search Result Name was never correctly converted from OS encoding to UTF-8Graeme Geldenhuys
2012-09-26fixes spelling mistake in code comment.Graeme Geldenhuys
2012-08-16Make sure TfpgString is based on AnsiString.Graeme Geldenhuys
With the FPC 2.7.1 having some form of Unicode support, and the String typing being redefined... defining TfpgString as AnsiString, we know fpGUI will continue running as normal.
2012-06-29More sanity checks before calling the help viewer.Graeme Geldenhuys
Instead of just going with the assumption that the docview executable exists, check for it first, before we go any further. Calling TProcess.Execute with a non-existing executable gives an unwanted error in our applications.
2012-06-29Added new Exception classes for use in fpGUI.Graeme Geldenhuys
The thinking behind this is so that we can trap fpGUI specific exceptions in our applications if we wanted to. Thus handling them slightly different to other exceptions.
2012-03-20CreateMaskFromSample() under Agg-enabled canvas uses Alpha channel to mask ↵Graeme Geldenhuys
image.
2012-03-19Bit shifting of Alpha channel was wrong in color conversion routinesGraeme Geldenhuys
Both RGBTripleTofpgColor() and FPColorTofpgColor() incorrectly bit shifted the Alpha channel value.
2012-03-19Removed deprecated TFPColor usage.Graeme Geldenhuys