World: r3wp
[View] discuss view related issues
older newer | first last |
Anton 11-May-2007 [6957x3] | view layout [ button "reset" [n: 0] button "read" [ ;remove find system/ports/wait-list system/view/event-port old-wake-event: get in system/view 'wake-event system/view/wake-event: func [port][ while [pick port 1][] ; remove and ignore all queued events false ] print n: n + 1 probe length? read http://anton.wildit.net.au/rebol/index.html ; clean queued events wait 0.0001 system/view/wake-event: :old-wake-event ;insert system/ports/wait-list system/view/event-port ] ] |
The READ + WAIT should be roughly equivalent to DO-SERVICE in your case. | |
(And you can see I commented out my first suggestion, it didn't seem to be enough.) | |
Anton 12-May-2007 [6960] | Mmm.. maybe it's good to keep the temporary removal of the event-port. I did a little more experimenting and doc here: http://anton.wildit.net.au/rebol/doc/clearing-queued-events.txt |
Robert 12-May-2007 [6961x6] | Thx. I take a look at keep trying. |
How can I avoid the console coming up, when using CALL? | |
I use async-call from Doc but it fails with: CreatProcess failed! | |
I try to launch a PDF by just providing the PDF filename. | |
Is there a native request-directory funciton available? | |
I really can't believe that the current Rebol has problems with supporting native requestors (didn't used them yet) and getting call done right... | |
Gregg 12-May-2007 [6967x2] | I seem to recall having issues with Acrobat. Let me look... |
My old issue was with making it print automatically. I used both CALL and ShellExecute with it, but I also had logic to find the actual Acrobat EXE. | |
Robert 12-May-2007 [6969] | You directly called ShellExecute? Do you have the LIBRARY definition at hand? |
Anton 12-May-2007 [6970x2] | Search for Gregg's win-shell.r file. |
I cached it from 2004. http://anton.wildit.net.au/rebol/os/windows/win-shell.r | |
Gregg 12-May-2007 [6972] | Thanks Anton. I have it here, too, if you need Robert. |
Robert 12-May-2007 [6973] | Ok, if the web-version is the actual one that's fine. |
Gregg 12-May-2007 [6974] | My win-shell module has a lot of other API funcs in it as well, for finding windows by title, etc. |
Robert 12-May-2007 [6975] | :-) Would be nice if you could either sync it here, or on HQ or send it by mail to me. |
Gregg 12-May-2007 [6976] | Will do. |
Robert 12-May-2007 [6977] | Thx |
Anton 26-May-2007 [6978x2] | insert-even-func to the rescue again. |
insert-event-func .. | |
Graham 26-May-2007 [6980] | i just use browse pdf .. and that loads up the browser, and most browsers have acrobat installed as a plugin |
Rebolek 1-Jun-2007 [6981] | small useless demo: do http://bolek.techno.cz/reb/wall-street.r |
Pekr 1-Jun-2007 [6982] | This is kind of stuff, which should be presented after R3 release, and plug-in release, in demo category ... |
Arie 1-Jun-2007 [6983] | Does somebody know how to change the color of individual lines of a text-list? |
Henrik 1-Jun-2007 [6984] | I believe that was the original reason I wrote LIST-VIEW :-) |
Gregg 1-Jun-2007 [6985] | Can't do that with text-list, but you can with LIST. LIST-VIEW is very complete though. LIST is lower level. |
Arie 1-Jun-2007 [6986] | Henrik: is that in REBGUI? |
Henrik 1-Jun-2007 [6987] | unfortunately not |
Arie 1-Jun-2007 [6988x2] | OK |
Will it be? | |
Henrik 1-Jun-2007 [6990] | I'm not sure. I have very little time to work on it right now, and R3 is coming up with VID+. |
Arie 1-Jun-2007 [6991] | Yes, I wonder what that will bring us ... |
Anton 1-Jun-2007 [6992x4] | Yes you can. |
view layout [ text-list data ["hello" "there" "Arie"] with [ append init [ iter/feel: make iter/feel [ redraw: func [face action into][ iter/color: color ;if flag-face? slf striped [iter/color: pick next colors odd? cnt] iter/color: white / 4 * (1 + mod cnt 4) if find picked iter/text [iter/color: svvc/field-select] ] ] ] ] ] | |
The new line replaces the commented line. | |
I don't like text-list, though. I would rewrite it first. | |
Arie 1-Jun-2007 [6996] | OK, I will try it. Thanks Anton. |
Gregg 1-Jun-2007 [6997] | I stand corrected. :-) I should know better than to say "you can't do that", because almost anything can be done in REBOL, it's just a question of effort and obscurity. |
Anton 1-Jun-2007 [6998] | I thought you said it to provoke someone. |
Arie 1-Jun-2007 [6999x3] | LOL |
I tried it and indeed that's a nice trick (at least it feels like one ;-) | |
But yes, REBOL always amazes me (as well as the REBOL guru's out there) | |
Gregg 1-Jun-2007 [7002] | Must have be subconscious provocation. |
Arie 1-Jun-2007 [7003] | :-) |
Terry 3-Jun-2007 [7004] | This is odd.. i fired up a .r view script link on a web page, and it launched the viewtop in the browser ;) |
Anton 3-Jun-2007 [7005] | I seem to remember that was a problem of some version of the rebol web plugin. |
Terry 4-Jun-2007 [7006] | How does one supress the creation of desktop/local folders? |
older newer | first last |