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
11-Jun-2005
[1349]
If anyone can work out why popup/away doesn't work from within display 
(by uncommenting the display line and commenting the view line), 
please let me know.

	REBOL []

	do %rebgui.r

	;display "test" [
	view layout [

  button "Click here" [show-popup/away make system/standard/face [] 
  do-events]
		text "Then here."
	]

	do-events

It would be very good to get this working [with RebGUI].
Graham
11-Jun-2005
[1350x4]
so, what is happening is that when using display, the popup appears 
only momentarily and then disappears
Is there a way to initiate an action on clicking specific tabs of 
the tab panel?
forinstance, if the data for a panel is held by a database, and I 
want to update it as that tab is selected ...
perhaps as an optional block of actions which can be used by the 
engage function
Anton
12-Jun-2005
[1354x3]
Ok, new SLIDER demo:
load-thru/update site/rebgui/slider.r
do site/rebgui/demo-slider.r
site: http://www.lexicon.net/antonr/rebol/
ChristianE
12-Jun-2005
[1357]
Anton, these are very nice, finally, grabbing the draggers by mouse 
works as expected. Nice, again.
Anton
12-Jun-2005
[1358]
Thankyou. If you look, everything is rendered using DRAW dialect, 
no subfaces, pane is none. :)
ChristianE
12-Jun-2005
[1359]
I know, the RebGUI approach ...
Anton
12-Jun-2005
[1360]
... which I thought should speed it up and make it easier to iterate 
in a list.
ChristianE
12-Jun-2005
[1361x2]
Didn't look in the source, but: the arrows self-contained in the 
slider?
... are ...
Anton
12-Jun-2005
[1363]
Yes, arrows are drawn in slider-face/effect/draw block.
ChristianE
12-Jun-2005
[1364]
Ok, I see. Nice work, once again.
Anton
12-Jun-2005
[1365]
It has a small visual bug, which does not affect the functionality; 
the end of the dragger sometimes is drawn a pixel too far. I think 
it is a floating-point error somewhere, the trapping of which I don't 
have much experience in...
ChristianE
12-Jun-2005
[1366]
Now that's what I call understatement! You're definitly one of the 
VID style gurus, I'm sure you can handle that little rounding error 
:D
Pekr
12-Jun-2005
[1367x2]
something's wrong here. I will probably try to reinstall View. But 
- I pointed installation to C:\Rebol\View IIRC, including the cache, 
yet, view-root points to C:\Documents and settings\blabal
maybe user settings could contain such info. How do I find out?
Graham
12-Jun-2005
[1369]
when you install, you have an option to set the temporary file directory
Pekr
12-Jun-2005
[1370x3]
Why is it not part of the registry at least? Or is it?
I set it into C:\rebol\view IIRC. But I will better reinstall. I 
installed on my work pc, notebook and  home pc, maybe I am confused 
...
by temp you mean public? (cache?)
Graham
12-Jun-2005
[1373]
that directory you refer to "C:\documents ... blah " is the rebol 
temp directory
Anton
12-Jun-2005
[1374]
In the registry the Sandbox value --->  view-root
Graham
12-Jun-2005
[1375x2]
I think used for sites etc.
I couldnt' get Anton's slider to work on this account
Anton
12-Jun-2005
[1377x2]
and then  view-root/public/
Graham, is there an error message ? RebGUI is now at 0.3.0, Rebol/View 
is at 1.3.0 (I am sure you noticed.. :) and demo-slider.r 1.0.2, 
slider.r 1.0.3
Graham
12-Jun-2005
[1379]
>> view-root
== %/d/rebol/view/temp
>> site: http://www.lexicon.net/antonr/rebol/
== http://www.lexicon.net/antonr/rebol/
>> load-thru/update site/rebgui/slider.r
== [
    context [
        slider: [
            size: 4x40
            data: 0
            color: ctx-rebgui/colors/widget
    ...
>> do site/rebgui/demo-slider.r

** Access Error: Cannot open /d/rebol/view/programs/rebgui/rebgui.r
** Where: halt-view
** Near: do view-root/../programs/rebgui/rebgui.r
include [
    site/rebgui/slider.r [slider]
]
query/clear
Pekr
12-Jun-2005
[1380]
hmm, I reinstalled View and now I can see even Public icon on the 
desktop. It was not there before. However, I wonder about following 
- I installed into C:\rebol\view and set cache path to c:\rebol\view\public 
- is that correct? What happens if I install for another account? 
Can I share cache, or will it be deleted?
Graham
12-Jun-2005
[1381x2]
It's expecting to find rebgui in /d/rebol/view/programs/rebgui/
wonder why ...
Anton
12-Jun-2005
[1383x2]
Ah, sorry Graham, I forgot to mention you will need to modify demo-slider.r 
to point to your installation of rebgui 0.3.0...
The reason is there's no easy way for a rebol script such as this 
to install rebgui from the zipped distribution.
Pekr
12-Jun-2005
[1385x2]
the same here ...
yes, zip:// scheme - would be usefull, along with encryption :-)
Graham
12-Jun-2005
[1387]
working now ..
Anton
12-Jun-2005
[1388]
zip isn't needed for this at all. We have compress and decompress.
Graham
12-Jun-2005
[1389]
need some type of convention to call third party scripts
Anton
12-Jun-2005
[1390]
I could handle it by keeping a distribution of rebgui on my site, 
unpacked.
Pekr
12-Jun-2005
[1391]
... but we want .zip, right? Many product do support that - e.g. 
skin-packs for WinAmp do. And Windows can treat .zips as a directory 
natively, as well as Total Commander etc. Our users do not know they 
even use .zip archiver - they simply go into "directory". Compress/decompress 
is much LESS usefull.
Graham
12-Jun-2005
[1392]
or the script looks to see if rebgui is in the local directory ?
Anton
12-Jun-2005
[1393x2]
But it is better for Ashley to maintain a nice convention.
Pekr, yes, I want everything... but we don't need it for this.
Pekr
12-Jun-2005
[1395]
not for this, but we were talking about zip in general, no? :-)
Anton
12-Jun-2005
[1396]
no we weren't  :)
Graham
12-Jun-2005
[1397]
you can't be different if you try to be the same as everyone else
Ashley
12-Jun-2005
[1398]
Anton, superb work on the slider/scroller widget. The increased functionality 
more than justfies the increase in code complexity / size. BTW, why 
the support for text? I know why something like "98%" is important 
for progress, but slider/scroller? ;)