World: r3wp
[View] discuss view related issues
older newer | first last |
Pekr 16-May-2005 [1105] | One of my friends who is back to Rebol after he tried other tools :-), would like to know, if there is any docs available on low-level = face-level View work. I found some, but he would like to see some comments onto how to create own styles. IIRC Graham or someone else tried to provide such descriptions ... |
[unknown: 10] 16-May-2005 [1106] | I expect that the View 1.3 release will bring more inside / detailed documention as well on view. Although i realy hope RT can fix that intime its a absolute must :-) |
Gabriele 16-May-2005 [1107] | petr: i think the best info available is that on the rebgui's site. |
[unknown: 10] 16-May-2005 [1108] | the SVG view can be firefox/mozilla... thats why i asked if view can save/svg ;-) that would extend Rebol View into a Very usefull SVG tool as well !! |
Gabriele 16-May-2005 [1109] | about SVG: i don't think that will be supported natively. it's not that hard to do that in rebol, a cyphre has something working already. |
[unknown: 10] 16-May-2005 [1110] | A great... if thats possible im happy already :) |
JaimeVargas 16-May-2005 [1111] | Rebolinth anyone can write an SVG emitter, just like there is a Flash emitter. I think this complex and unique enough that it shouldn't be included in the base. But 3rd party script will do. |
Pekr 16-May-2005 [1112] | I know - but RebGUI will not explain me how to construct styles, no? Those thigs like init method description etc. IIRC there was some attempt to write it down, so, links apreciated :-) |
shadwolf 16-May-2005 [1113x4] | I solve my problem the good formula is sld/data: ((related-offset/y - (40 * scale)) / (docu/pane/size/y - docu/size/y ) ) |
thanks to DideC, Volker and most specificly to Brock witch helps me a lot | |
the problem was complicate to understand and chatting with brock help me a lot to think | |
and find the solution | |
Brock 16-May-2005 [1117] | I'm glad you figured it out... I"m still scratching my head :-) |
shadwolf 16-May-2005 [1118x2] | hum it's more by chance than because I really understoud the meaning of this algorithm ;) |
well part of chance is important too :) | |
Allen 17-May-2005 [1120] | Mental blank. How to set the selected item in a rotary? |
Graham 17-May-2005 [1121] | make it the first item in the list? |
Allen 17-May-2005 [1122] | I've been unable to to change it once displayed. But I've got a work around where I change the data list before it is created. that gets me out of trouble for now. |
Ammon 17-May-2005 [1123x7] | Hm... Seem to be recalling... |
Yes, that was it... | |
view layout [this-rotary: rotary "one" "two" "three" [probe face/text probe face/data] button "change rotary" [this-rotary/ data: find this-rotary/data "three" show this-rotary]] | |
Dang Edit Mode... | |
Watch the line wrap there... | |
;a little cleaner... view layout [ this-rotary: rotary "one" "two" "three" button "change rotary" [this-rotary/data: find this-rotary/data "three" show this-rotary] ] | |
You should note that because Rotary uses the current index of its data facet that you may have to use 'head on the 'data to be able to 'find the value your looking for... | |
Allen 18-May-2005 [1130] | thanks ammon, I was try to do it via face/texts block |
MikeL 18-May-2005 [1131] | Allen - you may not be interested if Carl's rotary serves your needs but I find the FX5 rotary that Frank Sievertsen created some years ago to be a bit more usable because he added the left and right arrow navigation to the base rotary. Clicking on the rotary itself rolls it forward but with the FX5 one, you have a back option instead of having to cycle through the list. The rotary is still a bit cumbersome without key board support that is specific to the widget when it has focus. |
Allen 18-May-2005 [1132] | Thanks Mike. Not sure if any of Franks stuff is avail anymore, the site that he hosts the scripts on seems to have disapeared. I also have my own drop-down style, but for this task the built in rotary was sufficient...just |
Anton 19-May-2005 [1133] | ...and the inbuilt rotary allows to go back using the alt-click (right mouse button). |
MikeL 19-May-2005 [1134] | Thanks Anton. I would have never ever tried that. I don't find mention of that in the doc anywhere but now find that the FX5 one supports alt-click as well but also gives the visual cue's via the small arrows. |
Anton 19-May-2005 [1135] | layout [rotary with [?? feel]] ; when you would have become curious |
Henrik 27-May-2005 [1136x2] | is it possible to remove the REBOL - .... part of a window in View? "REBOL - My Window" Would become "My Window" |
sorry, I am referring to a window title | |
Anton 27-May-2005 [1138] | You can do it using Windows API... |
Robert 27-May-2005 [1139x3] | I just hacked the graph-layout stuff found in Rebol-Framework into a standalone using the new AGG stuff. Very cute and fast!! Take a look at: http://www.robertmuench.de/download/graph-layout.r |
It's not perfect yet, so please feel free to improve (and let me know). Next thing is to add boxes for nodes. | |
So that those can be clicked... | |
Henrik 27-May-2005 [1142] | yes, very fast indeed. |
Robert 27-May-2005 [1143] | Updated to show boxes. Now, is there any way to associated an ID with a box and get it back if the users clicks inside the box? |
Anton 27-May-2005 [1144] | LAYOUT sets face/var to be the name of the set-word, eg. layout [ my-btn: btn ] now my-btn/var == 'my-btn so you could use face/var, or perhaps face/user-data is better. |
Robert 27-May-2005 [1145] | Sorry, a box drawn with the DRAW dialect. |
Anton 27-May-2005 [1146x6] | Aah... :-) |
You know the xy position of each box, right ? | |
... and its size. So you make a canvas/feel to trap the mouse clicks, then search your nodes to find the one affected. | |
Your nodes need DEPTH, so they can be depth-arranged. Double-click can send a node to the head of nodes and shift-double-click can send a node to the tail. | |
You will need a within?-like function for determining if a mouse-click is in a node box or not. | |
You'd better add node/size, since the user will inevitably want to resize node boxes... | |
Pekr 27-May-2005 [1152x3] | Could you try following on your system? Run new View alpha, go to desktop, run Bubbles and then start Particles demo - both demos slow down dramatically. Those are separated processes though (that can be proven by closing the Desktop - demos will stay running). Cyphre's theory is, that it is normal, and that CPU usage is high and so OS have to divide its CPU time between the two. But normally my PC can run several videos without noticable glitch, I wonder if Rebol will give it a hard time ... |
Ah, CPU takes 100% - is that correct that Rebol does so? | |
simple Particles demo takes 80% of CPU time ... that is not normal behavior imo ... | |
older newer | first last |