summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-08-29richview: removed DoAllocateWindowHandle() which caused a memory leak.Graeme Geldenhuys
The above mentioned method called CreateWnd() twice, thus causing a memory leak. Now CreateWnd() is simply called once in the constructor.
2011-08-29richview: neatened up the CreateDefaultMenu() method.Graeme Geldenhuys
The code is more human readable now.
2011-08-29richview: making sure we tidy up everything.Graeme Geldenhuys
2011-08-29richview: fixed memory leak with font resources.Graeme Geldenhuys
2011-08-26uidesigner: enabled keyboard shortcuts in main menu of main form.Graeme Geldenhuys
2011-08-26ide: minor project file updates.Graeme Geldenhuys
2011-08-26ide: lazarus project file settings update.Graeme Geldenhuys
Removed the hard-coded 32-bit file extension.
2011-08-26x11: removed trailing whitespaceGraeme Geldenhuys
2011-08-26x11: fixed a compiler hint about an invalid/unsafe typecast.Graeme Geldenhuys
2011-08-26ide: added user feedback when a unit is saved.Graeme Geldenhuys
2011-08-26ide: new pascal keywords added for syntax highlightingGraeme Geldenhuys
2011-08-26textedit: trailing whitespace removed.Graeme Geldenhuys
2011-08-26textedit: scrollbar position wasn't updated when GotoLine() was used.Graeme Geldenhuys
2011-08-24richview: stop a possible index out of bounds error when there is no text.Graeme Geldenhuys
2011-08-24ide: include more file extensions to enable the syntax highlighting code.Graeme Geldenhuys
2011-08-24ide: fix a conflicting hotkey sequence in the main menu.Graeme Geldenhuys
2011-08-24ide: add new placeholder menu items in the main menu.Graeme Geldenhuys
This will systematically be implemented.
2011-08-24ide: enabled keyboard shortcuts in the main menu.Graeme Geldenhuys
2011-08-24docview: enabled keyboard shortcuts in the File menu.Graeme Geldenhuys
2011-08-24ide: Configure IDE dialog now closes when the Esc key is pressed.Graeme Geldenhuys
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-08-24menu: correctly handle keyboard shortcut events nowGraeme Geldenhuys
Before the menu only used to process the Alt+<key> events for the mainmenu bar (top level menus). Now we recursively run through all menu items looking for a hotkey match.
2011-08-24forms: HandleKeyPress() is replaced my DoKeyShortcut()Graeme Geldenhuys
This is done because DoKeyShortcut() clearly says what it does. It only processes keyboard shortcut events.
2011-08-24added begin..end block to make code more readable.Graeme Geldenhuys
2011-08-24bugfix: Menu key never set consumed = True in key press processingGraeme Geldenhuys
2011-08-24reworked TfpgWidget.MsgKeyPress() to correctly handle keyboard shortcuts.Graeme Geldenhuys
processing order is now as follows; - widget that keypress occured it trys to handle the event. - then to keyboard shortcut processing for the widget's children - then work back towards the top-level form giving chance for keyboard navigation (tabstop) processing. eg: pressing Tab key - then let the top level form to keyboard shortcut processing eg: allowing MainMenu to process the event. - then allow the top level for to process OnKeyPress if such an event handler is implemented. - then if the top level form is not the MainForm, and the current top level form is not shown model, allow the application.mainform to process the keyshortcut in it's main menu.
2011-08-24Introduced DoKeyShortcut() into TfpgWidgetGraeme Geldenhuys
This is similar to HandleKeyPress() but takes into account the original widget that started the process, so it doesn't process that widget or its children twice.
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-18Added TfpgFrame to fpGUI.Graeme Geldenhuys
This is a UI Designer friendly component that allows you to embed frames "Windows" inside other windows.
2011-08-18Deleted old prototype mock-up imagesGraeme Geldenhuys
2011-08-17richview syntax and information file renamed so it is easier to spotGraeme Geldenhuys
2011-08-17hint window timer field variable renamed.Graeme Geldenhuys
- Renamed the timer field variable from T_Chrono to FTimer. - Renamed the OnTimer event handler from T_ChronoFini to HintTimerFired - Disabled the timer *before* hinding the hint window. This prevents those add AV's that occur when you close an application. - No need to explicityl disable the timer in HintWindow destructor. When you free a timer, it automatically gets disabled.
2011-08-17TfpgCaret doesn't need it's timer enabled at creation.Graeme Geldenhuys
Now the internal blink timer only gets activating when a Canvas is assigned.
2011-08-17Fixed KeycodeToText that overwrote the ShiftState of previous values.Graeme Geldenhuys
2011-08-17GDI: Fixed the rubbish timer implementation.Graeme Geldenhuys
I was clearly smoking something that day! Anyway, the GDI timer is now correctly implemented, and doesn't push up the CPU load any more. No matter how long the timer runs for. The timer is much more accurate/consistent in firing as well. :-)
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-17richview: to prevent "index out of bounds" errors while RV is empty.Graeme Geldenhuys
2011-08-16richview: extra check to make sure LineIndex is in range.Graeme Geldenhuys
This shoud prevent the 'Index out of bounds' errors.
2011-08-12Removed hard-coded Code Generation option in lazarus package.Graeme Geldenhuys
2011-08-11richview: improved the scrollbar textwidth and SB max value calculations.Graeme Geldenhuys
This helps those odd borderline cases, so now the scrollbar always seems appropriate when it is visible.
2011-08-11RichView: Correctly calculate the HScrollBar Max value.Graeme Geldenhuys
Now that we correctly the FLayout.Width value this change could now be made.
2011-08-11richview: ExtractNextTextElement() changed to support UTF-8 charactersGraeme Geldenhuys
- Ultimately this is so we can fix the Layout.Width problem when UTF-8 characters are used in INF documents. eg: the FPC ref.inf file. - UTF-8 characters can be greater than one byte, so we had to make some changes. - Changed some usages of Char to TfpgChar TODO: - CopyPlainTextToBuffer() implementation has been commented, until we can rewrite it for use with fpGUI. This is a big changes, but I tested DocView with numerous INF documents and all seems well.
2011-08-11richview: we should be looking at SB Width or Height propertyGraeme Geldenhuys
instead we should be looking at the overall FScrollBarWidth field value which defines the Width or Height of all Scrollbars in RichView.
2011-08-11changed string parameter to TfpgString typeGraeme Geldenhuys
2011-08-11richview: fixes right alignment of imagesGraeme Geldenhuys
When we reach the end of a line, we shouldn't always default alignment back to Left - I think. Anyway, this changes makes the output in DocView look the same as IBM's iview program.
2011-08-11richview: correct the localion where we call to update scrollbar coords.Graeme Geldenhuys
2011-08-11minor code formatting, improved code commentsGraeme Geldenhuys
2011-08-11richview: fixes the painting bug of bottom/right corner rectangleGraeme Geldenhuys
Refactored the code, so we only use UpdateScrollBarCoords() method.
2011-08-11corrected the bottom/right corner color for RichView.Graeme Geldenhuys
It's the rectangle between the two scrollbars.
2011-08-11add and remove commentsGraeme Geldenhuys
- added a unit header comment - removed old code comments not needed any more - removed old debug lines