These are chat archives for picoe/Eto

28th
Nov 2016
Curtis Wensley
@cwensley
Nov 28 2016 20:41
Hmm.. I'm adding a new Stepper control (up/down buttons to increase and decrease values), along with a TextStepper to allow creating a custom up/down control.
The problem here is naming, and I usually go along with other frameworks but they are all over the place on this.. Gtk: SpinButton, WinForms: UpDownBase & NumericUpDown, Wpf (extended toolkit): ButtonSpinner & NumericUpDown, macOS: NSStepper as a separate control
I'm thinking for consistency sake, renaming NumericUpDown to NumericStepper
Harry
@cra0zy
Nov 28 2016 20:43
I like how that sounds
btw I am working on FilePicker
Curtis Wensley
@cwensley
Nov 28 2016 20:43
Alternative is NumericUpDown, TextUpDown, and UpDownButton
ooh cool
Harry
@cra0zy
Nov 28 2016 20:46
Stepper sounds better
Curtis Wensley
@cwensley
Nov 28 2016 20:49
I agree, I've never liked "NumericUpDown" as a name. Using Stepper at least follows the macOS naming convention.
Curtis Wensley
@cwensley
Nov 28 2016 21:16
@cra0zy: you might also have insight on this, but it seems Gtk has no way to have a "SpinButton" without it being an Entry box as well.. I'm thinking just creating a themed control with two buttons for this case
Harry
@cra0zy
Nov 28 2016 21:29
AFAIK, it does not
PS. If you want to make SpinButton get the smallest Width possible, set it's WidthChars to 0
default value is -1 which is autosize
Curtis Wensley
@cwensley
Nov 28 2016 21:33
yeah I tried that, it still shows the entry box.. I think i'll have to also do something custom for the TextSpinner as Gtk's SpinButton only supports numeric values it seems
Harry
@cra0zy
Nov 28 2016 21:34
it has Text property
so you can set custom text to it
Curtis Wensley
@cwensley
Nov 28 2016 21:34
hmm
Harry
@cra0zy
Nov 28 2016 21:34
it also has Icon and Progressbar properties.... I have no idea why...
I have yet to see someone use them
if you want you can just make Themed variants and let me do the native ones afterwards
Curtis Wensley
@cwensley
Nov 28 2016 21:36
Even if I set Numeric = false, it doesn't let me type in any text..
and always shows the numeric value
Harry
@cra0zy
Nov 28 2016 21:38
Gtk 2 or 3?
Curtis Wensley
@cwensley
Nov 28 2016 21:39
2
ah whoops, I was doing things when the value changed
Harry
@cra0zy
Nov 28 2016 21:41
I made FilePicker have enum FileAction with values OpenFile, SaveFile and SelectFolder
Want me to split out SelectFolder into a separate control, ie. FolderPicker, or should I keep the existing setup?
On Unix everything is a file :P
Curtis Wensley
@cwensley
Nov 28 2016 21:45
Considering the selected "file" is always a path string, it makes sense that it can be the same control