World: r3wp
[View] discuss view related issues
older newer | first last |
Pekr 15-Aug-2005 [2212x4] | hmm, even backeffect is buggy .... even without resizing it does not cover whole background, oh my ... |
it seems to me, that backeffect is recalculated wrongly, if 'resize window option is used. Can anyone confirm? It seems as low-level buffering bug - I can see background screen underneath :-) | |
view/options layout [backeffect compose [gradient 1x1] btn "Quit" [quit]] [resize] | |
... sorry if there is bug in above code, wrote it off-hand ... | |
Anton 15-Aug-2005 [2216x4] | Cool James, but it can be yet more elegant, using a single iterated face instead of four (one for each column), but it's not a concern for your app, as you have a fixed, small number of columns (4). If it was a grid of large or "infinite" width, then you would better program the list's pane function yourself. |
Pekr, this is an old problem, as I recall. Now what was the solution again..? | |
;Found it: You have to WAIT: view/new lay: layout [size 200x200 bd: backdrop blue effect [gradient]] bd/size: lay/size: lay/size + 40x40 ;== 240x240 show lay wait 0.01 | |
You can notice some other quirky bugs related to resizing the window and backdrop, too. | |
Chris 15-Aug-2005 [2220x2] | ; It seems snappier to apply backdrop and effects to 'lay itself, and works with resize: lay: layout [size 200x200 backcolor blue] lay/effect: [gradient] view/options lay [resize] |
'Seems' being the operative word -- I haven't explored potential downsides... | |
Anton 15-Aug-2005 [2222] | Yes, that's probably better. Pekr, BACKCOLOR and BACKEFFECT change the color and effect of the window face, while BACKDROP creates a new face and puts it in the window-face/pane (like any other style). |
Chris 15-Aug-2005 [2223] | Or asked, why backdrop doesn't apply to the window face... |
Anton 15-Aug-2005 [2224] | Well, because BACKDROP is a face, you can do more stuff with it. |
Chris 15-Aug-2005 [2225x2] | 'course this'd be better than my example: [size 200x200 backcolor blue backeffect [gradient]] |
I suppose, it's a shame you can't manipulate the window face from VID though (with those exceptions) | |
Anton 15-Aug-2005 [2227] | Yes, a /with refinement might be good. |
Pekr 15-Aug-2005 [2228x6] | That guys, but those are by-solutions. I regard it being bug - background is background, no matter if you resize or not :-) Rebol resizing is rather weak anyway - I have seen no other app, which freezes its UI when you resize its window .... |
That = thanks ... | |
I would like to ask for your experience with UI methodology. I am about to create small system, featuring "many" screens, as as I am not experienced with more complete UI with Rebol, I would like to ask for assistance. | |
If you look at IOS for e.g., there is something I don't like about it - UI inconsistency - some reblets do feature cancel button, some don't, you can find the same buttons with different screens at different positions ... | |
I would like to ask, what aproach do others take? | |
E.g., with some older scripts, I used 'panel, for grouping buttons, as it allowed me for kind of "sub-layout" (reset coordinates). My typical screen will feature "menu buttons" (as I don't want to use menu, as none is standard in VID yet and choise is ugly - both in look and in behavior), grid, and I want "Add, Edit, Delete" buttons (probably on the right side of grid, alligned to top of grid vertically etc. | |
MikeL 15-Aug-2005 [2234] | Petr, In a recent production application, here is what we recommended to the users in a web based environment and they liked enough to support us with our standards group: 1. tab boxes to cut down on many screens (or to give appearance of that) and saves on some trips to the server 2. flyout menus to allow more intuitive navigation 3. breadcrumbs to show they where they are now and how to get back to a higher plane This was a pretty big step forward from the very plain html screens which they had been using before with more roundtrip activity. We prototyped the system in HTML using REBOL CGI functions and got some pretty detailed flow before the project was launched. Maybe your many screens solution should look at those things. I am assuming you are creating a View application. |
Benjamin 15-Aug-2005 [2235] | Hi there i recently had to do a job where i need to make use of read-net or read-thru because i needed to show a graph representing the amount of data beeing downloaded, but when it comes to write or save this is not possible because no callback is addmited, so i ask, is there a way to know how much data form a file has been uploaded or saved ? |
james_nak 15-Aug-2005 [2236] | Is there a rebol conversion from the 24 hour clock to AM PM? |
Sunanda 16-Aug-2005 [2237x2] | AM/PM time: http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-message.r?m=rmlTTVK |
File download progress: The Library downloader tells you how much of a file it has downloaded. http://www.rebol.org/library/public/repack.r The magic is in the code that uses :hook -- you'd have to ask Maxim for a full explanation. | |
Anton 16-Aug-2005 [2239] | Volker, I am very pleased with my latest version of find-face-deep in window.r: |
Pekr 16-Aug-2005 [2240] | what does it do? :-) |
Anton 16-Aug-2005 [2241] | site: select load-thru http://www.reboltech.com/index.r[folder "Anton"] clear find site %index.r do-thru site/library/include.r include [site/library/window.r [test-find-face-deep]] push: func ["push a value onto stack" [catch] stack [series!] value [any-type!] ][ throw try [return insert/only tail stack value] ] pop: func ["pop a value from stack" [catch] stack [series!] /local v ][ throw try [ v: last stack ; copy last element remove at stack length? stack ; remove last element without modifying index return v ] ] test-find-face-deep |
Pekr 16-Aug-2005 [2242] | test-find-face-deep has no value error ... |
Anton 16-Aug-2005 [2243x4] | Sorry, need to update window.r probably. Do this: load-thru/update site/library/window.r |
and try the above demo again. | |
What it does is, given an "absolute" mouse offset relative to the window face, as may be supplied by a DETECT function, finds the face which it is over. | |
I have fixed it to handle face edges, *and...* iterated pane functions :-) | |
Pekr 16-Aug-2005 [2247] | still does not work, Include: Couldn't load-thru http://www.lexicon.net/anton/rebol/library/window.r |
Anton 16-Aug-2005 [2248] | load-thru/update http://www.reboltech.com/index.r; and try above demo again |
Pekr 16-Aug-2005 [2249] | it works, thanks ... cool! |
Volker 16-Aug-2005 [2250] | Cool. Searching for an my old drag-drop-demo now :) And the button-list is cool too btw :) Maybe that complete state-saving should be supported by rebol, and focus could include a focal-index . |
james_nak 17-Aug-2005 [2251] | Thanks Sunanda for the AM/PM tip. |
Anton 17-Aug-2005 [2252] | Volker, still working on the state saving idea... |
Volker 17-Aug-2005 [2253] | I think thats a big project, patching a lot of styles. and that focal-thing must be done internal. For now i prefer only to think about it. But then you are good at workarounds :) |
Anton 17-Aug-2005 [2254] | Oh no.. I have already a way to avoid patching all the styles :) I have to think about focal-face some more, but I think it can be done with a ctx-text patch in the way I have already used in tree-face. |
Volker 17-Aug-2005 [2255] | SOunds interesting :) |
Anton 17-Aug-2005 [2256] | It is :) I'm just about burning up with this one. |
james_nak 18-Aug-2005 [2257] | Is there a way to use request-file to return a path without having to select a file within that path? I'm writing a reblet that requests a path so it can work on its contents. If I have to select a file then so be it . |
Volker 18-Aug-2005 [2258] | help shows a request-dir. but i guess not native. |
james_nak 18-Aug-2005 [2259] | I'll try that right now |
Volker 18-Aug-2005 [2260x2] | maybe its possible to suggest a file, and if the user does not change the text that name is returned? need experimenting. |
request-file/file %dummy ; works with wine-requester, i hope real windows too? | |
older newer | first last |