World: r3wp
[!REBOL3 GUI]
older newer | first last |
Henrik 9-Sep-2010 [3194x2] | thanks to Gregg for a really good session on reviewing the validation scheme. this is precisely what I needed. |
some notes: - validators 'not-empty and 'selected are overlapping, so maybe 'selected should not work on blocks but simply check if the output of the face is NONE - using the 'only-positive validator alone will cause a crash, if the input is not a number and if the previous validator is not a check for number values. I designed it like this to indicate that the value may not be anything but a number, but there is a disagreement over whether incorrect usage should cause a crash. | |
Robert 9-Sep-2010 [3196x2] | only-positive: I would expect an implicit check for a number. If it fails, it's not positive. |
The message to the user should be: Not a number. | |
Henrik 9-Sep-2010 [3198x3] | Robert, the idea is that only-positive does no numeric checks as there is another validator that specifically does this. If that validator fails, only-positive is never evaluated. |
Hence with the correct setup, you would get a not a number error. | |
you can combine multiple validators in sequence for a face and the first one that fails, stops validation for that face. | |
Robert 9-Sep-2010 [3201] | Yes, I understand. I would expect that only-positive than combines two validators: is-number & greater-zero as a pre-set validator. |
Henrik 9-Sep-2010 [3202x2] | ok, I guess we need a way to combine validators |
new build released at http://rebol.hmkdesign.dk/files/r3/gui/r3-gui.r3 This one contains material system and some bug fixes. Requires A105. | |
Graham 9-Sep-2010 [3204x2] | view [ title "hello world" button "test" print "hello" ] does not show the button until you resize the window |
It enforces a minimum size window but only after you first resize it | |
Henrik 9-Sep-2010 [3206] | it seems to be a broken exe. a new one should be distributed. |
Graham 9-Sep-2010 [3207x3] | It's one I compiled myself |
Also size must be a pair? It complains if I just use an integer | |
Are these docs still valid? http://www.rebol.com/r3/docs/gui/guide.html | |
Henrik 9-Sep-2010 [3210] | probably not for groups and panels |
Pekr 9-Sep-2010 [3211x2] | buttons don't change material/gradient, when pressed? |
graham's code - apart from the initial window size, being collapsed, it also behaves strangerly resize size - the button keeps tight to bottom-left corner, when resizing ... | |
Henrik 9-Sep-2010 [3213] | Pekr, material is early test. Just seeing if it works. |
Pekr 9-Sep-2010 [3214] | and the resizing? do we need to set some size of the screen? |
Henrik 9-Sep-2010 [3215] | There should not be any issues there. |
Pekr 9-Sep-2010 [3216] | Am I doing anything wrong? Why the button moves down = "is attached" to the bottom left corner? view [title "test" button "OK" do [print "ok"]] |
Henrik 9-Sep-2010 [3217] | try removing the title |
Pekr 9-Sep-2010 [3218x4] | Trying removing the title does not fix the problem, no? :-) I put the title there on purpose, to show the behaviour :-) |
OK, when removing Title .... then my next question is - the window size is so small, that the button is not visible, unless I resize for the first time. But - Graham already reported that .... | |
btw - is there some easy way to list the widgets/styles available? | |
next possible issue - when I maximize the window - it moves up to the upper left corner, but then it stretches so that the window does surround only the button ... it should not be like that imo? But it depends, of course ... | |
Henrik 9-Sep-2010 [3222x2] | there is a method to restrict the window size. perhaps it is a bit too aggressive, but the option is needed in some cases. |
words-of guie/styles | |
Pekr 9-Sep-2010 [3224x3] | The GUI is highly non-functional, we imo need to wait few more releases ... |
I get some leakage in the fields - strange chars .... IIRC someone already pointed out the issue, anc Cyphre suggested some solution - can't remember now ... | |
In clean R3 A105 session, I do following to get following image: do %r3-gui.r3 view [field] ; resize needed to see anything ... result: http://www.xidys.com/pekr/rebol/a105-field-strange-chars.jpg Any idea? | |
Henrik 9-Sep-2010 [3227] | bug |
Pekr 9-Sep-2010 [3228] | 'check works ... but 'radio shows some strange shape ... is that all due to incomplete material system definitions e.g.? |
Henrik 9-Sep-2010 [3229x2] | In that field, if you press backspace, do you get a crash? |
only 3 styles are written for material system so far | |
Pekr 9-Sep-2010 [3231x3] | And plese - tell me if you are interested in such hints, as it might get you nervous :-) We like pre-releases, but so far my feeling is - Gabs VID3 was able to show us Image Lab demo - resizing IIRC, drag and drop, alpha channels, changing mouse pointer ... then came the VID3.4 from Carl, it felt lightweight, but did 70% of Gabs VID? And now we are seing some XY percent of functionality of Carl's VID :-) I just hope it' still just work-in-progress, but I really wonder if stuff like validation is important now, in a state where there is very few usefull styles? |
Henrik - dunno what you mean by crash - but no, R3 console does not crash, but I get rebol level crash: handler added ** Script error: cannot use pick on none! value ** Where: second all resize-text-face remove-text-face switch either do-text-key if actor all do-style until either do-event do-event either applier wake-up loo p applier wait do-events if view ** Near: second get-facet face 'viewport-size tgob/size/x: face/facet... >> | |
(that was caused by pressing the back-space in a field widget .... | |
Robert 9-Sep-2010 [3234] | Petr, as said: We release our stuff, it's early work and it's not of much use yet. But we still do it. |
Pekr 9-Sep-2010 [3235] | ... but maybe I should use some precompiled R3 executable, to aviod possible wrong settings of my enviroment? But - I have not found any in the link posted here ... |
Henrik 9-Sep-2010 [3236] | Pekr, it's ok, keep posting bugs. |
Robert 9-Sep-2010 [3237] | As long as we don't explicitly state: Please give it a try and provide us feedback on A, B and C things might not work at all. you can give feedback but don't expect that we always care about it. |
Henrik 9-Sep-2010 [3238] | Cyphre says the bug is due to a missing box model. Will be fixed soon. |
Robert 9-Sep-2010 [3239] | This is all in high flux at the moment. |
Pekr 9-Sep-2010 [3240x4] | ok, whatever the box model means in new gui :-) |
Robert - this is OK with me. In the past, I worked with Cyphre, Romano, to do personal testing ... lot's of errors and misconceptions caught on my side. In such early phase, I might cause a flood, so if you want, I might stop for few more releases ... | |
It is just there is not much to test, if there is only 'check working so far for me :-) | |
I simply tried to go via http://www.rebol.com/r3/docs/gui/guide.html , and to test those examples ... | |
older newer | first last |