Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Scrollpanel style

 [1/15] from: brett::codeconscious::com at: 27-May-2001 18:49


Hi Rebol/View users, I'm quite chuffed with this style so I thought I'd share it. The scrollpanel style will automatically put scroll bars around a layout spec or a face. I've not made a lot of documentation (0) but I have made a demo of the style in action. In Rebol/View: Goto http://codeconscious.com/rebsite/utility-style-demo.r No guarantees I've missed something critical - I'm still learning this stuff... Enjoy, Brett. --- Website: http://www.codeconscious.com Rebsite: http://www.codeconscious.com/index.r

 [2/15] from: carl:cybercraft at: 27-May-2001 22:05


On 27-May-01, Brett Handley wrote:
> Hi Rebol/View users, > I'm quite chuffed with this style so I thought I'd share it. The
<<quoted lines omitted: 11>>
> Website: http://www.codeconscious.com > Rebsite: http://www.codeconscious.com/index.r
Hmmm. Trying this in the Console...
>> do http://codeconscious.com/rebsite/utility-style-demo.r
I get this... ** Access Error: Cannot open /view/utility-style-demo.r ** Where: do-facets ** Near: read %utility-style-demo.r where "view" above is my rebol/view directory. Yet your script runs fine from the Desktop... ??? I also get the above error trying to run your... http://www.codeconscious.com/rebsite/scrolling-demo.r from the Console too, yet I've not had this problem with other scripts. Any ideas, anyone? As to your script, excellent work! I especially liked the Bizzare Button. (: As it happens I'd been playing with panes within panes myself of late. Try... http://homepages.paradise.net.nz/left/rebol/scripts/sprites-2.r though there's definately no gaurantee it'll behave. A Win2000 user said it just tells him "Invalid face object", over and over again. You have been warned! (: -- Carl Read [carl--cybercraft--co--nz]

 [3/15] from: gjones05:mail:orion at: 27-May-2001 6:22


From: "Carl Read"
> Hmmm. Trying this in the Console... > >> do http://codeconscious.com/rebsite/utility-style-demo.r
<<quoted lines omitted: 4>>
> where "view" above is my rebol/view directory. > Yet your script runs fine from the Desktop... ???
Script is calling: do load-thru http://www.codeconscious.com/rebsite/standard-guis.r whereas this file is found in: http://www.codeconscious.com/rebol-library/ I can't get the script to run from console or desktop, so what I'm trying to figure out is How does your version, Carl, run it from the desktop?? I'm getting some other curious behavior as I have revisited Brett's site that I am unable to reproduce. Is it /View? I'm on Win98 by the way. --Scott Jones

 [4/15] from: carl:cybercraft at: 28-May-2001 0:38


On 27-May-01, GS Jones wrote:
> From: "Carl Read" >> Hmmm. Trying this in the Console...
<<quoted lines omitted: 17>>
> trying to figure out is How does your version, Carl, run it from the > desktop??
In the normal manner is all I can say. (: It runs by entering the URL in Goto or by clicking on the script's icon in the codeconscious site.
> I'm getting some other curious behavior as I have revisited Brett's > site that I am unable to reproduce. Is it /View? I'm on Win98 by the > way. --Scott Jones
I'm using an Amiga and View1.1. Something's odd somewhere it would seem... -- Carl Read [carl--cybercraft--co--nz]

 [5/15] from: brett:codeconscious at: 28-May-2001 0:05


> Hmmm. Trying this in the Console... > >> do http://codeconscious.com/rebsite/utility-style-demo.r
<<quoted lines omitted: 8>>
> from the Console too, yet I've not had this problem with other > scripts. Any ideas, anyone?
As Scott points out - there is a coding error, but it still works because of a redundant call (view-script loads up standard-guis.r first). I think the problem here is that calling the script from the desktop affects the current directory, whereas from the console the current directory would be unmodified and thus the script cannot be found (being a path). If I'd used a path-thru statement all would have been well. In fact I might just do that.
> As to your script, excellent work! I especially liked the Bizzare > Button. (: As it happens I'd been playing with panes within panes
<<quoted lines omitted: 3>>
> said it just tells him "Invalid face object", over and over again. > You have been warned! (:
Thanks - and yours works well! (Win NT 4.0) Brett.

 [6/15] from: brett:codeconscious at: 28-May-2001 0:05


Hi Scott.
> Script is calling: > do load-thru http://www.codeconscious.com/rebsite/standard-guis.r > whereas this file is found in: > http://www.codeconscious.com/rebol-library/
Thanks for this. I tested locally but I can't test on-line properly because of the caching problem I have - I can't see updates.
> I can't get the script to run from console or desktop, so what I'm > trying to figure out is How does your version, Carl, run it from the > desktop??
Most likely just via the icons. In the Rebol.com folder -> Sites - > Code C. -> Experiments -> Utl. Styles
> I'm getting some other curious behavior as I have revisited Brett's site > that I am unable to reproduce. Is it /View? I'm on Win98 by the way. > --Scott Jones
Got me worried - what sort of curious behaviour? I know my coding is a bit odd now and then but still :) I've just updated my site now (again) so maybe that fixes a few things. Brett.

 [7/15] from: gjones05:mail:orion at: 27-May-2001 9:41


From: "Brett Handley"
> > I'm getting some other curious behavior as I have revisited Brett's
site
> > that I am unable to reproduce. Is it /View? I'm on Win98 by the
way.
> > --Scott Jones > > Got me worried - what sort of curious behaviour? I know my coding is a
bit
> odd now and then but still :) > > I've just updated my site now (again) so maybe that fixes a few
things. Hi, Brett, All is well now after reloading. Very cool scrolling effects; I'll have to study this more closely later. The "curious behavior" was difficult to describe because it was not reporducible. As examples, once, when I clicked on "Library List" on your main desktop page, it wouldn't load (I don't recall the error). Next time it would load fine. This happened to several links on several pages on your site. I couldn't figure out if there was a sequence issue (implying dependency issue) or not. Now it all works fine. Maybe my computer was just having a "bad hair day". =^\ The several times that I have tried to debug some of the distributed stuff, I have find it difficult. I don't know if it is just my lack of full understanding of how REBOL/View is using the cache, etc, but I have found it to be tougher than it would seem like it should be. Maybe if there were better documentation and/or howto I might understand it better. Maybe if I just stopped whining and got to work I'd eventually figure it out! :-) Really nice effects. Thanks for sharing this code. By the way, if I am counting correctly on my fingers and toes, isn't it rather early there? --Scott Jones

 [8/15] from: agem:crosswinds at: 27-May-2001 18:07


Maybe update-problem, but reporting: In the library-list: do load-thru http://www.codeconscious.com/rebol-library/view-script.r do load-thru http://www.codeconscious.com/rebol-library/system-tools.r ; add this! : do load-thru http://www.codeconscious.com/rebol-library/standard-guis.r view-scripts.r loads the original 'scroll-face, which does not have /width, seems to be called size. The lib-list want's your modified, which is in %standard-guis.r with it it runs. -Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 27.05.01, 09:49:18, schrieb "Brett Handley" <[brett--codeconscious--com]> zum Thema [REBOL] Scrollpanel style:

 [9/15] from: agem:crosswinds at: 27-May-2001 18:17


Hi Brett Library list ii: I would heavily wish people would put their starter-scripts in the root-dir, since makes library/image-dirs subdirs and live here much easier. On linux security-questions are written like with /core to the console, which i mostly have - hm, somewhere under something under.. means the program looks hanging with first downloads.. and your viewer is so handy for viewing non-/view-able library-scripts.. :) oops. Did i mention i like the scrollpanel? Handy. -Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 27.05.01, 09:49:18, schrieb "Brett Handley" <[brett--codeconscious--com]> zum Thema [REBOL] Scrollpanel style:

 [10/15] from: brett:codeconscious at: 28-May-2001 8:05


> The "curious behavior" was difficult to describe because it was not > reporducible. As examples, once, when I clicked on "Library List" on
<<quoted lines omitted: 3>>
> (implying dependency issue) or not. Now it all works fine. Maybe my > computer was just having a "bad hair day". =^\
I realised later than most original post quoted codeconcscious.com rather than www.codeconscious.com. That could possibly make some confusion in my scripts. Alternatively, your suggestion of the dependency related issue is probably right. I'll have to use netscape to manually download each script and read it to check though :-/
> The several times that I have tried to debug some of the distributed > stuff, I have find it difficult. I don't know if it is just my lack of
<<quoted lines omitted: 4>>
> figure it out! > :-)
I know what you mean. I figure my next job will be to date/time stamp all the index files - which might reduce some of the issues. Though I'll expect there will be more as this way of coding is used more heavily.
> Really nice effects. Thanks for sharing this code. By the way, if I am > counting correctly on my fingers and toes, isn't it rather early there? > --Scott Jones
Thank you kindly. And well actually it was late - just after midnight, or early depending on your sleeping patterns :) And now it is early (for me) - 8am. Brett.

 [11/15] from: brett:codeconscious at: 28-May-2001 8:09


Hi Volker, Thanks for your message. Actually I've changed view-script to point to standard-guis.r already. You must still have the older version. Try reloading it. If that doesn't work then you probably have a caching problem like me. ----- Original Message ----- From: "Volker Nitsch" <[agem--crosswinds--net]> To: <[rebol-list--rebol--com]> Sent: Monday, May 28, 2001 4:07 AM Subject: [REBOL] Re: Scrollpanel style Maybe update-problem, but reporting: In the library-list: do load-thru http://www.codeconscious.com/rebol-library/view-script.r do load-thru http://www.codeconscious.com/rebol-library/system-tools.r ; add this! : do load-thru http://www.codeconscious.com/rebol-library/standard-guis.r view-scripts.r loads the original 'scroll-face, which does not have /width, seems to be called size. The lib-list want's your modified, which is in %standard-guis.r with it it runs. -Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 27.05.01, 09:49:18, schrieb "Brett Handley" <[brett--codeconscious--com]> zum Thema [REBOL] Scrollpanel style:

 [12/15] from: brett:codeconscious at: 28-May-2001 8:25


----- Original Message ----- From: "Volker Nitsch" <[agem--crosswinds--net]> To: <[rebol-list--rebol--com]> Sent: Monday, May 28, 2001 4:17 AM Subject: [REBOL] Re: Scrollpanel style Hi Brett
> Library list ii: > > I would heavily wish people would put their starter-scripts > in the root-dir, since makes library/image-dirs > subdirs and live here much easier.
Do you mean everything I have in www.codeconscious.com/rebol-library/ should go in www.codeconscious.com/? If so, eek - codeconscious.com supports a website as well and who knows what in the future. I figured having one directory called rebol-library would enable me to store relatively stable scripts away from more volatile stuff. Also, it doesn't seem to be a problem for www.rebol.com which has a number of directories. Currently I have www.codeconscious.com/ ...rebol-library/ ...rebsite/ ...rebol/ ; <- website html files. Or maybe it should be www.codeconscious.com/ ...rebol/ ......rebsite/ ......library/ Which I started with and then changed because I wanted to seperate *.html from *.r - the html files may have been bookmarked.
> On linux security-questions are written like with /core > to the console, which i mostly have - hm, somewhere under something > under.. > means the program looks hanging with first downloads..
Oh. Ugly - bit of a show stopper for user applications.
> and your viewer is so handy for viewing non-/view-able > library-scripts.. :) > > oops. Did i mention i like the scrollpanel? Handy.
Thanks :) Brett.

 [13/15] from: agem:crosswinds at: 28-May-2001 2:55


General rule of /view-sandbox is AFAIK: read access to public cache, read/write-access to scripts dir and all subdirs beyond. That means you should organize like %reb-starters/ %reb-starters/reb-library/ %reb-starters/reb-images/ ... this way the script in %reb-starters/ starts with write-allow for all sub- dirs. If they call other scripts, that allowness stays, so you can place rebol[] do %demos/the-demo.r there and in a %demos/ script do %../reb-lib/something . You have %somewhere/reb-starters/ and %somewhere/reb-library/ parallel, and rebol thinks: »he goes out of the sandbox!! time to ask!« ;-) personally i like this onionskin-thinking for security, keeps setting-stuff simple. start a script from the Desktop like [rebol[] probe secure query] to check it :) -Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 27.05.01, 23:25:10, schrieb "Brett Handley" <[brett--codeconscious--com]> zum Thema [REBOL] Re: Scrollpanel style:
> ----- Original Message ----- > From: "Volker Nitsch" <[agem--crosswinds--net]>
<<quoted lines omitted: 8>>
> > subdirs and live here much easier. > Do you mean everything I have in www.codeconscious.com/rebol-library/
should
> go in www.codeconscious.com/? > If so, eek - codeconscious.com supports a website as well and who
knows what
> in the future. I figured having one directory called rebol-library
would
> enable me to store relatively stable scripts away from more volatile
stuff.
> Also, it doesn't seem to be a problem for www.rebol.com which has a
number
> of directories. > Currently I have
<<quoted lines omitted: 8>>
> ......library/ > Which I started with and then changed because I wanted to seperate
*.html
> from *.r - the html files may have been bookmarked. > > On linux security-questions are written like with /core > > to the console, which i mostly have - hm, somewhere under something > > under.. > > means the program looks hanging with first downloads.. > Oh. Ugly - bit of a show stopper for user applications.
Yes :'-(

 [14/15] from: brett:codeconscious at: 28-May-2001 21:49


Thanks for the info Volker. That probe secure query was illuminating. I'm not quite sure yet what I'll do because I'm not happy about changing the organisation of the directories just yet. I'll look at this again because I think you are right that the security prompt should be avoided. Brett. ----- Original Message ----- From: "Volker Nitsch" <[agem--crosswinds--net]> To: <[rebol-list--rebol--com]> Sent: Monday, May 28, 2001 12:55 PM Subject: [REBOL] Re: Scrollpanel style General rule of /view-sandbox is AFAIK: read access to public cache, read/write-access to scripts dir and all subdirs beyond. That means you should organize like %reb-starters/ %reb-starters/reb-library/ %reb-starters/reb-images/ ... this way the script in %reb-starters/ starts with write-allow for all sub- dirs. If they call other scripts, that allowness stays, so you can place rebol[] do %demos/the-demo.r there and in a %demos/ script do %../reb-lib/something . You have %somewhere/reb-starters/ and %somewhere/reb-library/ parallel, and rebol thinks: »he goes out of the sandbox!! time to ask!« ;-) personally i like this onionskin-thinking for security, keeps setting-stuff simple. start a script from the Desktop like [rebol[] probe secure query] to check it :) -Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 27.05.01, 23:25:10, schrieb "Brett Handley" <[brett--codeconscious--com]> zum Thema [REBOL] Re: Scrollpanel style:
> ----- Original Message ----- > From: "Volker Nitsch" <[agem--crosswinds--net]>
<<quoted lines omitted: 8>>
> > subdirs and live here much easier. > Do you mean everything I have in www.codeconscious.com/rebol-library/
should
> go in www.codeconscious.com/? > If so, eek - codeconscious.com supports a website as well and who
knows what
> in the future. I figured having one directory called rebol-library
would
> enable me to store relatively stable scripts away from more volatile
stuff.
> Also, it doesn't seem to be a problem for www.rebol.com which has a
number
> of directories. > Currently I have
<<quoted lines omitted: 8>>
> ......library/ > Which I started with and then changed because I wanted to seperate
*.html
> from *.r - the html files may have been bookmarked. > > On linux security-questions are written like with /core > > to the console, which i mostly have - hm, somewhere under something > > under.. > > means the program looks hanging with first downloads.. > Oh. Ugly - bit of a show stopper for user applications.
Yes :'-(

 [15/15] from: agem:crosswinds at: 28-May-2001 17:40


I overlooked this possibility: The ..thru - functions have an option /to -- Specify a file target, not cache. This way you could organize the webpage in directories, but write them to the directory of the script. That would also help your style of load-thru http:/xy/something load %something ;the second time And one could copy the cache-directory to some other place, and downloads would work well to. Without /to downloads go allways in the public cache based on url, so if you copy the dir it will work bad with the net. Ive once seen macs, where you can simply move folders with data & applications without installation, put the needed stuff in the rucksack and go camping. without worry script says »oops, boss, something isn't installed here«. rebol can do that better :) -Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 28.05.01, 12:49:57, schrieb "Brett Handley" <[brett--codeconscious--com]> zum Thema [REBOL] Re: Scrollpanel style:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted