Commit Graph

524 Commits

Author SHA1 Message Date
BDisp
c192c0925f Added SetSourceAsync to ListView 2020-03-14 21:59:15 +00:00
BDisp
3c3dcd5bd6 Includes ControlKeyState for all the buttons events. 2020-03-14 17:55:30 +00:00
BDisp
2babe56168 Fixes #349 TextField user typed input no longer fires Changed event. 2020-03-14 09:52:23 +00:00
BDisp
bb579249fb Fixes the extra characters that remains in case the new text length is smaller than the older. 2020-03-13 20:19:05 +00:00
BDisp
e2453079b9 Dragging is already working. TODO: optimize, only SetNeedsDisplay on the before/after regions. 2020-03-13 09:56:56 +00:00
BDisp
5534952cdb Enabled Button Pressed with ReportMousePosition simultaneously. 2020-03-12 21:32:56 +00:00
BDisp
743584a692 Fixes code format. 2020-03-12 20:17:29 +00:00
BDisp
6b4fba7946 Fixes #346 issue with enhancers characters, but it only could be apply after the pull requests at NStack are merged because of the Rune.ColumnWidth error. 2020-03-12 20:05:18 +00:00
BDisp
adadd49a47 Fixes #343 - Added AllowsMultipleSelection to the ListView 2020-03-12 11:59:27 +00:00
BDisp
7e0954e67c Fixed a bug with the timer when dragging. 2020-03-11 21:44:53 +00:00
BDisp
72d6b1f885 Added support for Button Triple Clicked too. FileDialog changed to deal with ButtonClicked. 2020-03-11 21:10:06 +00:00
BDisp
1c1502cdb8 Changed the default for RightmostButtonPressed to Button4 and enabled clicked-drag 2020-03-11 14:09:28 +00:00
BDisp
c0f7dc5ef6 Failure behavior solved. It was a threading safe issue. Driver.Wakeup () moved to the Post method on MainLoopSyncContext class solved it. 2020-03-11 03:17:02 +00:00
BDisp
6dfdf13603 Fixed some bugs with the mouse event and text selection, copy, cut and paste. There is still a random failure in the mouse events that lock on button released and only trigger button clicked after moving the mouse. 2020-03-11 02:46:22 +00:00
BDisp
36068f0b6e Removed duplicated Attribute Disabled property 2020-03-10 14:47:39 +00:00
BDisp
e5059b9e60 Merged from textfield-text-selection 2020-03-10 14:40:26 +00:00
BDisp
6cf5ba8fea Merged from scrollview-content-views 2020-03-10 14:27:34 +00:00
BDisp
f40a1e91e6 Merge branch 'repaint-radiogroup' into all-pull-request-at-once 2020-03-10 14:25:02 +00:00
BDisp
ca9767c8f4 Merged from redraw-when-setting-coordinates 2020-03-10 14:24:29 +00:00
BDisp
2b9285b456 Merged from rectangle-drawing 2020-03-10 14:06:57 +00:00
BDisp
e43f6acdf9 Merged from menu-with-submenus 2020-03-10 14:04:06 +00:00
BDisp
40b5a1a801 Merge branch 'filedialog-features' into all-pull-request-at-once 2020-03-10 13:55:43 +00:00
BDisp
08d206ce75 Merged from datefield-cultureinfo 2020-03-10 13:54:33 +00:00
BDisp
a221ed0b95 Merge branch 'colors-features' into all-pull-request-at-once 2020-03-10 13:45:51 +00:00
BDisp
dedb33a9c9 Merge branch 'button-repaint' into all-pull-request-at-once 2020-03-10 13:44:50 +00:00
Miguel de Icaza
97cd2910ed Prepare for 0.70 2020-03-10 09:59:57 +00:00
BDisp
f738fb5f1d Timefield format with bounds values (#303)
* Implemented lower and upper bounds to TimeField

* Passing old text to the Changed event handler

* Change sepChar from char to string in TimeField

* Changing comparison from ':' to sepChar.ToCharArray () [0]
2020-03-10 09:59:56 +00:00
Miguel de Icaza
633f82384b Prepare for 0.70 2020-03-10 09:49:17 +00:00
Miguel de Icaza
68aa257936 Prepare for 0.70 2020-03-10 09:48:07 +00:00
Miguel de Icaza
71c063b415 Prepare for 0.70 2020-03-10 09:46:35 +00:00
Miguel de Icaza
aee4023c73 Prepare for 0.70 2020-03-10 09:42:55 +00:00
Miguel de Icaza
12912dd6c0 Prepare for 0.70 2020-03-10 09:12:57 +00:00
Miguel de Icaza
4a329837eb Prepare for 0.70 2020-03-10 08:57:43 +00:00
Miguel de Icaza
a4693558fd Prepare for 0.70 2020-03-10 08:35:36 +00:00
Miguel de Icaza
e03a4d1a86 Prepare for 0.70 2020-03-10 08:33:33 +00:00
BDisp
323183dafb Inserted new line at the end of file .
Changed method name to SetAttribute in the  ColorScheme class.
2020-03-10 02:10:59 +00:00
BDisp
a1c27554db Fixes #342 and improves color change interaction.
Usage:
Colors.Base.Normal = new Terminal.Gui.Attribute (Color.Green, Color.Black);
2020-03-10 00:49:10 +00:00
Miguel de Icaza
fc1faba745 Prepare for 0.70 2020-03-09 14:30:15 -04:00
BDisp
2d6c692cd5 Fetch from upstream/master 2020-03-08 13:24:45 +00:00
BDisp
cb9eeacb52 Allowing list items selection (#302) 2020-03-08 13:24:44 +00:00
Kasper B. Graversen
25f969476f extract methods on ListView to make it controlable from other controls (#310)
* moveup

* MoveDown

* MovePageDown

* MovePageUp

* MarkUnmarkRow
2020-03-08 13:24:44 +00:00
BDisp
297a61c60d Timefield format with bounds values (#303)
* Implemented lower and upper bounds to TimeField

* Passing old text to the Changed event handler

* Change sepChar from char to string in TimeField

* Changing comparison from ':' to sepChar.ToCharArray () [0]
2020-03-08 13:24:43 +00:00
BDisp
6c93675c0d Resizing the MessageBox width to accommodate all message text (#299)
* Fixed key events traversal for modal dialogs

The key must be propagated initially to the first chain element
before evaluating if we should stop because of the handled or
the Modal condition. Otherwise the modal dialog
won't get any process key notification.

This fixes c072e29a68

* Resizing the MessageBox width to accommodate all message text

Co-authored-by: Adrian Alonso <adrianalonso@gmail.com>
2020-03-08 13:24:21 +00:00
Timothy
5ff0079400 Moved ListView.ListWrapper out of ListView migueldeicaza/gui.cs#313` (#315) 2020-03-08 13:24:21 +00:00
Fabian R
4f40db7ad7 Fixed and Enabled Library reinitialization (#291)
- Replaced static driver initialization with property getter for reference passing in Core.cs::View class, this allows the library to be reinitialized at any time.
- Made the Shutdown method on Core.cs::Application class public, since there is no reason to keep it private. Applications can shutdown the library and revert the console to the initial stage by calling it.
- Fixed a memory-leak on Drivers/WindowsDriver class by destroying the generated screen buffers at library shutdown by calling CloseHandle.
- Minor change to Core.cs::Application.Init(Func<Toplevel>) for better initialization status tracking, via backend property instead of relying on the Top field.
2020-03-08 13:24:20 +00:00
Kasper B. Graversen
8dddf0e5e1 Support menu items that are null so they can be drawn as a menu separator (#304) 2020-03-08 13:24:20 +00:00
BDisp
259ff5e0b8 Fixes issue #306 async/await hang (#312)
* Fixed async/await hang

* Fixed async/await hang with calling Wakeup

* Moved Wake Up into lock statement
2020-03-08 13:16:12 +00:00
imaras
94e6c28167 Typo fix (#321) 2020-03-08 13:16:12 +00:00
BDisp
14bfcbdcfa Fixed out of range exception and text redraw when navigate backward (#320) 2020-03-08 13:16:12 +00:00
Miguel de Icaza
04becfb863 Restore some files that were deleted by Daniel's commit that I had not restored 2020-03-08 13:16:11 +00:00