summaryrefslogtreecommitdiff
path: root/src/corelib/fpg_base.pas
AgeCommit message (Collapse)Author
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
2012-03-15Give FreeMem()a help hand regarding the allocated memory size.Graeme Geldenhuys
2012-03-15improved the signature of Canvas constructors.Graeme Geldenhuys
2012-03-15New overloaded fpgColor() that takes a Alpha parameter as well.Graeme Geldenhuys
2012-03-15Changed color channels from word to byte size.Graeme Geldenhuys
* 8 bit color channels are the norm in all gui toolkits. * Deprecated the usage of TFPColor. TFPColor comes from the FPC fpcanvas unit, which I do not plan to use any more.
2012-03-15Enable usage of Alpha channel when color type is created or converted.Graeme Geldenhuys
2012-03-15Canvas read-only LineWidth property changed to a function GetLineWidth()Graeme Geldenhuys
This is so AggPas's canvas doesn't conflict, which also has a LineWidth method. I want to prevent similar name confusion.
2012-03-09Adds a comment about internal data structure of TfpgImage data.Graeme Geldenhuys
2011-12-08New functions to return darker or lighter variations of a color.Graeme Geldenhuys
2011-11-29move declaration of TfpgEditBorderStyle so it is more accessible.Graeme Geldenhuys
This now makes it easier to reuse this border style declaration in other widgets. We need to refactor some other widgets too, that have there own border styles as well.
2011-11-21TfpgWindowBase now introduces a BringToFront() method.Graeme Geldenhuys
2011-10-26new handy function to covert individual R, G and B values into a TfpgColor ↵Graeme Geldenhuys
value.
2011-08-31updates KeycodeToText() to use the new resource string constants.Graeme Geldenhuys
2011-08-24Shift comes after Ctrl or AltGraeme Geldenhuys
In KeycodeToText(), 'Shift+' came before Ctrl or Alt. This is not normal practice, so I moved it.
2011-08-17Fixed KeycodeToText that overwrote the ShiftState of previous values.Graeme Geldenhuys
2011-08-17TfpgTimer refactoring.Graeme Geldenhuys
Refactored the TfpgTimer by introducing a TfpgBaseTimer and X11 & GDI Timer descendants. This now allows use to add platform specific extensions to the timer implementation.
2011-08-11changed string parameter to TfpgString typeGraeme Geldenhuys
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.