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

World: r3wp

[Ann-Reply] Reply to Announce group

Maxim
4-Jan-2007
[1180x2]
the canvas engine took a few hours to make, & then the demo took 
a few hours more (mostly handling the events)  so although you could 
choose to make the tool using custom code and trying to fix all data 
relationships manually... using liquid allows one to do so very quickly 
and results in rather speedy code.
(and then I know that liquid itself can be made 10-25% faster by 
removing some of the debugging stuff :-)  but I'm waiting for my 
code compositor before strarting to mangle with release threads.
PeterWood
5-Jan-2007
[1182]
Maxim : Possibly, I can't remember exactly and it didn't cause the 
script to abort. I  couldn't recreate the error today.
Maxim
5-Jan-2007
[1183]
k
Anton
1-Feb-2007
[1184]
Henrik, just reading your blog on Toolbar. It says the toolbar will 
stretch if its initial width is 0. I would like to point out the 
standard way used by other VID styles is to use -1.
(I haven't examined the source, so not sure of your intentions.)
Henrik
1-Feb-2007
[1185]
it is? I thought it was 0. oh, well, I'll fix that.
Anton
1-Feb-2007
[1186]
That button-bar is a good idea, I think.
Henrik
1-Feb-2007
[1187]
please, test it, torture it, play with it. :-)
Anton
1-Feb-2007
[1188x2]
Yes, let me try to find some examples...
foreach [style obj] svv/vid-styles [if all [obj/init find mold obj/init 
"-1x-1"][print style]]
BASE-TEXT
VTEXT
TEXT
BODY
TXT 
.....
print mold svv/vid-styles/text/init
Henrik
1-Feb-2007
[1190]
of course this will only count for X direction as I haven't implemented 
anything for vertical button bars yet
Anton
1-Feb-2007
[1191]
Most button bars seem to be horizontal so it makes sense to limit 
the scope for now.
Henrik
1-Feb-2007
[1192x2]
it does provide a "fancy" background gradient. maybe it should be 
removed?
-1 fix uploaded
Anton
1-Feb-2007
[1194x2]
I don't think the gradient is a problem. There was a time when I 
shunned the extra complication.
It's working as you need it, and looks good, right ?
Henrik
1-Feb-2007
[1196]
yes... although it would probably be more "correct". then again, 
the defaults in VID also have a certain look. as long as it's simple 
to override, then it may not be a problem.
Anton
1-Feb-2007
[1197x2]
I would wait to see what actual needs arise as you use it, before 
worrying too much.
I get the feeling you are trying to make something more generalised 
for the wider public.
Henrik
1-Feb-2007
[1199x2]
Well, it is a "sideeffect" of TOOLBAR. I just found that it's a simple 
way to make button bars with right aligned buttons. OK-BAR and OK-CANCEL-BAR 
are even simpler. I do have my own system for requests, as I think 
the ones that are built in are too ugly and simple, but I'm not sure 
if they are general enough for publication.
http://hmkdesign.dk/shop9.png<--- This kind of requesters.
Anton
1-Feb-2007
[1201x2]
Ok, TOOLBAR is based on VID-FACE, so let's first check if it has 
a words dialect.
	>> print mold svv/vid-styles/face/words
	none
Good, so we can set our own without breaking anything.
	toolbar: FACE with [
		; define DATA function in the style-specific dialect

  words: compose [data (func [new args][new/data: args/2 next args])]
	]

All this does is allow a slightly easier spec. Your example from 
the blog:
	view layout [button-bar with [data: [ok-btn cancel-btn]]] 
can now be:
	view layout [button-bar data:[ok-btn cancel-btn]]

Ok, it doesn't save you much in this one example, but over time, 
it will.
Sorry, correcting that last example:
can now be:
	view layout [ button-bar data [ok-btn cancel-btn] ]
Henrik
1-Feb-2007
[1203x2]
oh, thanks for that one. I've been wondering for a while how to do 
that. :-)
I want that in LIST-VIEW as well
Anton
1-Feb-2007
[1205]
The words dialect is not terribly obvious how it works, because it 
advances the index of ARGS by one for you. You still have to remember 
to advance by one for every argument that you understand and consume.
Henrik
1-Feb-2007
[1206]
maybe one should make a document on that...
Anton
1-Feb-2007
[1207x2]
Good idea.
document growing here:
http://anton.wildit.net.au/rebol/doc/vid-words-dialect.txt
Henrik
1-Feb-2007
[1209x2]
explain first what WORDS does
it makes it possible for you in your style to provide words in the 
layout dialect to.. blabla
Anton
1-Feb-2007
[1211x2]
Yes, .. .hmm. I'm sort of approaching it from a different direction. 
Very informal style so far.
Ok, updated.
Pekr
1-Feb-2007
[1213]
Oh my. That is uber cool document, and it should be part of VID docs. 
That really nicely explains, in very human fashion, how some internals 
work!
Henrik
1-Feb-2007
[1214]
nice document there. will it stay where it is?
Brock
1-Feb-2007
[1215]
Nice work at that document Anton.
Anton
1-Feb-2007
[1216x2]
Permanent unless I move my site, but it should remain at that relative 
path doc/vid-words-dialect.txt
Thanks guys. I hope it's useful.
Graham
1-Feb-2007
[1218x2]
Hmm.  Anton has shifted sites 4x in recent years ... !
Why not just pay $5 per year and get a domain?
Anton
2-Feb-2007
[1220x2]
That would be another shift...
Ok... so it's "semi-permanent".
Mchean
6-Feb-2007
[1222]
Maxim: very nice!
Maxim
6-Feb-2007
[1223]
thanks... I can't wait to let you guys play around with all of this. 
 I am thinking of implementing magnets and physics within the editor.
Pekr
6-Feb-2007
[1224]
what I think many developers would be willing to pay for is - real 
screen editor :-)
Maxim
6-Feb-2007
[1225]
real screen editor?
Pekr
6-Feb-2007
[1226]
yes, screen painter. That is the most missing part of the View scenario
Maxim
6-Feb-2007
[1227x3]
oh... you mean a gui builder?
strangely I have found out that when using row/column engines like 
glayout (and others) I get 10 times quicker results than using any 
mouse driven, static page editor.
I wish I could say more about liquidator, but I don't want to increase 
the hype too much.  for now, I just wanted to share the first signs 
of successfully automated node creation  :-)