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

World: r3wp

[!RebGUI] A lightweight alternative to VID

Volker
2-Jan-2006
[2776]
A mix could be a self-extracting script for base-distro, and then 
downloading the updates. only a single server-lookup and only a few 
bytes more.
Anton
3-Jan-2006
[2777x6]
Ashley, great that you have made get-rebgui.r. I'm working on it 
to get it to use the public cache and show progress.
I'd like if you could use checksum/secure to generate the checksums 
in manifest.txt, which is compatible with read-thru, load-thru etc.
Also, if your compressed files begin with the 8 characters "rebpress" 
followed by the compressed data, then we can use the /expand refinement 
of read-thru to auto decompress the data for us.
I've come against a strange problem. When I do this
	read http://www.dobeash.com/files/rebgui/dictionary/American.dat

it stops and gives a network timeout after reading 23% of the file.
bytes: 68432 of total: 293605 = 23.31 %

This is repeatable. I tried with read-thru/progress and a simple 
read.
Bizarre
Seems to be pushing through now. Improved my error reporting on the 
way.
Ashley, totally reworked your get-rebgui.r to use public cache:
http://www.lexicon.net/antonr/rebol/rebgui/get-rebgui.r
Ashley
3-Jan-2006
[2783x3]
Excellent work, implementing all your suggestions now ...
Done.
Works well (do http://www.dobeash.com/files/rebgui/get-rebgui.r) 
except that all the files retain their rebpress prefix! ;) What's 
the best/easiest way to correct that?
Volker
3-Jan-2006
[2786x2]
already fixed?
Or i am in the wrong folder? looks clean here.
Ashley
3-Jan-2006
[2788]
Check the contents of public/www.dobeash.com/files/rebgui
Volker
3-Jan-2006
[2789x3]
i see. messes the filenames
Maybe a misunderstanding. "rebpress" must be the first part of the 
file-content. not the filename
in read-thru:
        if all [expand find/match data "rebpress"] [

            if error? try [data: decompress skip data 8] [return none]
        ]
Ashley
3-Jan-2006
[2792]
Doh! Just reread Anton's message above; 'if your compressed files 
begin with the 8 characters "rebpress" followed by the compressed 
data. Fixing now ...
Volker
3-Jan-2006
[2793]
Is the big spellcheck-data needed?
Graham
3-Jan-2006
[2794]
I found this www.as-u-type.com spell checker works with area fields.
Ashley
3-Jan-2006
[2795]
Fixed. Works as intended now.
Ashley
4-Jan-2006
[2796x3]
Spellcheck data is there for the %tour.r demo and is only 287Kb compressed. 
Doesn't change so is only downloaded first time.
As-U-Type is a neat idea except for the fact that:
1) It is Windows only
2) English only
3) Costs money
[unknown: 9]
4-Jan-2006
[2799x3]
Do you want Qtask's Spell checker?
Supports multiple languages, is not Windows only, cost nothing.
Not in that order : )
Volker
4-Jan-2006
[2802]
a little self-extractor. kind of rip, but smarter (IMHO). could be 
used to zip the initial download. http://polly.rebol.it/test/test/mixlib/builder/selfextractor.r
Ashley
4-Jan-2006
[2803x2]
Qtask Spell checker ... YES PLEASE. Ideally we could provide links 
to download required functionality / language files as these resources 
may need to be bundled / distributed stand-alone.
Volker: will look at selfextractor.r
Volker
4-Jan-2006
[2805x3]
Seems still to have a bug, should change filedates. But if you load 
updates with checksum, should not matter anyway.
demo is at http://polly.rebol.it/cgi-bin/../test/test/rebgui/, http://polly.rebol.it/test/test/rebgui/download.r
. the building is in http://polly.rebol.it/test/test/rebgui/build-archive.r
idea is: load archive once, then load updates the get-rebgui-way.
[unknown: 9]
4-Jan-2006
[2808]
Will move topic to !Qtask
Pekr
4-Jan-2006
[2809]
dunno if I remember it correctly, but go to requestor section and 
try 'alert - you can close underlying window by system top right 
cross button ....
Ashley
4-Jan-2006
[2810]
Yep, they need to be modal windows.
MichaelB
20-Jan-2006
[2811]
How do I easily change a 'view-facet in RebGUI while creating a widget 
?

E.g. I want to change the font size of a few 'labels to 16pt, so 
I have to copy the font object. But the using do [] only the last 
do seams to get evaluated - actually nothing else is written in the 
doc - but how to do this without handstands ?
Ashley
20-Jan-2006
[2812]
display "" [
	label "Bigger font" font [size: 16]
]
MichaelB
25-Jan-2006
[2813x2]
Why does the following not work ? Anamonitor shows that the engage 
got into place, but the rate doesn't work. I seam to forget something,
 
with rebgui:

do %rebgui.r
display "test" [
    text "hello"
    do [
        face/rate: 5
        face/feel: context [
            engage: func [f a e][
                print 'bla
            ]
            redraw: detect: over: none
        ]
    ]
]
do-events


with vid:

x: layout [button "hallo"]

x/rate: 5
x/feel: context [
    engage: func [f a e][
        print 'bla
    ]
    redraw: detect: over: none
]

view x
do-events

???any help :-)
I tried to track it down and read the docs - I even think I encountered 
the same problem some years ago - but if so I forgot the solution 
or what came out of it.
A minimal window face works:

view make face [
    offset: 100x100
    text: "test"
    color: yellow
    edge: none
    rate: 2
    feel: make feel [
        engage: func [face action event] [
            print 'bla
        ]
    ]
]


but if using a more complex face, as the one which comes out of 'layout, 
it doesn't work anymore. ???
Ashley
25-Jan-2006
[2815]
I've seen this problem before as well, has something to do with the 
way 'rate is handled I think. Note that for the RebGUI example the 
'detect function is assigned by 'display, and if you want to debug 
the final result just add the following to the do block:

	do [a: face ...]

then you can examine the face post layout.
[unknown: 9]
28-Jan-2006
[2816]
Ashley, what is the license for RebGUI?
Ashley
28-Jan-2006
[2817]
From my website: http://www.dobeash.com/it/rebgui/


RebGUI is a community project that is free for both commercial and 
non-commercial use. Dobeash Investments Pty Ltd retains copyright 
on the name RebGUI and the concepts embodied in the display function 
as well as all associated documentation other than that which covers 
REBOL/View Facets.

Code submissions, in particular widgets, will 
be accepted and credited to the author under the condition that they 
carry these same licence conditions.
shadwolf
28-Jan-2006
[2818x4]
to be easier to understand you are free to use it until you let authors 
name on it and don't claim the invention or part of it is yours  
^^ unless you apport some relevent code in it and even then you are 
the author of what  you write but not on the whole project  ^^
cool be cool to provide an AGG  based logo to be display in the about 
of the application well rebgui look and widgets are enought "original" 
to be recognized on every project that use them for initiate ppl 
...  but could be cool to get some way to attract users to interrest 
some ho on the  back ground
it's like until your car works fine you don"t  care of what is inside 
the  engine but hte day  you  get some problems with your car  you 
try to figure out what is inside at least to not being over charged 
in the  fixing work
having a logo in the about can help ppl to see  easly what application 
use rebgui and then maybe attract them to our philosophy  and all 
the background in their application
Jerry
28-Jan-2006
[2822]
Does anyone have Tree View Face in REBOL? Thanks.
Henrik
28-Jan-2006
[2823x2]
I've seen one made by Cyphre, but I don't know if it's freely available
or demoed by Cyphre at least...
Jerry
29-Jan-2006
[2825]
Thank you, Henrik. I have a homemade buggy REBOL TreeView face. Maybe 
I should just spend some time fixing it.