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

World: r3wp

[View] discuss view related issues

Chris
21-Jan-2005
[291x3]
It didn't occur to me when composing the sample; though I assume 
you mean within the 'add-styles function?
; For example -- to accumulate styles:
add-styles: func ['val spec /new /local blk][
   blk: [] if new [clear blk]
   stylize/styles head insert spec to-set-word val blk
]
; Usage:
my-styles: add-styles x [btn "Quit" [quit]]
Hmm, that doesn't work -- I'd need to think about it...
Romano
21-Jan-2005
[294x2]
perhaps i do not understand what you want to do, but if the goal 
is building a growing set of styles, i think that this is the standard 
way:
x: stylize/styles [a: field] []
x: stylize/styles [b: field] x
view layout [styles x a "style a" b "style b"]
the first command could also be a more simple:
x: stylize [a: field]
Chris
21-Jan-2005
[296]
The idea is to take a word! and a block! and set the word! to a style 
created using the block! -- accumulating as desired.  I've implemented 
it as a wrapper for stylize...
Romano
21-Jan-2005
[297x2]
it is what stylize/styles already does, no?
only the word must be a set-word already in the block
Chris
21-Jan-2005
[299]
Yep.  That's what my function does -- puts the word in the block 
and uses stylize.
Romano
21-Jan-2005
[300]
ah, ok!
DideC
25-Jan-2005
[301x2]
Does one know what is the used of the 'text flag ?
And why does flag-face and deflag-face copy the flags block before 
modifying it ???
Sunanda
25-Jan-2005
[303]
One possibility: the default flags block may be  global -- shared 
between all default faces. So, to alter an instance, it needs a specific 
copy.
DideC
25-Jan-2005
[304]
It was my first though, but block! are not shared between object!.

Or was it done for an old View version where 'make does not duplicate 
block! ???
Anton
26-Jan-2005
[305]
I think so.
DideC
27-Jan-2005
[306]
For the 'text flag, I have found. It is used by multi/color to dispatch 
tuple! values to face/font/color or face/color.
Guest
29-Jan-2005
[307]
is there any gui designer out there ?
eFishAnt
29-Jan-2005
[308x2]
Guest, you should get your login name in Accounts.
and yes, there are some brilliant gui designers around...some of 
the best in the industry.
Guest
29-Jan-2005
[310]
thx for reply eFishAnt, are these gui designers working with rebol 
? (e.g. creating a rebol code skeletons)
eFishAnt
29-Jan-2005
[311x3]
there are some absolutely brilliant GUI's that various REBOLers have 
designed.  I don't know where to start the list...and there is a 
layout.r tool which generates a GUI from a pallete of styles...not 
sure what you are looking for
layout.r gives you a Reblet (more flesh than a skeleton) and you 
can add actions to buttons, etc...if that is what you mean
(skeleton with flesh, but no fat)
Guest
29-Jan-2005
[314]
a graphical gui designer. drag and drop controls/components on a 
form . something like a nice IDE...
eFishAnt
29-Jan-2005
[315]
yes...at first I thought you meant a person...a gui designer...misunderstood 
;-)
Guest
29-Jan-2005
[316]
a commercial product will be welcome also.
eFishAnt
29-Jan-2005
[317x2]
I have done a lot of work to improve layout.r  and more to do in 
the future...but it is a good system, better than commercial products.
who are you?
Guest
29-Jan-2005
[319]
perfect, will take a closer look at this. perhaps it is a good idea 
to include a foreign tools/component page at rebol, to inform newbies 
about software making life easier.
eFishAnt
29-Jan-2005
[320x3]
http://www.rebol.net/has links to lots of places info for developers...let 
me find a couple good specific ones
http://www.rebol.org/cgi-bin/cgiwrap/rebol/search.rwill give you 
the page to search and try layout.r if you want to try the old version.
I think Sunada has thought to do some download statistics for scripts 
people download.
Guest
29-Jan-2005
[323]
have had a look to layout.r. very impressive and entired written 
in rebol, a good starting point to step faster into view.
eFishAnt
29-Jan-2005
[324]
It saves a Reblet and it lets you lay out styles where you want them. 
 The code it generates in REBOL is much more readible than archaic 
systems like Visual C++/.Net  and Delphi
Guest
29-Jan-2005
[325]
agree, very flexible dynamic code generator. increasing the gadgets 
like list, tree  tab (e.g. as macro) will be very nice too :-)) thx 
for heading me to this.
eFishAnt
29-Jan-2005
[326]
so I still don't know who you are...you should get an account in 
here.
Guest
29-Jan-2005
[327]
tom, from spain. have had a account but was lost during the crash. 
will make a new .
eFishAnt
29-Jan-2005
[328x2]
cool, just post a message in Accounts and one of the men-in-black-hats 
will serve you.
Maxim also has a glayout.r in that library...and his demos at DevCon 
2004 were a smash.
Guest
29-Jan-2005
[330]
men in black :-) hopefully there will not flash me ... (but wait, 
perhaps this is fine because it could be easier to lern rebol, leaving 
the old coding paradigm at home) :-))))  thx, for your help.
eFishAnt
29-Jan-2005
[331]
great comeback, tom
Terry
29-Jan-2005
[332]
always the salesman ;)
eFishAnt
29-Jan-2005
[333]
it's easy to sell the best.
Terry
29-Jan-2005
[334]
http://powerofq.com/skins/rpoq.jpg
Geomol
29-Jan-2005
[335]
Nice picture there, Terry! The  "look-out" within the 'O' reminds 
me of some pictures, I made with my Amiga500 many years ago. :-) 
But we didn't have such nice colour fading back then. Very nice!
Geomol
31-Jan-2005
[336]
Is it possible to check on keyboard key-pressed and key-released 
events, like you can with mouse-button down and up? I need that for 
e.g. movement in games.
Pekr
31-Jan-2005
[337x2]
there is trouble with keyboard in rebol. I am not sure, but IIRC 
Cyphre can talk about that. You can't catch key-up event for e.g., 
no ctrl plus tab, etc keys ...
We already asked RT for new abstracted keyboard handler .... they 
tried to stay compatible, but not having some key combinations is 
not solution too ...
Geomol
31-Jan-2005
[339]
There's a fine example in the feel how-to: http://www.rebol.com/how-to/feel.html

But it will only catch key-press events, as I see it. So again, is 
it possible to catch key-release events, anyone?
Pekr
31-Jan-2005
[340]
I think not ....