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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Ashley
14-Jun-2007
[6647]
Are these errors you're generating or your users are generating? 
I've got a dozen or so users who've been pounding away at a large 
RebGUI app for almost 2 years now, and the rebgui.log files on their 
PC's are pretty much empty. Might just be a case of YMMV ;)
Graham
14-Jun-2007
[6648]
these are ones I am generating :(
Anton
14-Jun-2007
[6649]
btiffin, maybe this works:
fields: context [a: b: c: none]

display "test" compose [(to-set-word in fields 'a) field (to-set-word 
in fields 'b) field]
btiffin
14-Jun-2007
[6650]
Hey...that should get rid of a few more globals, cool.  Thanks Ashley. 
 First tests worked great. :)
Ashley
14-Jun-2007
[6651]
Anton, very cool. I'll think I'll add that trick to the [RebGUI] 
cookbook.
btiffin
15-Jun-2007
[6652]
Anton;  Yep, thanks.  This has opened up all kinds of RebGUI goodness.
Pekr
15-Jun-2007
[6653]
well, but will it bind those variables to those one in 'fields object?
Anton
15-Jun-2007
[6654x2]
Ah it works, good :) I couldn't remember if the binding was kept 
or not.
Pekr, do you know what   in fields 'a   means ?
Pekr
15-Jun-2007
[6656x2]
yes, from the help ....
I am just not sure, if the 'a in the 'display is the same as in the 
'fields ....
Anton
15-Jun-2007
[6658]
Check this out:
>> o1: context [a: 1]
>> o2: context [a: 200]
>> print probe compose [(in o1 'a) (in o2 'a)]
[a a]
1 200
Pekr
15-Jun-2007
[6659]
I mean - does it create global 'a, referencing fields/a?
Anton
15-Jun-2007
[6660]
The only concern for me was if to-set-word kept the binding. (I guess, 
possibly, long ago it did not.)
Pekr
15-Jun-2007
[6661x2]
yes, but you are creating global var anyway, no? via the set-word?
sorry ... not good at those topics :-)
Anton
15-Jun-2007
[6663x2]
No,   in object 'word   actually refers to the word that is in that 
object. :)
Try the above example, then see if 'a has a value globally.
Pekr
15-Jun-2007
[6665x2]
eh .... can't believe it :-) it should translate into: display "text" 
[a: field b: field]
your above example does not use setword
Anton
15-Jun-2007
[6667]
No, to-set-word keeps the binding of the word (thankfully).
Pekr
15-Jun-2007
[6668x3]
shit, it works :-)
o: context [a: 1]
print o/a
reduce compose [(to-set-word in o 'a) 5]    
print o/a
value? 'a

results:
1
5
false
it is just not clear, how to-set-word could bind it to o's 'a
Anton
15-Jun-2007
[6671x3]
>> blk: compose [(to-set-word in o1 'a) (to-set-word in o2 'a)]
== [a: a:]
>> get blk/1
== 1
>> get blk/2
== 200
to-set-word is not doing any binding. The word retains its binding. 
Each word knows to which context it is bound.
So, as the word travels around the place, it knows in which object 
its associated value can be found.
Pekr
15-Jun-2007
[6674]
ah, that is like sucking 'a from object to upper context, while 'a 
still remembers, where it belongs ;-)
Anton
15-Jun-2007
[6675]
We should move to Core group.
Chris
15-Jun-2007
[6676]
Just ran RebGUI from the Desktop Demos folder:

** Script Error: yello has no value
** Where: append-message
** Near: get msg-color
Anton
15-Jun-2007
[6677x2]
yello is a new colour since....
since View1.3.2
Chris
15-Jun-2007
[6679]
I'm post-1.3.2, but clearly a little behind...
Ashley
15-Jun-2007
[6680]
system/version?
Chris
16-Jun-2007
[6681]
1.3.61.3.1 -- works after downloading 2.7.5
Anton
16-Jun-2007
[6682]
1.3.61 is actually older than View 1.3.2
I've renamed mine to:
rebview1.3.061.3.1  and  rebview1.3.2.3.1
so that they sort properly, by release.
Chris
16-Jun-2007
[6683x2]
Hmm, I guess it's the same as for 1.3.50.3.1 ?
Shows how long it is since I last really used View : )
Ashley
16-Jun-2007
[6685]
This has happened a few times now, so I might add a check for these 
misnumbered versions. Any other versions apart from 50 & 61 I need 
check for?
Chris
16-Jun-2007
[6686]
1.3.2?
Ashley
16-Jun-2007
[6687]
value? 'yello
Anton
17-Jun-2007
[6688x3]
I have
rebview1.3.000.3.1.exe 
rebview1.3.001.3.1.exe 
rebview1.3.001.3.1c.exe 
rebview1.3.001.3.1d.exe 
rebview1.3.050.3.1.exe 
rebview1.3.051.3.1.exe 
rebview1.3.052.3.1.exe 
rebview1.3.060.3.1.exe 
rebview1.3.061.3.1.exe 
rebview1.3.2.3.1.exe 
rebview2.7.000.3.1.exe 
rebview2.7.001.3.1.exe 
rebview2.7.002.3.1.exe 
rebview2.7.004.3.1.exe 
rebview2.7.005.3.1.exe
The above list is in chronological order, thanks to the zero-padding 
I used.
'yello first appears in 1.3.2
amacleod
20-Jun-2007
[6691]
I want to use RebGUI with MySQL using Doc Kimmel's protocol. Doc's 
protocol provides a block of blocks of data but RebGUI's table widget 
I believe is looking for a single block for the data. What is the 
best way to handle the sql blocks. Having each row in a block is 
handy for  manipulation.
Pekr
20-Jun-2007
[6692]
amacleod - Doc's driver allows to get "flat" block structure too. 
Look for /flat or /raw refinement or something like that. E.g. sqlite 
driver from Ashley uses /flat to obtain such structure.
amacleod
20-Jun-2007
[6693x2]
Thanks, I'll look into that.
I'm just looking at the table widget's properties...is it possible 
to have "hidden" fields? he number of fields in my database are much 
larger than what could be displayed.
Pekr
20-Jun-2007
[6695]
no, no hidden fields. Table is very basic data widget.
amacleod
20-Jun-2007
[6696]
Can you mix vid stuff wih RebGUI s that I can perhaps use Henrick's 
list-view widget within rebgui?