You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to capture input safely at a region on the screen or at the current cursor position, and be able to specify the data type to limit to, and for the input to be constrained by the containing window.
Because the inputs are being entered inside a window, all text must be clipped by the containing window.
Scrolling content
If the text area left for the input is less than the available characters, then when the user reaches the end of the line, the textbox must scroll the contents.
for example in the code above the window is only 40 characters wide,and the caption takes up space, so the name which can be up to 60 characters, will cause the text to scroll when.
Support keystrokes
home, to move cursor to first character
end, to last
delete
insert (toggle between insert and overwrite)
control + arrow, highlight word
tab, complete entry from previous entries
(to be completed)
The arrow keys will move you to the next active input based on the inputs location on the screen. Pressing up will move you to the nearest input above you, etc.
// pseudo code
var person = Window.Read<Person>(CaptionWidth:14,
p =>
new Input(p.Name, 10,10, Text, width:30, caption:"Name"),
new Input(p.Surname, 0,11, Text, width:30, caption:"Surname"),
new Input(p.X, 0, 1, Integer(0,50), width:4, caption:"X:"),
new Input(p.Y, 6,1, Integer(0,50), width:4, caption:"Y:"),
);
Pressing tab moves you between inputs, inputs are highlighted with a default theme, typically black on white for active input, and white and black for inactive.
Themeable inputs
be able to set the foreground and background color of active, current, inactive items.
active : means that the item is part of an input.
current: user has tabbed into the entry
inactive : user has finished entering text, and the value is now in readonly display mode.
cascading theme to reduce code required to render
Inputs to read their theme from a window.
if a parent window has no theme, then the check for theme bubbles up to the parents parent, so that themes cascade.
Windows to come with decent default themes.
The text was updated successfully, but these errors were encountered:
I want to be able to capture input safely at a region on the screen or at the current cursor position, and be able to specify the data type to limit to, and for the input to be constrained by the containing window.
For example
Because the inputs are being entered inside a window, all text must be clipped by the containing window.
Scrolling content
If the text area left for the input is less than the available characters, then when the user reaches the end of the line, the textbox must scroll the contents.
for example in the code above the window is only 40 characters wide,and the caption takes up space, so the name which can be up to 60 characters, will cause the text to scroll when.
Support keystrokes
(to be completed)
Input at X,Y
Move between inputs using tab and arrow keys
The arrow keys will move you to the next active input based on the inputs location on the screen. Pressing up will move you to the nearest input above you, etc.
Pressing tab moves you between inputs, inputs are highlighted with a default theme, typically black on white for active input, and white and black for inactive.
Themeable inputs
be able to set the foreground and background color of active, current, inactive items.
cascading theme to reduce code required to render
Inputs to read their theme from a window.
if a parent window has no theme, then the check for theme bubbles up to the parents parent, so that themes cascade.
Windows to come with decent default themes.
The text was updated successfully, but these errors were encountered: