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

World: r3wp

[!REBOL3 GUI]

Henrik
9-Nov-2010
[4191]
Current list of tags (subject to change):

; set at stylize time
style-tags: [
	internal		; the style is intended for internal use
	panel			; the style is panel of other faces
	compound		; the style is a compound of part styles
	field			; the style is a field with editable text
	state			; the style is a user interactive state changing item
	action			; the style is a user interactive action item
	info			; the style is an indicator
	tab			; the style is part of tab navigtion

 auto-tab		; the style automatically tabs away on a specific event
	select			; the style contains user selectable text

 keep			; the style retains highlighting and caret after unfocusing
]

; set at layout and any other time
face-tags: [
	default			; the face is the window default
	focus			; the face is in focus
	disabled		; the face is disabled
	frozen			; the face is frozen
	dirty			; the face is dirty
]

; set at window creation time
window-tags: [

 form			; windows containing a validatable form or other field or 
 state faces

 inform			; windows containing only text or images and no validatable 
 faces

 popup			; windows containing a menu or selection, which when interacted 
 with, results in immediate return of a value
]
Pekr
9-Nov-2010
[4192]
ad 1) I can understand that, and that was also one of my worries 
in my initial post. However, as a designer/programmer, wouldn't you 
find usefull to have:


- something like tree-view (or node based visual display) of styles 
and their dependencies?


- wouldn't it help your orientation to have some list like guie/widgets, 
grouping particular styles, just for your info? So that you know 
that e.g. table is being built using xyz styles?

I am just asking - so no offense please :-)
Rebolek
9-Nov-2010
[4193x2]
1) One internal style may be related to more styles.

2) Is this really a problem? I see no benefit of having such a simple 
function as part of R3GUI - because R3GUI doesn't need it.
I see no use forguie/widgets, style dependencies can be covered in 
documentation.
Pekr
9-Nov-2010
[4195]
Henrik - tags - very nice!
Henrik
9-Nov-2010
[4196]
1) It's possible to make the style tree, when the styles are being 
initialized. In fact I already have this as a separate script, but 
it has not been used lately.
Pekr
9-Nov-2010
[4197]
btw - when I derive style by 'stylize, is there the 'parent field 
being set, so that the hierarchy can be created?
Henrik
9-Nov-2010
[4198x3]
Tags are really trivial. They are just a list of words and we have 
a few TAG functions to set/unset/inspect them during runtime. It's 
entirely up to styles or the higher level code to use tags correctly 
and this is for example done with face navigation.
'stylize hierarchy, not at this time, I think. it would be easy to 
implement if we need it.
The hard part about tags is to name the right ones, so they won't 
overlap too much.
ssolie
15-Nov-2010
[4201]
Was just trying out the r3-gui.r3 script and found out the fonts 
are hard-coded for Windows. I changed them to some Amiga fonts and 
the hello world GUI popped up. We'll need to find some way of handling 
fonts on non-Windows platforms via freetype to keep that script generic...
Henrik
15-Nov-2010
[4202]
Thanks for info. Passed on to Carl.
Pekr
15-Nov-2010
[4203]
ssolie - IIRC Cyphre reported here, that he has FreeType support 
done for A110, he just has to release it. That should help platforms 
like OS-X, Linux, Amiga IIRC .
ssolie
15-Nov-2010
[4204]
Pekr: I'm using Cyphre's patch along with my own changes which enables 
the FreeType support on Amiga to function.
Rebolek
15-Nov-2010
[4205]
I've got one question. There's face/faces for all faces that are 
part of a face. There also needs to be some container for faces that 
are part of face but are not visible (hidden) right now. Currently 
it's called face/cache, but I think the name should be different. 
Any ideas?
GrahamC
15-Nov-2010
[4206]
face/hidden ?
Rebolek
15-Nov-2010
[4207]
Thanks! Native speaker is always appreciated when chosing right names 
for words :)
Henrik
16-Nov-2010
[4208]
I'm considering a rewrite of the validation prototype as there are 
some parts missing with regards to initial state.


Have there been any considerations on how to use the DIRTY tag? I 
have some ideas on when DIRTY is set:


- The user creates an edit in a field, changes setting in a radio 
group, etc. It would not be enough to focus the face, but a specific 
action would have to be taken.

- When the user deliberately moves the edit back to the original 
state, the field is still dirty, so we can observe which fields were 
manipulated.

- Using a function DIRTY?, we can observe whether a field or a panel 
is dirty.

- It's not possible or logical to set the DIRTY tag programmatically 
(other by forcing it in with TAG-FACE face 'dirty)

It would be cleared when:


- Using a function CLEAN, we can unset the DIRTY tag in a face or 
panel of faces. This would be the only way to unset the tag.
Robert
16-Nov-2010
[4209]
- When the user deliberately moves the edit back to the original 
state, the field is still dirty, so we can observe which fields were 
manipulated.

 - I don't like this one. Than we should have a manipulated flag. 
 As dirty means: changed.
Henrik
16-Nov-2010
[4210]
ok, we need specific scenarios for the use of both DIRTY and MANIPULATED.
Pekr
16-Nov-2010
[4211]
What about finally releasint useable GUI with more than useable button 
style? :-)
Henrik
16-Nov-2010
[4212x2]
For DIRTY being changed, that has relevance for when validation is 
not used, for enabling submit buttons. But this also means the original 
value should be stored, which may be covered by the undo system. 
I'm not sure that's useful, if the undo system can show the number 
of changes in a field.


For MANIPULATED doing what is described above, it overlaps most of 
what DIRTY would do and it would also overlap most of what validation 
already does, namely detect and approve/deny changes in a field. 
I'm not sure it's useful either.
It all depends on what DIRTY would be used for.
jocko
16-Nov-2010
[4214]
I have a very basic question, that I have already asked to Carl : 
how to get a working gui.r version ? when doing load-gui, I get the 
following error message : ** Script error: size-text has no value. 
It seems to me that this point should be definitely fixed, as it 
prevents anybody to do view tests (for instance the ones given in 
the reference doc http://www.rebol.com/r3/docs/gui/guide.html) I 
think that this should be done quickly and independently of any improvement 
and evolution of the gui styles and functions.
GrahamC
17-Nov-2010
[4215x4]
you're loading the wrong gui
load-gui references Carl's old GUI but you need to manually load 
Henrik's Gui
script
which is a result of the work of the RM team
jocko
17-Nov-2010
[4219]
Is it the r3-gui file ? Then the gui doc page should be corrected 
accordingly ...
GrahamC
17-Nov-2010
[4220]
yeah .. it should be if anyone has the time and rights
Henrik
17-Nov-2010
[4221]
Now provides a visible frame for keyboard navigation:

http://94.145.78.91/files/r3/gui/248.png
Pekr
17-Nov-2010
[4222]
nice!
Kaj
17-Nov-2010
[4223]
Henrik, what happened to your skin of a few years ago? That looked 
much better
Henrik
17-Nov-2010
[4224]
Kaj, it was very hardcoded, but it will probably be reimplemented.
Kaj
17-Nov-2010
[4225]
That would be good
Henrik
17-Nov-2010
[4226]
This won't start until sometime later though, so it's going to look 
like this for a while. I'd hate to do too many rewrites, if I were 
to start now.
Claude
18-Nov-2010
[4227]
henrik, could you tell me if your r3-gui.r3 will works on linux ?
Henrik
18-Nov-2010
[4228x2]
not until the View part will be enabled in the hostkit
you can possibly test under Wine. Earlier R3 alphas worked there.
Claude
18-Nov-2010
[4230x2]
i just try it now with wine ;-) and it s works
do you think carl will choose your gui for R3 standart ?
Henrik
18-Nov-2010
[4232]
that's not certain yet as he has not made any evaluation yet, but 
it will be a publicly distributed GUI, so you can at least get to 
use it.
Claude
18-Nov-2010
[4233]
could you give me an url to try all your style ? like tour.r on rebgui 
 ?
Henrik
18-Nov-2010
[4234]
http://94.145.78.91/files/r3/gui/style-browser.r3

I think that works.
Claude
18-Nov-2010
[4235]
thanks you
Henrik
18-Nov-2010
[4236]
I should update it soon. There have been quite a few changes since 
that version...
Claude
18-Nov-2010
[4237]
i just download your last version of r3 and r3lib.dll. i will wait 
for it ;-)
Henrik
18-Nov-2010
[4238]
I cannot build right now, so you might as well play with that one.
Claude
18-Nov-2010
[4239]
oki thanks
ssolie
18-Nov-2010
[4240]
Henrik: I have buttons working on the Amiga now using your r3-gui.r3 
script. I'll blog about it soon-ish.