Commit Graph

4918 Commits

Author SHA1 Message Date
BDisp
0766ad32b0 Fix RunStateTests. 2024-03-23 17:52:36 +00:00
BDisp
2905979c45 Fix MouseTests. 2024-03-23 17:49:30 +00:00
BDisp
d35e2f449a Fix MainLoopTests. 2024-03-23 17:35:21 +00:00
BDisp
1cf7207ea1 Fix KeyboardTests. 2024-03-23 17:32:14 +00:00
BDisp
e6de9ed9dc Ensures Top disposing on the AutoInitShutdownAttribute and fix ApplicationTests. 2024-03-23 17:18:51 +00:00
BDisp
97a0595353 Ensures disposing toplevel before throwing. 2024-03-23 15:58:24 +00:00
BDisp
c471cf1aeb Add ObjectDisposedException testing for View.Title and fixes unit test. 2024-03-23 15:54:33 +00:00
BDisp
c2cfa808a9 Merge branch 'v2_netdriver-OperationCanceledException-fix_3347' into tig_v2_3338-Toplevel-Must-Be-Disposed 2024-03-23 14:06:19 +00:00
BDisp
bbf852c532 Fixes #3347. NetDriver throws System.OperationCanceledException: 'The operation was canceled.' 2024-03-23 14:02:37 +00:00
BDisp
034861bba2 Standardizes the entire Application.Run to be consistent between them. 2024-03-23 10:34:05 +00:00
BDisp
f1fcbb91d3 Fix UICatalog. 2024-03-22 23:52:35 +00:00
BDisp
fda698d1c4 Avoids throw if _source is null. 2024-03-22 23:51:01 +00:00
BDisp
d796c5ac43 Avoids throw if table is null. 2024-03-22 23:49:58 +00:00
BDisp
58d25fccf8 Remove erroneous code. 2024-03-22 20:45:44 +00:00
BDisp
163c0384a5 Delegate the disposable handling to the caller. 2024-03-22 18:49:46 +00:00
BDisp
c68849a314 Remove Top from the Init method. 2024-03-22 17:04:15 +00:00
Tig
0a6193a7a3 Moved Canceled from FileDialog to Dialog (because that's just a good idea and it provides a good case for having a property test for Disposal on get/set).
Tweaked `Run_Dispose_Dialog` to illustrate how broken it is to have `Run/End` dispose `Top`.
2024-03-21 08:46:55 -07:00
Tig
74849ddf75 Merge branch 'v2_develop' into v2_3338-Toplevel-Must-Be-Disposed 2024-03-21 07:56:09 -07:00
Tig
37c8969169 Merge pull request #3341 from BDisp/v2_wheeledleft-wheeledright-fix_3340
Fixes #3340. Mouse ButtonShift doesn't work anymore on Windows Terminal.
2024-03-21 07:46:25 -07:00
Tig
f46dd8f047 Merged @bdisp fix, and tweaked Scenario for better UI 2024-03-21 06:51:17 -07:00
Tig
aaecc302e8 Merge pull request #24 from BDisp/tig_v2_3338-Toplevel-Must-Be-Disposed
Fixes #3338. Application.Run/End -> Callers must dispose Toplevel
2024-03-21 06:41:25 -07:00
BDisp
5c27e16605 Resolving merge conflicts. 2024-03-20 18:02:44 +00:00
BDisp
c8890628e9 Fixes #3338. Application.Run/End -> Callers must dispose Toplevel 2024-03-20 17:34:20 +00:00
BDisp
d2a2ff1f99 Fixes #3340. Mouse ButtonShift doesn't work anymore on Windows Terminal. 2024-03-19 23:42:44 +00:00
Tig
bf77b3153d Fixed all instances of the bad pattern I could find 2024-03-19 14:56:55 -07:00
Tig
6badd0de12 Merge pull request #3337 from tig/v2_3332-Clipping-SetSubViewNeedsDisplay
Fixes #3332.  `ClearNeedsDisplay` needs to iterate through sub views
2024-03-18 15:49:47 -07:00
Tig
8cf63d565a Added some NeedDisplay unit tess 2024-03-18 12:46:35 -07:00
Tig
262e878078 Fixed Clipping scenario - ClearNeedsDisplay was not calling into subviews 2024-03-18 12:19:04 -07:00
Tig
a27708a3f9 Fixed Clipping scenario - SetSubViewNeedsDisplay 2024-03-18 10:04:03 -07:00
Tig
ae008f72b5 Merge pull request #3334 from BDisp/v2_mousegrabview-fix_3333
Fixes #3333. Application.UnGrabbedMouse event doesn't allow grab another view after exit.
2024-03-18 08:42:20 -07:00
Tig
ea9c040afb Merge pull request #3335 from tig/v2_3331-CharMap-ScrollBars
Fixes #3331. Fixed incorrect clip code in CharMap scenario and added comments.
2024-03-18 08:41:16 -07:00
BDisp
d8c1a0c118 Merge branch 'v2_develop' into v2_mousegrabview-fix_3333 2024-03-17 22:47:20 +00:00
BDisp
704f1407d8 Break the loop if the superview is found. 2024-03-17 22:46:44 +00:00
Tig
d81a1ee977 Merge pull request #3330 from tig/v2_3313-Application-End-Top
Fixes #3313. `Application.End` leaves `Top` invalid
2024-03-17 14:34:42 -08:00
Tig
40b28d2120 Fixed incorrect clip code.
Changed to draw on OnDrawContent override.
Added comments to clarify drawing code.
2024-03-17 15:32:02 -07:00
BDisp
1573bb025b Check for the superview instead of check if it contains on the subviews. 2024-03-17 21:11:11 +00:00
BDisp
0120a3648f Fixes #3333. Application.UnGrabbedMouse event doesn't allow grab another view after exit. 2024-03-17 20:06:03 +00:00
Tig
bd4eeb9fab Merge branch 'v2_develop' into v2_3313-Application-End-Top 2024-03-17 07:50:56 -08:00
Tig
ab07ec665b Removed erroneous Disosal and fixed poorly coded unit test: A toplevel manually creatged must be disposed by creator 2024-03-17 07:41:37 -08:00
Tig
73a6e66139 Tweaked unit tests 2024-03-16 08:46:29 -08:00
Tig
68a07cfddb Verify runstate.Top never equals Top 2024-03-16 08:04:40 -08:00
Tig
f9332fd8d5 Merge pull request #3327 from BDisp/v2_menu-mouse-fix_3326
Fixes #3326. Menu is responding even outside the limits, not moving to the view that has the mouse.
2024-03-16 07:37:03 -08:00
BDisp
2b3a67c7a9 Fix typo. 2024-03-14 23:02:23 +00:00
BDisp
534ab2a631 Fixes #3326. Menu is responding even outside the limits, not moving to the view that has the mouse. 2024-03-14 22:42:21 +00:00
Tig
a5b1d6836e Merge pull request #3295 from tig/v2_3273_FOUND_finddeepestview
Fixes #3273 (Again).  Updates `FindDeepestView` etc... to finish `Adornment`
2024-03-13 20:34:29 -08:00
Tig
df4f479ce6 Fixed drag bug; added mouse unit tests 2024-03-13 20:24:46 -08:00
Tig
f9b3959637 Fixed drag bug 2024-03-11 17:35:24 -08:00
Tig
2057cb47d5 Simplified FrameToScreen 2024-03-11 12:12:35 -08:00
Tig
ebb33bf9fc Simplified ScreenToFrame 2024-03-11 12:09:25 -08:00
Tig
11c1be60b9 Simplified View.CrateAdornments; removed reflection 2024-03-11 11:57:24 -08:00