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

World: r3wp

[!REBOL3 GUI]

Steeve
14-Feb-2010
[625]
BY combining INACTIVE + HIDDEN you can have several  views of the 
same Panel.
Detailed ones and a shortest ones.
Henrik
14-Feb-2010
[626x2]
well, I think we want realistic use-cases for each tag. HIDDEN might 
be useful in the context of "don't render this as it's hidden, it's 
a waste of time"
yes, it might be useful there, but it seems that INACTIVE would be 
enough along with the original DISABLED. INACTIVE is what I call 
FROZEN.
Steeve
14-Feb-2010
[628x4]
In my version, DISABLED remove completly the face so that it's not 
constructed or  activable anymore
yes actually your FROZEN is the same as INACTIVE
Another usage for the HIDDEN state.

To add a validation process not associated with something to show.

For example, a component to check the rights of the user at the validation 
of a pannel.
Though, something like handling the rights should be server sided
Henrik
14-Feb-2010
[632]
My original DISABLED allows the face to still be rendered in a disabled 
fashion, which is good for forms. I'm not sure how useful it is to 
have your DISABLED after initial rendering, because you would actively 
have to remove the face.... although that presents some interesting 
possibilities for altering the face topology. There are already styles 
in R3 that don't render and that's handled differently.


The idea for FROZEN was that it would be a first step toward using 
the same styles with altered behavior for a GUI editor. FROZEN was 
selected, because of the simple FREEZE-FACE/THAW-FACE names.


READONLY seems the same as SELECT, but READONLY is probably a better 
name.


HIDDEN seems like a cop-out to me. :-) If you want a security measure, 
elements that a user should not see should not be included at all.


With my DISABLED, FROZEN/INACTIVE and READONLY, would that cover 
it?
Steeve
14-Feb-2010
[633]
Let me think... I have to find a better usage for the HIDDEN state 
:)
Henrik
14-Feb-2010
[634]
keep at it :-)
Steeve
14-Feb-2010
[635x2]
About my DISABLED it's true that i'ts only usefull at the construction. 
I.E When You want to construct a pannel from an existing one.
But it implies some inheritance capabilities, i don't know if it's 
possible currently
Henrik
14-Feb-2010
[637]
template panel?
Steeve
14-Feb-2010
[638x2]
About HIDDEN, your example of a multi TABS panel is good
all the fields (even the hidden ones in other sub-panes) have to 
stay activated because you validate the whole thing
Henrik
14-Feb-2010
[640x2]
that's a possibility. HIDDEN would be needed to avoid tab navigation 
inside hidden areas too.
a bigger issue is how to handle multiple FACES blocks for tab panels. 
maybe some kind of switching needs to be done.
Steeve
14-Feb-2010
[642]
Don't see the clue, it's only matter off hidding all the sub-panes 
except the current one ???
Henrik
14-Feb-2010
[643]
perhaps that's all that's needed. I'm not sure there isn't any rendering 
overhead.
Steeve
14-Feb-2010
[644x2]
keep it simple at first, we'll do some optimization if t's requested 
:)
an optimization would be to remove the hidden containers temporary 
but it can wait
shadwolf
14-Feb-2010
[646x2]
henrik hidden widget is used to retrieve size sample for a character 
displayed on screen in draw using dynamically adapted font (according 
to the inputs setting of the user )
in area-tc for example of course this need depends on how the size 
x/Y of a char is obtainable
Henrik
14-Feb-2010
[648]
shadwolf, I'm not sure we'll keep using convoluted methods for obtaining 
font size information. we have the ability to make this nice and 
simple now.
shadwolf
14-Feb-2010
[649]
the idea of having Hidden face is to be able to use the a face as 
test device but without calling the rendering engine and the contructor 
so not using alot of resources just for a not displayed face
Henrik
14-Feb-2010
[650]
that would be done outside the current window face and should not 
need any tags for that.
shadwolf
14-Feb-2010
[651]
henrik yeah indeed I wasn't planning to keep cheating around for 
ever that's just a hacing temporal solution in the case of  area-tc 
develpement. That was to provide you an exaple of use of an hidden 
face
Henrik
14-Feb-2010
[652]
yes, ok :-)
shadwolf
14-Feb-2010
[653]
Ok here another example imagine you  are processing video stream 
 you can use hiddent face to prepare content to be displayed  en 
then swap the faces
Steeve
14-Feb-2010
[654]
I hope Henrik is convinced now, especially because of  the good tab-panel 
example :)
shadwolf
14-Feb-2010
[655x2]
steeve yes tab panel with the ability to set up your colums to be 
display is important way to use hidden face (gob)
hidden face + multi tasking thread in video application can be really 
great to smooth things
Henrik
14-Feb-2010
[657]
yes, will look at HIDDEN.
Robert
14-Feb-2010
[658x2]
Does anyone know where in VID34 the entry to the face-tree is? I 
saw that win-face is set in VIEW but can't find any reference to 
it.
And I don't find my set-words I used in the VID spec block.
Henrik
14-Feb-2010
[660]
I embarrassingly forgot where it is. :-(
ChristianE
14-Feb-2010
[661x2]
set-words are found in window/data/faces/1/names, where window is 
your window gob. Not meant to be like that, should be accessible 
by an accessor function.
Oh, I've just found that particular accessor function already in 
%panel-access.r, called GET-PANEL-VAR:

window: view/no-wait [test: button "Test"] 
button: get-panel-var window 'test
Henrik
14-Feb-2010
[663]
in the R3 console, when typing:

? do-

Does 'do-style turn up in the list?
ChristianE
14-Feb-2010
[664]
No. And that's after LOAD-GUI.
Robert
14-Feb-2010
[665x2]
Why is DATA not shown if I just enter: window?
It's hidden?
Henrik
14-Feb-2010
[667x2]
yes, some GOB attributes are not shown.
which is why I was wondering about reflection functions on GOBs not 
working before.
BrianH
14-Feb-2010
[669]
Henrik, if you are concerned with making the code modular, it might 
be a good idea to stick with the .r file extension for now.
Henrik
14-Feb-2010
[670]
it's quick to change, but Robert's dev environment is set up for 
.r3 for now.
Graham
14-Feb-2010
[671x2]
I use hidden panels and buttons all the time .. to reduce GUI clutter. 
 When the user does something that satisfies some condition, I then 
show these hidden buttons, panels.
Other systems use ghosting to achieve the same benefit
Henrik
14-Feb-2010
[673]
there would be a difference between disabled and hidden items.
Graham
14-Feb-2010
[674]
hidden is invisible disabled