r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 GUI]

Andreas
15-Aug-2010
[2687]
No one announced that it is ready. Robert said it compiled; nothing 
more, nothing less.
shadwolf
15-Aug-2010
[2688x2]
why compiling things that don't work ? Ok so i should have understoud 
it more like rich-text widget is done now and it compiles well so 
on next release at that time you will be able to experience it. We 
are impatient to get your comments on this new module.
would have been better said that way indeed ...
Andreas
15-Aug-2010
[2690]
You are interpreting far too much into things. No one said that the 
rich-text widget is done. Robert said it compiled (presumably for 
him). That's a progress report, nothing else. The progress, presumable, 
being that the richt-text stuff not only compiled for the original 
author (Cyphre? Henrik?) but for Robert as well.
shadwolf
15-Aug-2010
[2691]
but you can compile only some code ? or have we changed century and 
now you can compile empty conceptual ideas ?
Andreas
15-Aug-2010
[2692]
Once again: you wanted to know wether the rich text stuff is out 
yet. I told you that this is not so. I think that concludes this 
discussion.
Sunanda
15-Aug-2010
[2693]
Rich text: Carl's tweet on 4-aug-2010 is the published source:

<We are currently converting the richtext dialect to work with the 
new host-kit.> 
http://twitter.com/rebol3/status/20300043616
shadwolf
15-Aug-2010
[2694x3]
thank you sunanda ... but then we don't have any idea of the converting 
lenght ... ok so the info are ''at August 14 th  2010, the Rich text 
dialect is adapted to the new project GUI using host kit . And Robert 
could compile it properly"
and i think if i try to discuss the dialect content in the new host 
kit i will be once again of topic ...
off topic ...
Graham
15-Aug-2010
[2697x2]
Cyphre, you GUI update inside a network looks similar to what I did 
... but which didn't work!  Ok, time for me to try again.
All my GUI updates occurred after network activity completed.
Cyphre
15-Aug-2010
[2699]
Graham , you have to send small chunks of the data (according to 
Carls notes for the R3 schemes the chunk should be smaller than 32Kb..this 
is true othervise the port connection 'hangs' for me if the chunks 
are bigger ) and do the update during that periods when you need. 
That's all the magic.
Graham
15-Aug-2010
[2700]
My data was a lot smaller than 32k so I think i have some other issue
Graham
16-Aug-2010
[2701]
Just in relation to the binding issues being discussed in core, how 
does R3 gui work ... are named gobs in the global context or private?
Henrik
16-Aug-2010
[2702]
they are in a private context
Graham
16-Aug-2010
[2703]
so how does one access them?
Henrik
16-Aug-2010
[2704x2]
this is a problem that needs to be solved. I don't remember the exact 
path inside the GUIE context to the faces.
however the context privacy feature should be kept. it's very useful 
with multiple instances of the same layout.
Graham
16-Aug-2010
[2706x2]
sure ...
But I was wondering how to access the faces by name
Henrik
16-Aug-2010
[2708]
inside the layout, you are fine:

view [f: field button do [set-face f "boo"]]


Outside, you need to go through the GUIE context, but I don't recall 
the path.
Graham
16-Aug-2010
[2709]
I think what would be neat would be a way to access widgets by index 
...
Henrik
16-Aug-2010
[2710]
the GUIE context may also change, once the R3 GUI becomes a module.
Graham
16-Aug-2010
[2711]
eg. set the face of the 3rd field ...
Henrik
16-Aug-2010
[2712x2]
we have something like that with the NEXT-FACE? BACK-FACE? FIND-FACE? 
functions.
and to traverse the pane of a face, you traverse the FACES block. 
the setup for the face tree is simpler to navigate than in R2, because 
you are for example not allowed to make that block into a face, I 
believe.
Graham
16-Aug-2010
[2714]
I mean from outside ..
Henrik
16-Aug-2010
[2715]
found the path. not in GUIE, but from what's returned from VIEW:

l: view/no-wait [f: field]

l/data/faces/1/faces/1 ; the field, but not with variable name
Graham
16-Aug-2010
[2716]
so there's a context which has to be found
Henrik
16-Aug-2010
[2717]
an alternative, probably a more sensible one for large GUIs is to 
reference the faces from within the layout and then using functions 
externally:

boo: func [face] [print get-face face]

view [f: field button submit 'f boo]
Graham
16-Aug-2010
[2718]
with the problem that if your function sets a large number of faces 
...
Henrik
16-Aug-2010
[2719x3]
fortunately we can set a large number of faces at once, if your layout 
is properly arranged.
Bolek, our private world is down, so I have to post here:


1. Some pointers on SPACING, MARGIN and PADDING: I think they should 
be standardized so that SPACING is 2-5 pixels, while PADDING and 
MARGIN remain at zero, so we can special-case them. We should reference 
these values in each style by STANDARD-SPACING, STANDARD-MARGIN and 
STANDARD-PADDING, rather than hardcoded values.


2. The PAD style retains its color on a differently colored PANEL.
2. (which it shouldn't do. it should be transparent.)
Henrik
17-Aug-2010
[2722]
http://rebol.hmkdesign.dk/files/r3/gui/232.png

Slightly more meaningful display of form validation.
Pekr
17-Aug-2010
[2723]
keep them coming :-)
Henrik
17-Aug-2010
[2724x2]
Bolek, I partially take back point 1. It seems that SPACING both 
does spacing outside the faces and between them. IMHO, they are two 
separate parameters.
http://rebol.hmkdesign.dk/files/r3/gui/233.png


The ABOUT-PROGRAM function. Only a few lines of code to produce an 
About window. Information is grabbed from the script header.
Pekr
17-Aug-2010
[2726]
the last one is very uninteresting gfx wise :-) Better let's add 
another 20 lines of code, and format it to look less dull ... :-)
Henrik
17-Aug-2010
[2727]
that would not be the place to do it. it would happen on a lower 
level.
Gregg
17-Aug-2010
[2728]
Thanks for posting Henrik!


On About, let's not forget encapped apps and multi-script apps. That 
is, how we should use system/script/header in various scenarios.
Henrik
17-Aug-2010
[2729]
yes, we'll get that done too.
shadwolf
20-Aug-2010
[2730]
after seing the few screen caps i would say it"s flat ...  teh whole 
interface apears so flat .... other while i like the grouping and 
the global look of gob elements.
Henrik
20-Aug-2010
[2731x2]
shadwolf, yes. that's because no time has been spent on skinning.
so once again: complaints about issues that have no relevance to 
the current state of the R3 GUI. I would rather have wishes for dialog 
handling, form validation, how the help system should work and how 
to build more intelligence into the GUI.
shadwolf
20-Aug-2010
[2733x2]
ok that's just what i noticed and i'm sure most people will notice 
that too ...  but it's a now in days visual fashion to have flat 
styled GUI but in general it all flat appart the buttons and  the 
text fields or text area wich are sunken and break the visual monotony 
...
that's not a complain that's a constation .... i will not say what 
it is not true just to flater your ego ... it's flat and it's dark 
grey ...
Henrik
20-Aug-2010
[2735]
most people will notice that too

 - yes. unfortunately, it's the *least* relevant thing to worry about 
 right now.
shadwolf
20-Aug-2010
[2736]
henrik GUI was is and will always be for ever look issue over functionnalities 
...