World: r3wp
[View] discuss view related issues
older newer | first last |
Graham 17-Mar-2009 [8554x2] | Which is part of my search to improve the user experience. |
I am now hding the table if someone is repeating the search....until the results appear. | |
Anton 17-Mar-2009 [8556] | Well, that approach doesn't sound bad. |
Graham 17-Mar-2009 [8557x2] | I don't think there are guidelines or best practices :( |
We all roll our own GUIs | |
Anton 17-Mar-2009 [8559x2] | Hiding the table has the side benefit of telling the user (visually) that their query was accepted, but relies on the data transfer to be slow. A negative is if the user wanted to keep looking at some of the data from the previous query while waiting for the results of the next query. |
If the table has a selection facility, and the user wanted to do something like select row 4 (and then maybe copy it or do something else) from several consecutive resultsets, then that might be disrupted by hiding and showing the table. Something to keep in mind. (Do you keep the same table, or do you remake it for each resultset?) | |
TomBon 23-Mar-2009 [8561] | hi, getting this error. ** Script Error: Face object reused (in more than one pane): none is there any solution to 'copy or clone' a layout or reuse a layout for multiple usage ? putting the layout into a object doesn't help either. same error message. I need a layout-template containing buttons, label etc. and want use this template for to 'pane' it into 20 different independent boxes. these boxes will shown 20 different numeric datas, progress bars etc. have had a look also into stylize/master but can't mix vid with facets or am I to tired to see a simple solution. builing a very complex facet from scratch is very time consuming, what is the best design for this? tom |
Steeve 23-Mar-2009 [8562] | why don't you clone yourself the layout as you said ? |
TomBon 23-Mar-2009 [8563] | how? without the variables sharing the same namespace? |
Steeve 23-Mar-2009 [8564x2] | contruct a context with variables each time you clone the layout |
layout [a: text b: button] v1: context [a: b: none] set bind copy next first v1 v1 reduce [a b] now you can construct v2, v3, V4 using the same layout | |
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" [ ] ] | |
older newer | first last |