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

World: r3wp

[Ann-Reply] Reply to Announce group

Ingo
30-Aug-2005
[688x2]
REBOL [
	Title: "Local Index" 
	Type: 'index 
	dynamic: true 
	plugin-pane: 0.5
]

title "Local Files"
app 0.3

group "A" effect [multiply green] 
			 
group "B" icon %action.png

action "a\gitarre"    do [explore %/f/gitarre/]
action "a\view-root" do [explore view-root]
action "a\hamster"   do [call "H:\prog\Hamster\Hamster.exe"]

action "b\Internet" do [
	call "H:\Programme\offline-proxy-mm3\MM3-WebAssistant.bat"
	call "C:\Programme\discountsurfer\discountsurfer.exe"
	call "H:\Programme\Mozilla\Firefox\firefox.exe"
	call "C:\Programme\Opera75\Opera.exe"
] 


action "b\Firefox" do [	call "H:\Programme\Mozilla\Firefox\firefox.exe"] 
icon %web-surf-action.png

action "c\desktop"   do [editor view-root/desktop.r] 
action "c\imap"      do [editor %imap-handler.r] 

file "Info" %info.txt
file "T\Test" %test1.r 
file "T\Test2" %test2.r 
file "T\Test" %test3.r

; this is composed ----
file (form now/date) %dummy.r

action "Click me" #clickme do [
            alert "hi"

            [Text "This will be displayed within the desktop" [alert "ho"]]
          ]

action "Click me 2" #clickme2 do [
            alert "hi"
			; no return value, so nothing displayed in the desktop
          ]

action "PRINT" do [print "^/^/----------------------^/^/^/"]
action "prin somethin" do ["yea"]
file "t\Test" %dummy.r

; this will draw the plugin
app-draw [face /local cl-size][
   cl-size: to pair! reduce [face/size/x 50]
	face/pane: layout/offset[
		at 0x0 
	   text "00:00:00" cl-size center 255.155.40 with [
   		font: [size: 24]
	   	rate: 1
		   user-data: none
   		feel: make feel [
	   		engage: func [face action event i] [
		   		if user-data <> now/time [
			   		i: form user-data: now/time
				   	if 7 > length? i [append i ":00"]
					   face/text: i
   					show face
	   			]
		   	]
      	]
      ]
      text "TEST" 
		button "hi" [alert "you!"] 
   	button "CLOSE" [unview/all] 
	] 0x0 face/size 
]

; if you need to redraw after a resize, not yet used
app-resize [new-size][]
This is my %local/index.r  with some tests, and I hope all references 
to my icons removed
Volker
30-Aug-2005
[690x5]
one thing about security: i would check that against a directory. 

 if find/match clean-path/file dirize view-root/local ["its my local 
 file, allow more"]
about this split-view thing: i once thought about showing some more 
text, what this directory is about. for help, or maybe some kind 
of "dungean-game". Now you have this split-view, could you extend 
it to show some text? maybe [ info {You are here ...} ] ?
(and for call you need no /pro anymore :)
that computername-thing is smart. I even use directory too, making 
a url from both. 
  rejoin[comp:// read dns:// what-dir]
but my use is testing, this way i can have different configurations 
on the same drive.
Ingo
31-Aug-2005
[695]
Thanks Volker, I have thought about checking for local access, too, 
but wasn't sure whether it's enough. (Files in the cache are local, 
too.)
Anton
31-Aug-2005
[696]
No they aren't, they are in view-root/public/
Ingo
31-Aug-2005
[697]
Ahh, you're right ... using the complete path to %local should be 
OK.
Graham
31-Aug-2005
[698]
protest about rising gasolene prices.
Kaj
31-Aug-2005
[699]
Where can I sign to support rising prices? I think that fossil fuel 
usage should be strongly discouraged
Graham
31-Aug-2005
[700x2]
Support it by buying petrol.
The greater the consumption, the higher the prices will rise .. and 
the sooner people will start looking for alternatives to fossil fuels 
( dead dinosaurs )
Volker
31-Aug-2005
[702]
Maybe thats good for another yurasic park? Growing dinos to make 
fuel from them?
Graham
31-Aug-2005
[703x2]
Only takes a few million years though to see the benefits
That's a fairly long investment timeframe.
Volker
31-Aug-2005
[705]
Naa, remember that in in yp everything grows much much faster.
Graham
31-Aug-2005
[706]
Jurassic Park ?
Volker
31-Aug-2005
[707]
right. Spelled it wrong. BTW we are in An-Reply here?!
Graham
31-Aug-2005
[708]
yes, we are replying to Steve's call to protest.
Volker
31-Aug-2005
[709]
Have looked there, right, there was an anounce.
Graham
31-Aug-2005
[710]
I'm not sure what the use of it is though ..you have to buy the day 
after anyway.
Kaj
31-Aug-2005
[711]
Shht! :-)
Graham
31-Aug-2005
[712x2]
if you really want to protest, get your converted to run on vege 
oil
get your car converted
Kaj
31-Aug-2005
[714]
Smell like you work at McDonalds
Graham
31-Aug-2005
[715]
Ok, buy a Toyata Prius instead then!
Kaj
31-Aug-2005
[716]
What's wrong with a bicycle?
Volker
31-Aug-2005
[717]
Dinosaurs can eat you easier. Or suvs.
Graham
31-Aug-2005
[718]
Let me see .. you live in Holland ??
Chris
31-Aug-2005
[719]
Knocking off bicycles is a sport in some US towns.  I've been lucky...
Kaj
31-Aug-2005
[720]
Ah, yes, I thought that would give me away :-)
Graham
31-Aug-2005
[721]
I'm guessing you don't live in a city with lots of dead cyclists
Kaj
31-Aug-2005
[722x2]
OK, so there's nothing wrong with bicycles, but apparently there's 
something wrong with US citizens
Is it as bad in New Zealand?
Graham
31-Aug-2005
[724x2]
I bought myself a mountain bike a couple of weeks ago.
Still healing from the wounds caused by impacting with the asphalt.
Kaj
31-Aug-2005
[726]
On your own or by a car?
Graham
31-Aug-2005
[727x2]
myself :(  Skidded against the curb when I hit it at a too shallow 
angle.
didn't see that in the manual.
Kaj
31-Aug-2005
[729x2]
:-)
Well, it's pretty flat over here
Graham
31-Aug-2005
[731]
Yeah, so in such a place, it's reasonable to bicycle .. but in the 
USA .. when you have monster upteen lane highways... may not be so 
realistic.
Kaj
31-Aug-2005
[732]
We'll see when the oil price hits the projected $200 the barrel
BrianW
1-Sep-2005
[733]
I'm pretty glad I don't have a car these days. Except, you know, 
when I have to go somewhere more than a few miles away.
Sunanda
1-Sep-2005
[734]
Graham -- sorry to hear about your injuries.

I can put the opposite case: my cycle odometer says I'm just coming 
up to 5,000 miles this year. With zero accidents or injuries; zero 
time stuck in traffic; total annual running costs of around USD150 
for servicing and parts; and a lot of health benfits.
Graham
1-Sep-2005
[735]
Good to know there are positive benefits to bicycle ownership !  
 :)
BrianH
1-Sep-2005
[736x2]
In Chicago we have a mayor who is an avid cyclist. He has been repainting 
a lot of streets on the north side to give them cycle lanes. The 
problem is that many of these streets aren't wide enough for this. 
In some cases 4-lane roads were converted to 2-lane to make room 
for the bike lanes, in some cases parking was sacrificed. On many 
roads this has caused traffic to slow to a crawl. Of course these 
bike lanes are barely used, and mostly serve as a place for drivers 
getting out of their parked cars to stand. The mayor isn't affected 
by these problems though, as he is a southsider.
If you add to that the tendency for bikes to get stolen here, the 
layout of Chicago and commuting patterns, and the efficiency of our 
public transportation, it is rare for people to use bikes here except 
for recreation and the bike messengers downtown.