Commit Graph

225 Commits

Author SHA1 Message Date
Shargon
8bd35f0f10 Error on RemoveAll
already is removed on `Remove(View view)`
2018-07-26 16:50:40 +02:00
miguel
d0af3ea3f1 Doc update 2018-07-23 22:12:26 -04:00
miguel
b524369e22 cosmetic 2018-07-23 22:11:42 -04:00
miguel
dd9b17c495 [ListView] allow the source to be null, so that it can be easily set later, fixes #111 2018-07-18 22:26:00 -04:00
miguel
ae7e5333a1 Update docs 2018-07-17 22:25:06 -04:00
miguel
12c4c88389 Add more docs 2018-07-17 22:25:06 -04:00
Miguel de Icaza
98ebab32bf Merge pull request #113 from mholo65/listview-mouse-select
Ensure SelectedChanged is called on mouse click.
2018-07-11 21:41:13 -04:00
Miguel de Icaza
f8dd7b8754 Merge pull request #114 from mholo65/mouse-focus-fix
Fix for setting and removing focus when using mouse.
2018-07-11 21:40:53 -04:00
Miguel de Icaza
dfa8fc4f39 Merge pull request #115 from Daniel-McCarthy/HexView-DisplayBugFix
Fixed HexView Display Offset Bug
2018-07-11 21:40:24 -04:00
Dan McCarthy
78442e02c6 Fixed HexView Display Offset Bug
If there is data to display this line will write a hexadecimal byte as a string. If there is no data it will instead fill the gap with spaces.

A hexidecimal byte is represented by two digits (e.g., "9F"). Instead of filling 2 spaces to represent the byte it is filling in three spaces. This is causing the formatting of lines without data to be heavily offset and not lining up with lines that contain data.
2018-07-09 22:19:07 -05:00
Martin Björkström
ea4d0646b2 Fix for setting and removing focus when using mouse.
- Ensure focus is always sent up the chain of subviews.
- Ensure that removed focus is sent down the chain of subviews.
2018-07-09 22:59:36 +03:00
Martin Björkström
1f74dc5faf Ensure SelectedChanged is called on mouse click. 2018-07-08 23:21:54 +03:00
miguel
63307db39e Add release instructions 2018-07-05 22:08:10 -04:00
miguel
5a9d16c441 Prepare for 0.16 2018-07-05 21:54:10 -04:00
Miguel de Icaza
dd9658b6ef Merge pull request #110 from mholo65/windows-backtab-fix
Handle shift-modifier if tab is pressed on System.Console and Windows drivers
2018-07-05 17:18:41 -04:00
Martin Björkström
b994f15943 Handle shift-modifier if tab is pressed on System.Console and Windows drivers.
- This fixes backtab not working on Windows and System.Console.
2018-07-05 23:09:13 +03:00
miguel
4f03a240c0 version 0.15 2018-07-03 21:53:03 -04:00
miguel
f56f1ba39b [Windows] Function keys on Legacy mode send UniChar == 0, handle this scenario, fixes issue #105, thanks to @fcallejon for the fix 2018-07-03 21:50:15 -04:00
miguel
11d8fab4e8 0.14 2018-06-18 22:08:08 -04:00
miguel
aa2ffb06ef [WindowsDriver] Fix the EventType type 2018-06-18 22:05:41 -04:00
Miguel de Icaza
6946e8b679 Merge pull request #104 from MihaMarkic/fix_view_enumerator
Fixes cases where subviews can be null
2018-06-13 08:49:55 -07:00
Miguel de Icaza
b2975dec44 Merge pull request #100 from pmsanford/master
Quick one: Ensure SelectionChanged is called on mouse click too
2018-06-13 08:48:59 -07:00
Miha Markič
06bfd0da9d Fixes cases where subviews can be null 2018-06-11 09:22:53 +02:00
Paul Sanford
73f10ef1e0 Ensure SelectionChanged is called on mouse click too 2018-06-06 23:05:15 -07:00
Miguel de Icaza
829aae09c8 File Dialog: hook up cancel button 2018-06-04 20:30:11 -04:00
Miguel de Icaza
948ca7994f Rebuild docs 2018-06-01 16:17:08 -04:00
Miguel de Icaza
0a654c1643 More docs 2018-06-01 16:14:07 -04:00
Miguel de Icaza
77f554ef04 Doc updates 2018-06-01 16:10:02 -04:00
Miguel de Icaza
cc462f8715 0.13 2018-06-01 10:25:37 -04:00
Miguel de Icaza
b1662455b1 Do not try to map the number keys manually, should fix github.com issue 81. 2018-06-01 09:50:46 -04:00
miguel
4d6efcb52e Clarified when to use ESC 9 2018-05-25 19:07:37 -04:00
miguel
b759fa9a62 Remove some debug messages 2018-05-25 19:07:37 -04:00
Miguel de Icaza
8dd6ef8e9c Merge pull request #97 from pmsanford/master
Handle case where there's no previous focus
2018-05-25 16:05:32 -07:00
Paul Sanford
7254bbe7ce Set the parent and driver on SetSource 2018-05-21 20:41:52 -07:00
Paul Sanford
80a888735f SuperView could be null too in the case of for ex dialog 2018-05-21 11:14:35 -07:00
Paul Sanford
167e12759f Handle case where there's no previous focus 2018-05-21 10:54:38 -07:00
Miguel de Icaza
dbd1ae0562 Improve sample 2018-05-21 12:56:22 -04:00
miguel
c405f45763 Rewrite Textfield to use List<Rune> like the other editor, makes it easier to reason about the strings 2018-05-19 23:39:49 -04:00
miguel
e8c3a8575c Release notes 2018-05-19 22:43:05 -04:00
Miguel de Icaza
8b884efca0 Merge pull request #94 from nickvdyck/last-rune-index
Get byte index of last rune in textfield
2018-05-18 12:18:15 -04:00
Nick Van Dyck
83f152c406 Get byte index of last rune in textfield 2018-05-18 12:34:14 +02:00
miguel
2af83a14cc Coordinates in the TextField are now Rune indexes, not byte indexes into the ustring.
The ustring stores strings in Utf8 format which is variable encoding,
and I was mixing code that assumed that indexes into Utf8 were valid
rune indexes.

This normalizes point to be based on the rune index, not the offset
into the storage, so we need to do some processing to get this
information right.  It might make sense perhaps to "Explode" the string
into a List<Rune> rather than try to manipualte the ustring, but this
should work for now.

Also, fixed the positioning code, and the drawing code for this, should
fix the reported issue that came up in a pull request:

https://github.com/migueldeicaza/gui.cs/pull/90
2018-05-17 23:15:21 -04:00
miguel
073308bd88 Sample using F# 2018-05-17 23:15:15 -04:00
Miguel de Icaza
be046ec037 Merge pull request #91 from nickvdyck/restore-consolemode
Windows: restore console mode on exit
2018-05-17 22:13:28 -04:00
Nick Van Dyck
e654c3f196 Windows: restore console mode on exit 2018-05-17 23:12:25 +02:00
miguel
b8fe231d19 0.9 2018-05-16 23:01:56 -04:00
miguel
2b05d82039 Remove stash file 2018-05-15 23:14:51 -04:00
Miguel De Icaza
d40c92538c Pass the coodinates to the damage region to fix the damage code 2018-05-15 23:13:40 -04:00
miguel
9ef3ee46ae Use damage regions to speed up the console 2018-05-15 23:02:29 -04:00
miguel
2ec4e4a1da Fix 2018-05-15 22:54:47 -04:00