World: r3wp
[View] discuss view related issues
older newer | first last |
TomBon 23-Mar-2009 [8566x2] | will try immediatly, thx steeve |
doesn't work as expected but will take a look again after some sleep. thx for the code snippet steeve | |
Anton 23-Mar-2009 [8568] | open-test-window: does [context [my-text: my-button: none view/new layout [my-text: text "hello" my-button: button "test"]]] open-test-window open-test-window do-events |
Henrik 31-Mar-2009 [8569] | is there a simple way to tell whether a window was opened with INFORM or VIEW? |
Dockimbel 31-Mar-2009 [8570] | Try by searching for the window face in system/view/pop-list. If found there, then the window has been opened with INFORM or SHOW-POPUP. |
Henrik 31-Mar-2009 [8571] | thanks |
Anton 31-Mar-2009 [8572x2] | Also check window-face/options |
Probably checking system/view/pop-list is all you need to do, but you can notice that face/options is different in normal windows vs pop-up windows. | |
Pekr 10-Apr-2009 [8574] | If someone has some spare time to spend, I would like to have some tests being done for following case - In our PC shop, we mounted big LCD TV for some message/advertising purposes. The problem is, that the screen is placed vertically. I wrote small news scroller script, which eats some CPU cycles, but is still OK and very simple. But - when I tried it on that vertically placed TV, it is practically unusable :-( - too jerky. I would like to know, if it is a driver issue, or just another View kernel defficiency? Should there be a reason why it should be a difference in performance? Video works OK for example. Here's the script to test - http://www.xidys.com/rebol/news-scroller-r2.r , so if you are willing to mess with your PC settings, go ahead :-) (not sure your icon placement will persist ...) |
Graham 10-Apr-2009 [8575] | there are drivers that will rotate the screen display. |
Pekr 10-Apr-2009 [8576] | I know - they all do. But I would like to know, if you will notice similar slow-down/jerkiness ... |
sqlab 10-Apr-2009 [8577] | did you try using the rate attribute? |
Pekr 10-Apr-2009 [8578] | no .... what do you mean? |
sqlab 10-Apr-2009 [8579] | An integer! or time! that specifies periodic timer events for a face. This is used for animation or repetitive events (such as holding the mouse down on certain types of user interface styles). An integer! value indicates the number of events per second. A time! provides the period between events. The timer event is sent to the face feel Engage function with an event type of time. from http://www.rebol.com/docs/view-system.html |
Pekr 10-Apr-2009 [8580x2] | OK, I know - but why do you think it would make any difference? You are asking me to change it in order to do some fps tests? |
added fps counter to the file. No difference for rotated display on my notebook, the same report received from Cyphre. So - it has to be some bad driver on the testing PC. Case closed (hopefully), thanks for assistance ... | |
Graham 15-Apr-2009 [8582] | Is there any way to detect where the mouse is after a double click? I want to popup a menu where the mouse is ... |
Geomol 15-Apr-2009 [8583] | Graham, the engage function takes 3 parameters: face, action and event. The mouse offset in the face is event/offset. Then you have face/offset and face/parent-face/offset. Adding all, and you get the mouse offset on the screen. |
Graham 15-Apr-2009 [8584] | ahh.. I wonder if I can hook into that in rebgui |
TomBon 19-Apr-2009 [8585] | visualisation, does somebody knows how to create a map like this in rebol? a qubic map: http://gdmap.sourceforge.net/img/gdmap-preview.png some more examples and radial maps of this are here: http://wiki.ubuntuusers.de/Festplattenbelegung?highlight=verzeichnisserstell A hint to a source, algo or raw concept etc. would be nice. especial the calculation how to find and place to the proper position within the workspace is what I am looking for. |
Geomol 19-Apr-2009 [8586] | Have you looked at this paper? http://www.win.tue.nl/~vanwijk/ctm.pdf It's with explanation, algorithm and everything. Port it to REBOL! :-) |
TomBon 19-Apr-2009 [8587] | great geomol! exactly I was looking for. |
amacleod 20-Apr-2009 [8588] | I'm have trouble keeping an inform window in front of the parent window. All otehr inform windows remain in front but this one will hide behind parent if I clcik on hte parent. All other modal characteristics remain - meaning I can not do anything in the parent until I close the inform window... |
Henrik 21-Apr-2009 [8589] | am I right that an INFORM window can't be used with INSERT-EVENT-FUNC or is there a way around that? |
Dockimbel 21-Apr-2009 [8590x2] | INSERT-EVENT-FUNC is inserting events in system/view/screen-face/feel while INFORM uses system/view/window-feel as window's feel object. |
You can try hacking system/view/window-feel to process events from system/view/screen-face/feel like that (quick hack, untested) : svwf: second get in system/view/window-feel 'detect insert svwf bind [system/view/screen-face/feel face event] first pick svwf 5 | |
Henrik 21-Apr-2009 [8592] | hmm... I don't think I want to do that. I'll do something with view instead. |
Henrik 22-Apr-2009 [8593x3] | there is no window list for ordinary windows, like there is for INFORMs with system/view/pop-list? |
system/view/screen-face/pane seems to be the solution. | |
Doc, it looks almost as if you are right, but I haven't gotten it to work yet, i.e. the feel for the INFORM does not respond like it should. | |
Graham 23-Apr-2009 [8596x5] | I've got this puzzling problem. I have a function that brings up a rebgui window with some elements in it. The elements are defined as local to that function. The function is invoked by clicking on a table element in another window. |
Now if I double click instead in the first window instead of single click to bring up that function, the named variables declared as local are now none! | |
If I don't make them local, but leave them as global, then there is no problem. | |
the double click action is an empty block | |
Hmm. Doesn't happen in VID so must be a rebgui issue. | |
TomBon 23-Apr-2009 [8601x3] | ; I need 100 rows like these both samples with unshared data access for each row. ; I have also tried with stylize/master (panel with) to construct/compose a master ; row like this but doesn't succeed. any change to make this work? list-func: func [] [ layout/tight [across x: text "x" y: text "y" z: progress 0.5 w: box 40x20 effect [ draw arrow blue rotate 60 ] ] ] view layout [ a: box 300x50 b: box 300x50 do [a/pane: list-func] do [b/pane: list-func] btn "set a" [a/data: [x/text: "1" y/text: "2" z/data: 0.8 w/effect: [ draw arrow red rotate 180 ] ] show a ] btn "set b" [b/data: [x/text: "1" y/text: "2" z/data: 0.8 w/effect: [ draw arrow red rotate 180 ] ] show b ] btn "set" [x/text: "1" y/text: "2" z/data: 0.8 w/effect: [ draw arrow red rotate 180 ] show b ] ] quit |
or how to supply data to a standard list containing progress and draw elements like this one above? | |
view layout [ below p-list: list 550x180 [ across origin 2x2 chk: check true a1: text wrap 100 a2: text wrap 100 pg1: progress 40x20 0.5 pg2: progress 40x20 0.2 a3: text wrap 20 arr-1: box 40x20 effect [ draw arrow red rotate 180 ] ] supply [ if count > length? t [face/show?: false exit] face/show?: true face/text: t/:count/:index ;; face/data: d/:count/:index ] btn "set" [ ] ] | |
Gregg 26-Apr-2009 [8604] | LIST doesn't iterate styles that need state (IIRC). I would generate the layout dynamically and put the whole thing into a scrolling pane, unless that ends up being too slow or memory intensive. |
Anton 26-Apr-2009 [8605] | I agree. It's very difficult to make a lot of styles behave properly when iterated by a LIST. (And I've tried, believe me.) It's better to make a window full of real faces and scroll your data through them yourself. |
TomBon 26-Apr-2009 [8606] | thx for direction gregg and anton, will create a custom face for this. |
Maxim 1-May-2009 [8607x3] | anyone had issues with view popups when inserting a custom event-handler? I'm doing something in view, nothing patched, wake event left as-is... I have an inserted an event-handler, and the moment I click on a choice, all the events stop... even time events. I don't even receive events at my handler, so its not a "returning none from event-handler" type bug... any ideas, fixes, similar unsolvable observations? |
this is mighty strange... doesn't seem related to the event handler finally... I commented-out that part of my code and the choice still hangs my app! | |
found it... related to some hierarchichal library loading... which inadvertently ended up loading glayout which replaces the popup handling by its own. so all is good... sorry for jumping the gun. | |
jocko 2-May-2009 [8610] | Is 'image-filter implemented in R2 ? Or is there another interpolation means to improve the display of an image when changing it's size? Of course, I do not want to use external means like ImageMagick. |
Henrik 2-May-2009 [8611] | jocko, only for upwards scaling unfortunately. No, you can't make good looking thumbnails in R2. :-/ |
jocko 2-May-2009 [8612] | I am not looking for thumbnail generation, but for image display with rescaling with fractional zoom factor (let's say between 0.5 and 2.0). When using effect resizing in a layout, the interpolation mode is nearest. Is it possible to set it differently (i.e. bilinear) ? |
Henrik 2-May-2009 [8613] | I'm not sure the View engine supports filtering at all. The DRAW engine does for upward scaling, but not downward scaling < 1. I only mentioned thumbs, because it's a common scenario. :-) |
jocko 2-May-2009 [8614] | ok, anyway, to my opinion, it'a a must for the R3 engine. |
Henrik 2-May-2009 [8615] | R3 does this elegantly already: It's based only on DRAW and all options for filtering from AGG are exposed. It fully supports high quality down and upscaling. :-) |
older newer | first last |