210 Commits

Author SHA1 Message Date
Leandro Dorileo
efa32413a4 edit: pass event.Ch to OnKeyPress callback
It seems beneficial the callback to also know the event.Ch so we can
implement more "sophisticated" field filling validation strategies.
2018-04-03 13:07:49 -07:00
Vladimir Markelov
8d3cd97d8e
Merge pull request #90 from dorileo/control-destroy
Control destroy
2018-03-26 21:01:47 -07:00
Leandro Dorileo
be1a2b7283 BaseControl: add a Destroy() interface
This interface should be used to remove an object from its parental
chain, this destroyed object will not receive events nor will be
drawn neither will impact on other objects position and sizing.

These objects if properly handled could be eligible for collection
as well.
2018-03-23 14:35:30 -07:00
Leandro Dorileo
1f44a01230 BaseControl: add refID
In order to guarantee BaseControl and Control are fully comparable in the
BaseControl level this patch introduces a refID interface, so the objects
can safely be comparable based on this interface.
2018-03-23 14:34:01 -07:00
Vladimir Markelov
c051927c58
Merge pull request #88 from dorileo/fixes-for-review
Fixes for review
2018-03-20 21:06:16 -07:00
Leandro Dorileo
8e0a86e5c7 edit: reset the cursor position
Whenever changing an edit' content with SetTitle() method the cursor
position must also be updated, otherwise the cursor will be placed based
on previous content.
2018-03-20 15:22:13 -07:00
Leandro Dorileo
492d582ad6 label: multiline
Currently when a label is multiline Draw() will paint it with black/while
foreground/background colors.

This patch makes sure we keep theme consistent across the single line and
multiline use cases.
2018-03-20 15:22:02 -07:00
Leandro Dorileo
4d8b1ae09a listbox: call onSelectItem on keyboard selection
Now listbox will only call onSelectItem() after a mouse selection,
this patch does the same also for keyboard selection.
2018-03-20 15:21:53 -07:00
Vladimir Markelov
7d2469f651 fix for #84 2018-03-15 20:56:29 -07:00
Vladimir Markelov
9d75bfad5a closes #86 - fix crash when the last Window is closed by an internal call 2018-03-14 20:38:52 -07:00
Vladimir Markelov
77ee1b7531 #84 - add new Control property Visible 2018-03-13 22:14:40 -07:00
Vladimir Markelov
d1b209b51f Merge branch 'master' of https://github.com/VladimirMarkelov/clui 2018-01-27 14:21:52 -08:00
Vladimir Markelov
efca4aaa22 #82 #78 - do not run callbacks in separate thread 2018-01-27 14:21:28 -08:00
Vladimir Markelov
6cc955a07d
Merge pull request #77 from pjebs/master
Made some adjustments which may be useful
2018-01-26 21:38:56 -08:00
Vladimir Markelov
5d3a40175d #79 - allow Windows to handle terminal resize event 2018-01-26 21:36:46 -08:00
pj
ae7a061585 Merge branch 'master' of https://github.com/VladimirMarkelov/clui 2018-01-26 18:15:43 +11:00
Vladimir Markelov
c7750d4e42 #78 - fix some data races 2018-01-25 21:49:43 -08:00
pj
9d4cf1efcf exposed view object. 2018-01-24 19:23:00 +11:00
pj
46578847cb Added alert dialog 2018-01-24 19:21:05 +11:00
pj
cd3c9588ac smoother delay for more natural keyboard entry 2018-01-24 19:20:36 +11:00
Vladimir Markelov
fb6ab7b916
Merge pull request #75 from linkerlin/patch-1
Added support for Chinese
2018-01-23 21:42:06 -08:00
Linker Lin
726a814917
Added support for Chinese
Added support for Chinese
2018-01-24 12:26:17 +08:00
Vladimir Markelov
0c6821caf3 #72 - introduce public function WindowManager to access internal Composer to call low level function to manipulate Windows 2018-01-23 13:59:25 -08:00
Vladimir Markelov
a26503f0f6 added missing info about previous fixes 2018-01-23 12:30:47 -08:00
Vladimir Markelov
781d208149 update README 2018-01-23 11:32:07 -08:00
Vladimir Markelov
1e565adfd5 update changelog 2018-01-23 11:31:12 -08:00
Vladimir Markelov
e4adbb3a84 #73 - add method to set visible title buttons 2018-01-23 11:25:00 -08:00
Vladimir Markelov
a2ed5db396 #74 - new Window properties: Movable and Sizable that allow a user to forbid Window moving and resizing with mouse or keyboard 2018-01-23 11:15:43 -08:00
Vladimir Markelov
8b91373bb1 #70 - fix crash after clicking the first column with row numbers v0.7.0 2018-01-13 14:45:31 -08:00
Vladimir Markelov
627561dfc9 #70 - fix scrollbar behaviour when TableView content less than TableView 2018-01-13 14:38:50 -08:00
Vladimir Markelov
a1c21016f5 closes #67 - small doc fix 2018-01-13 14:13:52 -08:00
Vladimir Markelov
9d67c78044 #67 - add a document about predefined hotkeys 2018-01-13 14:11:55 -08:00
Vladimir Markelov
f1e437011e #66 - add a delay after mouse click 2018-01-11 16:45:46 -08:00
Vladimir Markelov
1242a3bceb fix conditional compilation flags 2018-01-10 14:04:45 -08:00
Vladimir Markelov
7c166c2fb6 Fix formatting.
Separate edit control code to OSX and other OSes code. Add a delay
between accepting key presses in edit field. If any keypress comes
earlier it is just thrown away.
2018-01-10 14:01:50 -08:00
Vladimir Markelov
9b13b28295 #65 - disable copying text to clipboard if the edit is in password mode 2018-01-09 19:39:10 -08:00
Vladimir Markelov
c696913610 #66 - fix MacOS backspace/delete 2018-01-08 11:09:30 -08:00
Vladimir Markelov
8f7550b872 #66 - fix checkbox behvaior in editfield demo 2018-01-08 10:43:15 -08:00
Vladimir Markelov
8d7474f23b #63 - added password mode for the edit field v0.6.3 2018-01-02 11:15:05 -08:00
Vladimir Markelov
2e2184713b #55 #58 - remove Bold from all default background colors (themes are unchanged) 2017-12-01 11:46:42 -08:00
Vladimir Markelov
b5216604de fix README 2017-12-01 10:33:50 -08:00
Vladimir Markelov
dd1c708720 closes #61 - fix focus movement with TAB key 2017-12-01 10:31:45 -08:00
Vladimir Markelov
2c06a01186 It is not complete patch because there are more places to fix. At least all demos and full-featured application termfb2 works without race condition warnings. 2017-11-28 19:27:32 -08:00
Vladimir Markelov
bc8d838e86 changelog update 2017-09-07 15:40:46 -07:00
Vladimir Markelov
13476c8bf8 closes #46
1. TableView  does not use 'go' for calling table events. It allows to create
   any new dialog on the fly inside an event handler. That can be useful to
   create simple confirmation dialogs
2. TableView demo: added an example of how to show confirmation dialogs inside
   TableView event handler
3. Fix setting default button for confirmation dialog: it was not possible to
   set the first button as default one
2017-09-07 15:32:25 -07:00
Vladimir Markelov
a5c822f44e Merge pull request #57 from gernest/fix
Remove duplicate assignment
2017-08-14 23:15:52 -07:00
gernest
30f426917c
Remove duplicate assignment 2017-08-14 22:58:56 +03:00
Vladimir Markelov
d8d560c7c3 Merge pull request #56 from gernest/readme
Add installation instruction on README.md
2017-08-13 18:20:38 -07:00
gernest
78ad65f244
Add installation instruction on README.md 2017-08-13 20:06:59 +03:00
Vladimir Markelov
39e9953151 Update README.md 2017-07-15 18:18:09 -07:00