* Fixes#1984. Added ClearOnVisibleFalse to flag if the view must be cleared or not.
* Fixes#2022. ScrollBarView doesn't show the down arrow on vertical if there isn't horizontal.
* Added feature to fill the remaining width with spaces.
* Removing unnecessary parameter.
* Fixes a typo.
* Unit test rewritten to explain better main feature of this PR.
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
* Add unit test that demonstrates the loss of idle handlers added via Application.MainLoop.Invoke
* Fixes#1994. Ensure that only a single idle handlers list exists at one time
* Previous implementation locked on idleHandlers but this is dangerous because it is reallocated. It was therefore possible for two different threads to hold locks on two different instances of idleHandlers simultaneously. The idle handlers added to the older instance of idleHandlers would then be lost. This was particularity catastrophic when combined with async/await continuations being lost.
* Add dedicated lock object idleHandlersLock and use when modifying idleHandlers
* Fix additional bug in RemoveIdle that was locking the token instead of idleHandlers
* Return a copy via the IdleHandlers property as it was directly returning idleHandlers. This cannot safely be done without first acquiring idleHandlersLock
* Address code review feedback for #1994: Make IdleHandler immutable via ReadOnlyCollection
* Address code review feedback for #1994: Avoid the possibility of IdleHandlers changing while being used
Co-authored-by: Karl Janke <karl.janke@groundprobe.com>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
* Unit test that will fail without the fix.
* ScrollView must return true after ungrab the mouse to allow the View property run after returned.
* Fixes#1999. Prevents the mouseGrabView being executed with a null view.
* Added one more assert null check.
* Added MaxWidthLine into the TextFormatter class.
* Some more test line to better verifying the mainloop idle handlers.
* Fixes#1979. MessageBox.Query not wrapping since 1.7.1
* Added MessageBox unit tests.
* States a button centered issue on a lower fixed size.
* Fixed the centered button issue 4d0a4b6.
* Added HideDropdownListOnClick property.
* Invoking OpenSelectedItem on click.
* Added one more constructor and more unit tests.
* Added the ComboListView derived class.
* Added more features to ComboBox.
* Removes code not featured yet.
* Added HideDropdownListOnClick property to scenario.
* Ensures SetSource having the same behavior as the ListWrapper constructor.
* Fixes#1973. Avoid positioning Submenus off screen.
* Firstly avoids negative positions on the sub-menus and then avoids the bottom not exceeding the console height, as possible.
* Change KeyBindings to allow chaining commands
* Added more asserts for repeating the keybinding till at bottom of list
* Added tests for 'no command' and multiple commands return type
* Fix: The sychronization context method send
The send method of the synchronization context has to block the caller thread in case it is not the main thread.
* Fix: Send has to invoke the action instantly
Send has to invoke the action instantly instead of enqueuing in case of main thread call.
* Added unit tests for synchronization post/send methods.
* Code formating
* Added unit test for MainLoopSyncContext.CreateCopy
Co-authored-by: saskathex <>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
* Fixes#1925. Preserve trailing spaces on word wrap must be refactored on TextFormatter.
* Fixes a bug on Format when the preserveTrailingSpaces is enabled.
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
* Fixes#1861. Border Title property is preferable than the Text.
* Fixes#1866. Bug when scrolling text and type in a TextView. (#1868)
* Some fixes for the WebConsole support. (#1865)
* Invoking NotifyStopRunState for all situations.
* Added Clicked property to support web console.
* Changing to MoveDown to stay always visible.
* Fixes#1849. Wizard as non-popup is broken (#1853)
* trying to make it work
* Fixes#1849. Wizard as non-modal doesn't work
* Fixes#1855. Window and Frame content view without the margin frame.
* Fixing layout of non-modal
* WizardSTep is now a FrameView
* Now use Modal = false to set visual style automatically
* Removed Controls as an explicit construct. Now just Add to WizardStep
Co-authored-by: BDisp <bd.bdisp@gmail.com>
* Update docs with keybindings, global key event and designer (#1869)
* Added docs on keybinding and global key event
* Added TerminalGuiDesigner to showcases/examples
* Regenerated Docs (#1870)
* Fixed cancel logic. Title now shows for non-modal. (#1871)
* Fixes#1874. API docs on github are broken. (#1875)
* Fixes#1874. API docs on github are broken.
* Rebuild with docfx 2.59.3.0 version.
* Fixes Wizard cancel logic and updates docs (#1878)
* Fixed cancel logic. Title now shows for non-modal.
* trying to fix docs
* trying to fix docs
* Fixes#1867. Use Undo and Redo commands with WordWrap enabled. (#1877)
* Updated docs; regeneraged docs (#1881)
* Added a 'Read Only' to the Editor scenario Format menu. (#1882)
* Fixes#1883. Toplevel now propogates Loaded & Ready events to child Toplevel views.
* Updated API doc theme. Added Wizard Sample
* Tweaked API docs format and content. Fixed build warnings.
* Fixes#1889. Docs broken after org move.
* Regen API docs
* Fixes readme links to API docs
* Avoiding breaking change.
* Fixes typos.
* Passing string.Empty to Title from the default constructor.
* Initializes title with string.Empty instead of null.
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: Thomas Nind <31306100+tznind@users.noreply.github.com>
* Fixes LoadFile when word wrap is enabled.
* Fixes an extra space in end of line and error on deleting backwards.
* Removing unit tests with loading files.
* Fixes left column being bigger than zero if word wrap is true.
* Fixes#1820. TextView: Word Wrapping is not correct
* Made fix more surgical via ReadOnly
* Fixes TextView read only wrap issue.
* Rename method.
* Fixes word wrap with toggling read only .
Co-authored-by: Charlie Kindel <charlie@kindel.com>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
* trying to make it work
* Fixes#1849. Wizard as non-modal doesn't work
* Fixes#1855. Window and Frame content view without the margin frame.
* Fixing layout of non-modal
* WizardSTep is now a FrameView
* Now use Modal = false to set visual style automatically
* Removed Controls as an explicit construct. Now just Add to WizardStep
Co-authored-by: BDisp <bd.bdisp@gmail.com>