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

World: r3wp

[View] discuss view related issues

Henrik
28-Aug-2007
[7149]
in the loop
amacleod
28-Aug-2007
[7150x2]
I'm not sure.
Do I need to some how save "gui" face inside the loop?
Henrik
28-Aug-2007
[7152x3]
well, the block inside the loop is not reduced, which means that 
all positions and texts are not really being put into the 'gui block.
just before 'view'ing the block, try:
probe gui
>> a: "some text"
== "some text"
>> b: []
== []
>> append b [a]
== [a]
>> append b reduce [a]
== [a "some text"]
amacleod
28-Aug-2007
[7155]
I se the problem...The append statements are there but there but 
my  y coordinate takes on the last value of  y so they are getting 
appended on top of each other in the same location.
Henrik
28-Aug-2007
[7156]
yes, because the block is never reduced, so 'y is used directly, 
instead of a reduced block where the value of y at the given time 
would be inserted into the block.
amacleod
28-Aug-2007
[7157x2]
How do I get y value to reduce before append
and for that mater my dat values
Henrik
28-Aug-2007
[7159]
see my example above. it does exactly that.
amacleod
28-Aug-2007
[7160]
Bingo! I had to compose too: b: compose [at (to-pair reduce [80 y]) 
text bold font-size 15 (reduce dat/1)]
Henrik
28-Aug-2007
[7161]
strictly you don't need reduce inside the compose block. you can 
settle for: compose [at (to-pair 80 y) text bold font-size 15 (dat/1)]
amacleod
28-Aug-2007
[7162]
thanks a lot Henrik
Henrik
3-Sep-2007
[7163]
Anton, did you make a fix for editing center and right aligned fields? 
Could I be allowed to work this into my own set of patches for FIELD?
eFishAnt
15-Sep-2007
[7164]
Where can I find the simplest example of an image player, like playing 
GIF anims in REBOL?  There has to be some very simple ones that just 
flip at some "frame rate" (rather than Drawing)
Graham
15-Sep-2007
[7165]
ask Chris
eFishAnt
15-Sep-2007
[7166]
I looked at his plug-in example, fairly comprehensive but I was looking 
for simpler...thanks.
btiffin
15-Sep-2007
[7167]
Steve; Check out RebGUI.  anim widgets can do multiframe gifs
Ashley
16-Sep-2007
[7168]
They can? anim just cycles a block of images. Source is here out 
of interest:

	http://trac.geekisp.com/rebgui/browser/widgets/anim.r
btiffin
16-Sep-2007
[7169x2]
Yeah, just feed the anim data [(first gif) (second gif) (third gif) 
...] for how many frames there are.  :)
I guess I should have mentioned that.
eFishAnt
16-Sep-2007
[7171x5]
thanks, that is helpful...it is simple and is similar enough.  One 
thing I was wondering was if I have to do a load or not from ram...or 
a copy.   still experimenting.  I was trying a make image! to clone 
each picture..
well, a 1000 frames does show up as 43.2 Megabytes...so it seems 
the size is there in RAM.
So, this should be a valid test.  This SHOULD mean I can play a minute 
videa in less than a second.
My original tests indicated that.
My main question is really how to best assemble gifs to make the 
anim up, rather than how to play.  I am mostly looking at RView 1.3 
at the moment with it's image! datatype.  I thought I saw a bit of 
document which had a simple line of the way to append (or whatever) 
the images into a block or whatever.
Gregg
16-Sep-2007
[7176]
If you have an animated GIF, try just using the standard ANIM style 
in VID; I thought it played them. Creating the animated GIF is a 
different story, but if you have a bunch of images, or a motion JPG 
file/stream, it's easy to parse and play.
eFishAnt
16-Sep-2007
[7177x3]
yes.  but what I am doing is creating one, and REBOL doesn't always 
copy things, so the resultant sequence doesn't play.
It seems like all the image data is just one value of rgb.
Aha! got that warm spot of the exact right words in REBOL to get 
the right things in the right place at the right time.  Whew!  Thanks 
for the ideas.
Chris
16-Sep-2007
[7180]
My animation style was for animated-Gif *level* animations.  You 
still need all frames stacked up on each other in a single image 
file.  Unfortunately not the way anim-gif creation programs work...
eFishAnt
16-Sep-2007
[7181x4]
I found the silver bullet.  Thanks for all the ideas.  I ended up 
usng append.  Nothing fancy, just it takes me extra time to get the 
data structure so it works, and the code was pretty tense in many 
aspects.  I do remember some doc that had a note about making .gif 
anims from REBOL but still haven't found.
Chris, your code, presentations, examples are alwayts top-notch. 
 I learn a LOT reading through them...and enjoy watching them too.
Some time we gotta catch up.
What is the latest Revision of Rebol/View with async? 2.5.53 or higher?
Graham
17-Sep-2007
[7185]
How do you set the toggle style back to it's initial state ?
Brock
17-Sep-2007
[7186]
toggle/state: false
Gregg
17-Sep-2007
[7187]
2.5.53 might have been it Steve.
Graham
17-Sep-2007
[7188]
nope, tried that already.
Brock
18-Sep-2007
[7189x2]
toggle/state: none?
excluding the question mark of course
Graham
18-Sep-2007
[7191]
Oops ..reading it wrong.  Works.
Gregg
19-Sep-2007
[7192]
reset-face should also work
Henrik
27-Sep-2007
[7193x3]
does anyone know how to preset a drop-down inside the layout block?

data: ["1" "2" "3"]


view [drop-down data <something here to set the drop-down to "2">]
sorry, view layout [...

been using R3 too much :-)
figured it out using:
http://anton.wildit.net.au/rebol/gui/demo-drop-down.r
james_nak
27-Sep-2007
[7196]
How do you do it? I was checking anamonitor but these kinds of things 
are mysteries to me.
Henrik
27-Sep-2007
[7197x2]
d: ["1" "2" "3"]

view [drop-down data d with [text: d/2][
should be ], not [