World: r3wp
[View] discuss view related issues
older newer | first last |
Ashley 26-Jun-2006 [5220] | I think it is not worth to use make function! ... For anything less than a large app/framework I tend to agree. However, in the later case the sum of many minor improvements can make a noticeable/measurable improvement; but it all depends on what we are optimizing for (code, load time, run time, memory, etc). |
DideC 27-Jun-2006 [5221] | Does anybody have the Cyphre's View console script somewhere on it's HD ? Can't find it in rebol.org |
Graham 27-Jun-2006 [5222x2] | go to cyphre's rebsite |
It's there. | |
DideC 27-Jun-2006 [5224] | Ah, thanks |
Cyphre 27-Jun-2006 [5225] | Ashley: yes, this can be noticable for really large frameworks...say with ten thousands functions and more. There you can gain few miliseconds with this optimization during the load time. |
Pekr 27-Jun-2006 [5226] | few milliseconds during the load time? Is it even noticable? :-) |
Cyphre 27-Jun-2006 [5227] | that was my point ;) Well if you create about 1milion functions then you can gain for about 50% of time on my CPU during code loading(4seconds instead of 8). But I haven't seen a Rebol project with so many functions.(but I'm not saying it cannot be developed ;)) |
Janeks 29-Jun-2006 [5228] | Q: Is it possible to create an app that at the same time reads two data/ports. F.ex. load an image from net and at the same time read data from GPS and display it on old image? |
Graham 29-Jun-2006 [5229] | use async for this |
Volker 29-Jun-2006 [5230] | a simple "aktiv: wait[port1 port2]" would be enough, with open/diirect or open/no-wait. or such. Never remember what these all do ;) |
Janeks 29-Jun-2006 [5231x2] | So am I right: I need to define before ports: gps-port: open .... url-port: open ... ??? ( read doesnot fit here?) user-port: ??? also is needed and then loop with wait [ gps-port url-port user-port ] [ do I need here to catch what port it is and do apropriate actions ] |
Gone to Async group! | |
Anton 29-Jun-2006 [5233] | That's right, READ and WRITE are like a wrappers for OPEN and CLOSE. eg. READ url is equivalent to: OPEN port .... copy data here .... CLOSE port |
Volker 29-Jun-2006 [5234x4] | some-port: open/no-wait/binary tcp://something forever[ active: wait REDUCE[ gps-port url-port user-port ] [ new-data: copy active ; new-data is some #{...} ] |
and decide what to do based on active, if same? avtive gps-port[..] | |
there are also some automatics which accosiate a function with a port, but i find this way easier to trace to get started. | |
and then here is async, which is a bit faster. Because /no-wait still does some waiting for error-checks. for async you need a library, by gabriele, romano or DocKimbel. Or deep knowledge. | |
[unknown: 10] 30-Jun-2006 [5238] | perhpas a silly question, but how do I determine the name of a function mi currently in ? As in, Im creating functions with a random-name and I would like to know in what function-name im currently in... Is this possible ??? Like a 'SELF or 'ME ? |
Volker 30-Jun-2006 [5239] | Not officially. IIRC there is some trick with triggering an error, somewhere on the ML. |
Anton 1-Jul-2006 [5240] | That's not easy to figure out. |
Janeks 18-Jul-2006 [5241] | Where to find some documentation about systray in Rebol? |
Graham 18-Jul-2006 [5242x2] | rebol.com |
http://www.rebol.org/cgi-bin/cgiwrap/rebol/search.r?find=systray&form=yes | |
Janeks 18-Jul-2006 [5244] | Thanks - already found! What I am missing is what else words I could use for tray controls and messages received? F.ex. Can I activate tray meny un left click? Is it possible to make submenus for systary icons? |
Graham 18-Jul-2006 [5245x2] | double click works for me |
Cyphre is working on systray enhancements .. stay tuned | |
Pekr 18-Jul-2006 [5247] | there is one bug found with systray :-( you get events only if console window is visible .... |
Cyphre 18-Jul-2006 [5248] | This bug is not related to systray directly (ie the current Systray support works fine) but it is related to system port. |
Janeks 18-Jul-2006 [5249x2] | Regarding bug: Script of Gabriele works fine for me even no console window is visible. Then the question is - does it (systray opeartions) affects other event waiting on ports (f.ex. interface events, loading file from internet) |
Is it possible to change tray icon? | |
Cyphre 18-Jul-2006 [5251] | no at the moment |
Sunanda 18-Jul-2006 [5252] | . (apologies for the dot, but the web shows this group has failed to sync on my machine) |
Josh 18-Jul-2006 [5253] | Iterated faces. A good reference to look at? The Wiki seems to be missing some helpful info |
Henrik 18-Jul-2006 [5254] | josh: http://www.rebol.com/docs/view-system.html#section-10 |
Anton 19-Jul-2006 [5255] | do http://home.wilddsl.net.au/anton/rebol/gui/iterated/iterated-face-drag.r do http://home.wilddsl.net.au/anton/rebol/gui/iterated/iterated-face-drag-drop.r |
Janeks 20-Jul-2006 [5256] | How to change part o f a color in gradient? F.ex. at 535x100 box teal 30x315 effect [ draw [ fill-pen linear 0x0 0 315 90 1 1 red yellow green box 0x0 30x315 ] ] Now I have each color equal, but how to make so that f.ex. green is ~50%, Yellow ~30% and red ~20% of box? |
Cyphre 20-Jul-2006 [5257] | This is not possible in the current version of DRAW. You have to 'compose' more boxes to create linear gradients with different ratio of color spread at the moment. |
Janeks 20-Jul-2006 [5258x2] | Is it possible to rotate feels, f.ex. progress bar so that it will be verical? |
Vertical | |
Graham 20-Jul-2006 [5260x2] | just change the size |
so, progress 5x30 instead of 30x5 | |
Janeks 21-Jul-2006 [5262x3] | I need that progress color will go up! |
Ah ok - I was just do not belive that unti testing mysefl! ;-) | |
Next question: How to tell that text in 'area face should be auto wrapped? | |
Anton 21-Jul-2006 [5265] | These are all ways of specifying the same thing: view layout [area wrap] view layout [area para [wrap?: yes]] view layout [area with [para: make para [wrap?: yes]]] view layout [area with [append init [para: make para [wrap?: yes]]]] and you can test a little bit faster by making the area nice and thin: view layout [area 40 wrap] |
Janeks 21-Jul-2006 [5266] | How is about clipboard for last version of view? Is it possible to insert in clipboard port image? |
Henrik 21-Jul-2006 [5267] | only text is allowed |
Henrik 23-Jul-2006 [5268x2] | I have a small problem regarding event handling in TOOLBAR: Each icon consists of an icon frame face with a pane that contains the icon image and a text face. The icon frame face has an ENGAGE event set for highlighting, doing the action of the button, etc. The containing faces both have their feel set to NONE. Now when clicking on either the text and the image, the event seems to correctly bubble up to the icon-frame face, but OVER and AWAY events correspond to the face in which the event occurs, which can be for example the text face. So if you click on the text face and then drag away, the click is no longer valid, even if the mouse is still over the icon-frame face, because it detects OVER and AWAY for the face, I'm clicking and not the parent face. This causes some clicks to be lost if you are clicking at the edge of the text face and accidentally moving the mouse away from the text face, say, the space between the icon and the text which is a natural place to click. I've tried using DETECT, but this is greatly inefficient, because it processes all events. I've noticed that the standard ICON face in VID behaves the same way. which I think is incorrect. Is there a way to transfer OVER and AWAY information from the parent face? |
view layout [i: icon "Hello!"] demonstrates this: Click and hold on the text and drag towards the icon. Or do the same from the icon towards the text. The click is lost. | |
older newer | first last |