Commit Graph

446 Commits

Author SHA1 Message Date
BDisp
64b00e3000 Fixes #1499. Allowing border settings for the MessageBox. (#1505) 2021-11-03 22:28:47 -07:00
BDisp
58e7698f4c Fixes #1475. Selection ending with a white space error. (#1478)
* Fixes #1475. Selection ending with a white space error.

* Prevents the mouse  double click processing twice.

* Removing unnecessary variable.

* Sets ScrollViewBar CanFocus to false to ensure the host always focused.

* Only navigates through TabView if winDialog is not null and ensures TextView being focused.

* Fixes both dynamic menu and status bar broken scenarios.

* Fix a bug where the subviews oldEnabled can be overridden, even the superview Enable property hasn't changed.

* Fixes CanFocus when set to false and HasFocus is true.

* Fixes the broken TextView DesiredCursorVisibility.

* Prevents TextField being focused by mouse if CanFocus is false.

* Fixes the CanFocus on content views.

* Fixes #1470. Not all WindowsConsole.InputRecord are caught in WindowsDriver.

* Changing the input for a Queue object.

* Suppress warnings.

* Fixed yet the visibility cursor and adding more unit tests.

* Suppressing more warnings.
2021-10-25 12:40:18 -07:00
BDisp
2ef4edd08e NetDriver fixes keys modifiers not reseting and enter key on Windows Terminal. (#1484)
* Fixes keys modifiers not reseting and enter key on Windows Terminal.

* Fixes summary warnings.

* Ensures MainIteration processes  input while count greater than zero.

* Adding UseSystemConsole to the launch settings profile.

* Improves the performance with Console.Write by writing faster.
2021-10-25 12:31:49 -07:00
Thomas Nind
b5799c3ded Fixed label positions to begin at Margins not just bottom left of screen (#1488)
* Fixed label positions to begin at Margins not just bottom left of screen

* Tidied up Axis GetLabels and added margin control to GraphViewExample

* Added tests for very large margins
2021-10-25 12:30:39 -07:00
BDisp
9d767a4171 Dynamic menu/statusbar and Enable property fix. (#1489)
* Fixes both dynamic menu and status bar broken scenarios.

* Fix a bug where the subviews oldEnabled can be overridden, even the superview Enable property hasn't changed.
2021-10-25 12:29:27 -07:00
BDisp
d55ae77331 Fixes #1446. Added more features to the Border and Toplevel focus. (#1447)
* Fixes #1446. Added more features to the Border and Toplevel focus.

* Prevents throwing exception on negative effect3DOffset values

* Ensures that a view can be focused.

* Only sets focus if it isn't disposing.

* Fixes ViewToScreen and DrawChildBorder Effect3D.

* Unit test for negative coordinates with the ViewToScreen method.

* Added Tab navigation feature to the Editor scenario.

* ComboBox cursonDownKey nullref fix (#1472)

* added null guard to fix null ref when pressing keyDown inside combobox
Improved an error message when view cannot be found

* Added a unit test to ensure combobox can process all key events
Found and fixed a new nullref

* Found a new bug when source is already present and combobox is added to a top view

* searchSet is auto initialized to new List() now to make the code a little bit safer

* Fixes WindowsDriver HeightAsBuffer set to false. (#1466)

* Bump ReportGenerator from 4.8.12 to 4.8.13 (#1473)

Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 4.8.12 to 4.8.13.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v4.8.12...v4.8.13)

---
updated-dependencies:
- dependency-name: ReportGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fixes #1445. Fixing more the Curses and WSL clipboard. (#1448)

* Fixes #1445. Fixing more the Curses and WSL clipboard.

* Fixing unit tests.

* Changing namespace.

* Fixes WSL2 clipboard unit test.

* Upgrades devcontainer with the MainLoop fix.

* Fixes pasting with no selection and with lines break.

* Prevents the event button click being fired after a button pressed with mouse move.

* Fixes the char [ not being processed.

* Added Application.QuitKey property to allow change the quitting application key. (#1450)

* Added Application.QuitKey property to allow change the quitting application key.

* Fixes QuitKey unit test by reseting his value.

* Locks timeouts until is added.

* Fixes #1467. AlternateForward/BackwardKey bypasses dialog modality (#1468)

* Changed namespace.

* Fixing merge conflicts.

* Fixes mouse click issue.

* Removing windows resizing because buffer resizing is enough.

* Fixes #1477. Mouse click and console bottom on Windows Terminal.

Co-authored-by: Igor Bagdamyan <37334640+En3Tho@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 09:22:13 -07:00
BDisp
8bfa2f0425 Border feature (#1436)
* Allowing pass the view to the RootMouseEvent.

* Allowing bring the current window to front on dragging.

* Improving the ConsoleDriver to get the Attribute colors based on the value.

* Added a PanelView to deal with borders.

* Added a Border feature to all views.
2021-08-26 07:55:19 -07:00
Thomas Nind
d60aed79e4 Autocomplete for TextView (#1406)
* Added basic autocomplete style dropdown (not working properly yet)

* Autocomplete basically working but rough around the edges

* Changed to Lists and added CloseKey

* Fixed test, made autocomplete equal length

* Added scrolling through autocomplete list

* Made Accept autocomplete do delete and replace instead of append to support caps changes

* Changed Autocomplete ColorScheme to cyan

* Fixed autocomplete render location when TextView is scrolled

* Fixed scrolling and overspill rendering

* Added wordwrap option to SyntaxHighlighting Scenario

* Moved Autocomplete to be member property of TextView

* Made Suggestions a readonly collection and enabled Autocomplete in Editor Scenario

* Added ClipOrPad tests

* Fixed bad merge

* Delayed init of ColorScheme on Autocomplete until needed

* Changed ColorScheme to match Menu bar
2021-08-24 08:19:43 -07:00
BDisp
52f48b2044 Fixes #1384. Added a VisibleChanged event on the View class. (#1385)
* Fixes #1384. Added a VisibleChanged event on the View class.

* Getting the last char.

* Fixes #871. Added Enable property to Responder and added Disabled color for all ColorSchemes.

* Added GetNormalColor method to the View being more readable.

* Fixes the contentBottomRightCorner Enable and Visible.

* Fixes #643. Added AddItemAt and RemoveItem to StatusBar and fixed more bugs.

* Typo fixes.

* Fixes #1387. Allowing the UnitTests project to test internal keywords.

* Fixes #1389. Added a unidirectional feature to the Marquee styles to the ProgressBar.

* Fixes #1394. Added ReflectedType to check for overridden.

* Fixes #1396. Using the Loaded event instead the Ready event.

* Fixes #1402. Only WindowsDriver supports horizontal scroll. (#1403)

* Fixes #1402. Only WindowsDriver supports horizontal scroll.

* Fixes ProcessContinuousButtonPressedAsync on all drivers.

* Fixed internal unit test.

* Fixing warning.

* Fixing Editor scenario error.

* Fixes double and triple click on a touchpad.

* Ensuring reset the counting.

* Allowing touchpad double and triple click with one finger on CursesDriver.

* Allowing touchpad double and triple click with one finger on WindowsDriver.

* Fixes #1414. Fixed multi toplevels and mdi container issues.

* Improving EnsureVisibleBounds and PositionToplevel.

* Added mouseGrabView to the ResetState method.

* Changing namespace.

* Allowing file type on the SaveDialog.

* Fixes SaveDialogs writing the extension twice.
2021-08-11 02:56:30 -07:00
Charlie Kindel
a660f21e3f Merge pull request #1397 from BDisp/uicatalog-focus-fix
Fixes #1396. Using the Loaded event instead the Ready event.
2021-08-04 22:53:40 -06:00
BDisp
f1f86c4288 Fixes #1396. Using the Loaded event instead the Ready event. 2021-07-26 13:12:02 +01:00
BDisp
bb4bbcba1e Fixes #1389. Added a unidirectional feature to the Marquee styles to the ProgressBar. 2021-07-24 13:23:20 +01:00
BDisp
e2d53d2d92 Fixes #546. Enhancement ProgressBar. (#1379)
* Fixes #546. Enhancement ProgressBar.

* Allows set the Text only on Marquee style.
2021-07-21 09:08:43 -07:00
Thomas Nind
02dfb2be2a Adds Lineview (#1374)
* Added LineView

* Added tests for LineView constructor

* Fixed tests

* fix typo
2021-07-21 09:02:48 -07:00
Charlie Kindel
c76793aaa1 Merge pull request #1371 from BDisp/autosize-direction-text-init
CheckBox AutoSize should initialize with the Label default.
2021-07-21 09:01:36 -07:00
Charlie Kindel
dcc126942a Merge pull request #1364 from BDisp/textview-load-file
Fixes #1314. TextView now exposes file exceptions from callers.
2021-07-21 08:55:05 -07:00
Charlie Kindel
ec2175b942 Merge pull request #1360 from BDisp/clipboard-not-supported-fix
Prevents application crash if OS clipboard is not supported.
2021-07-21 08:54:04 -07:00
Charlie Kindel
481bac9be7 Merge pull request #1359 from BDisp/cursesdriver-attribute-fix
Fixes #1358. Attribute.Foreground / Attribute.Background now working with CursesDriver
2021-07-21 08:52:59 -07:00
Charlie Kindel
1026f2145b Merge pull request #1357 from tznind/table-colors
Added support for coloring cells in TableView
2021-07-21 08:49:27 -07:00
BDisp
e22b52e665 Fixes HasFlag behavior by using == keyword. 2021-07-19 18:39:43 +01:00
BDisp
35cbf68a3a Revert "Fixes HasFlag behavior by using Equals keyword"
This reverts commit a6daa4d474.
2021-07-19 18:35:19 +01:00
BDisp
a6daa4d474 Fixes HasFlag behavior by using Equals keyword 2021-07-19 18:24:28 +01:00
BDisp
49e71b45af Fixes #1380. Setting AllowsTab in TextView keeps Multiline. 2021-07-19 14:21:05 +01:00
BDisp
138a14746d Using LayoutSubviews to fix the size height hiding first character. 2021-07-16 15:17:20 +01:00
BDisp
623b6bf24b Fixes the height from hiding the first character. 2021-07-15 19:27:13 +01:00
BDisp
f32a76b4a9 Fixes the View Menu to set current child if is visible. 2021-07-15 19:24:10 +01:00
BDisp
c29234c690 CheckBox AutoSize should initialize with the Label default. 2021-07-15 19:14:58 +01:00
BDisp
2608fe47f3 Handling Ctrl+Q 2021-07-13 10:58:50 +01:00
BDisp
e78bba0cc2 Fixes TextView to deal with CRLF format. 2021-07-12 21:59:16 +01:00
BDisp
8d6c2e0aa8 Some changes in the UICatalog and Scenarios. 2021-07-11 00:16:40 +01:00
Thomas Nind
e63650102b Changed text color to dark grey to make effect clearer 2021-07-07 13:00:47 +01:00
Thomas Nind
30508d9740 Added multi coloured cell example 2021-07-07 12:59:16 +01:00
Thomas Nind
446759a3f2 Made RowColorGetterDelegate follow same pattern as CellColorGetter 2021-07-07 12:32:22 +01:00
Thomas Nind
29c14876c0 Changed CellColorGetterDelegate to use its own class for args CellColorGetterArgs to future proof the API against breaking changes 2021-07-07 12:15:35 +01:00
BDisp
3f7e996187 Prevents application crash if OS clipboard is not supported. 2021-07-06 17:17:08 +01:00
BDisp
fb49513edb Improving the InvertColors scenario. Thanks @tznind. 2021-07-06 13:33:28 +01:00
BDisp
f256046984 Add InvertColors scenario. 2021-07-06 12:52:35 +01:00
Thomas Nind
f536d906d4 Made selected cell invert first character optional as a TableStyle 2021-06-29 09:27:28 +01:00
Thomas Nind
e460650a3c Changed Scenario alt colors to Win.ColorScheme instead of Colors.Base 2021-06-29 07:16:25 +01:00
tznind
98dfcc4959 Added support for full row coloring 2021-06-28 19:27:29 +01:00
tznind
b3ce131fbf Added support for coloring cells 2021-06-28 18:16:48 +01:00
BDisp
10613f79e4 Merge branch 'main' into toplevel-improvement 2021-06-15 09:40:49 +01:00
tznind
2b5c83d3dc Merge remote-tracking branch 'upstream/main' into color-text-view 2021-06-13 14:03:04 +01:00
Thomas Nind
e601a6bd39 Fixed keyword highlighting and added string literal highlighting 2021-06-13 13:57:20 +01:00
tznind
32e4e9dff8 Added word splitting 2021-06-13 09:33:57 +01:00
Thomas Nind
fb5830ea9d Made color methods in TextView protected virtual 2021-06-13 08:30:03 +01:00
BDisp
1a8316799d Merge branch 'main' into toplevel-improvement 2021-06-11 21:36:39 +01:00
BDisp
297bf42bd6 Fixes InvalidOperationException from throwing when removing the label. 2021-06-06 20:52:45 +01:00
BDisp
480a63d222 Toplevel improvement as a subviews container without frame borders. 2021-06-05 00:47:03 +01:00
BDisp
87926a7d3d Prevents output to the terminal on Linux. 2021-05-29 22:10:23 +01:00