55 Commits (master)

Author SHA1 Message Date
Oliver 03bdc867be Fixed inconsistent selection styles in List, bugfixes in printWithStyle, removed reliance on ColorDefault. Fixes #954, resolves #960 2 months ago
Oliver bf8f1c43e4 Fixed index out of bounds for when a selected drop-down option is removed in its callback. Fixes #927 4 months ago
Oliver f38d14c988 Added IsOpen() to DropDown. Resolves #810 1 year ago
Oliver 47b3275db4 Form elements can now also be disabled. Resolves #192 1 year ago
Oliver ed3ea789e9 Text area can now be added to forms. See #594 2 years ago
rivo 12a29444c8
Merge pull request #727 from dimonomid/dropdown-hor-alignment-fix
Fix the DropDown list when too close to the right screen edge
2 years ago
Oliver 2e69b7385a Fixed mouse handling bug for drop-downs. Removed 404s from readme. Fixed #761 2 years ago
Oliver 55965cf21d Replaced mattn/go-runewidth string width calculation with rivo/uniseg for improved character display. 2 years ago
Dmitry Frank 14200b58af Fix the DropDown list when too close to the right screen edge
There was a bug: DropDown always aligns the left edge of selection list
and the main widget, but when the widget is too close to the right
screen edge, the list ends up being drawn only partially.

Fixes #726.
2 years ago
Oliver f0544de1f2 Added RemoveOption() and GetOptionCount() to DropDown. Resolves #682 2 years ago
Oliver 1b3174ee3d Added callback functions for focus and blur events. 3 years ago
Wenshiqi222 bcb1cef989
Update dropdown.go
A little comment error
3 years ago
Oliver 29d673af0c Added SetListStyles() to DropDown. Resolves #621 3 years ago
Oliver 21d1a2de10 Fixed wrong mouse click test on drop-downs. Fixes #600 3 years ago
Oliver 675ed5b96b Removed Focusable interface. 4 years ago
Oliver e4d167311d Upgraded to latest tcell version. Results in a minor incompatibility in the Table class. 4 years ago
Oliver deb54e1422 Keyboard events are now propagated down the hierarchy, allowing users to intercept them. Closes #421 4 years ago
Oliver 5f5b79b00e Added mouse support for Table and TreeView. 4 years ago
Oliver 9af6826328 Added/fixed comments, some structural changes/bugfixes for mouse support. Table, TextView, and TreeView still open. Closes #363 4 years ago
Chris Miller 1fb9862c00 Separate action events 4 years ago
Chris Miller 0daf286122 Improve dropdown mouse handling 4 years ago
Chris Miller 8abbf770ec Change mouse handler func 4 years ago
Chris Miller 9598ca2519 New mouse design
capture bool not finalized
4 years ago
Chris Miller cd3c60e6d1 Refactor EventMouse 5 years ago
Chris Miller 93c0edc4a8 Get mouse actions rather than just mouse state 5 years ago
Chris Miller e4d6f4f3ee Fix dropdown focus 5 years ago
Chris Miller 1d496acc2b Dismiss dropdown by click 5 years ago
Chris Miller 871ddc57d7 DropDown mouse support 5 years ago
Chris Miller d7250288e2 More mouse handling for primitives 5 years ago
Oliver c3d1d4bcf9 Added autocomplete functionality to InputField. Resolves #299, resolves #77 5 years ago
Oliver 95de965571 Selection bar in DropDown stretches entire width now. Also added SetTextOptions() with prefixes/suffixes etc. Resolves #289 5 years ago
Oliver 9d616aee87 DropDown's SetCurrentOption() will also trigger the selected event. Closes #256, resolves #260 5 years ago
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 5 years ago
Oliver 997b18eeff Introduced a separate class-wide "selected" handler for DropDown. Resolves #206 5 years ago
Oliver 768070ef7b Hitting Escape on a drop-down selection resets it. 6 years ago
Oliver 7d789421e3 DropDown now only uses List's main selected callback. Fixes #115 6 years ago
Oliver f855bee020 Separated form item "done" function from "finished" function. Resolves #39 6 years ago
Oliver 5bd22542e5 For Form.GetFormItemByLabel() to work, we must not modify the label text. Fixes #94, fixes #99 6 years ago
Oliver 761e3d72da Added Primitive demo to go along with the GitHub Wiki entry on how to create your own primitive. 6 years ago
Oliver b357eaf10f Drop-down allows typing to directly jump to options. Resolves #77 6 years ago
Oliver 7e4958256f List (and therefore also DropDown) will scroll if currently selected item is not on screen anymore. Fixes #71 6 years ago
Oliver 2a83b20ce3 Improved documentation. 6 years ago
Oliver 4db30f9ed4 "FieldLength" is now "FieldWidth" everywhere for clarity and consistency. Sorry for this breaking change. It is better in the long run. 6 years ago
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 6 years ago
Oliver aa25839cfa Introduced horizontal item alignment in forms. Resolves #33 6 years ago
Oliver 626453b2a6 All primitives now offer a way to intercept all key events sent to them. Also made the global key event intercept handler more general/consistent. Resolves #22 6 years ago
Oliver 61d8ea30f8 Added support for wide unicode characters (e.g. Chinese). Resolves #9 6 years ago
Oliver 3fbea7a99b Added a listener for changes in input fields. Also in the Form. Fixes #4. 6 years ago
Oliver 2874294d89 Added Styles variable with default colors for primitives. 6 years ago
Oliver e4f97a6436 Added links to Wiki to documentation. Also replaced screenshot with GIF screencast. 6 years ago