World: r3wp
[View] discuss view related issues
older newer | first last |
Volker 23-Jun-2005 [1605x3] | the interesting thing with Pekrs snippet is: yes, that action is done. but usually the dirty-action is done and then the button-action. in this case its not. due to the switching in the layout. |
lay1: layout [f: field [ probe "Dirty!" ;view lay2 ] btn "Quit" [probe "Bye?"]] lay2: layout [text "just a try" btn "Return" [view lay1 focus f]] view lay1 | |
enable the 'view and the quit-button is not called. Not sure if thats buggy enough to be a bug thought. | |
[unknown: 5] 23-Jun-2005 [1608] | shouldn't the 'run function be part of /view. Looks like it requires a license to be used. |
Pekr 23-Jun-2005 [1609] | Gabriele: I don't understand what Romano says. As a average scripter, I really don't care about some dirty fields or other dependencies. From code provided, it is clearly a bug, so - fix it. |
Graham 23-Jun-2005 [1610] | 'Run is not enabled in View. It only works in IOS. |
Pekr 23-Jun-2005 [1611x3] | Gabriele - just looked at your fix - I can't consider it being a fix. It is like suggesting HTML coder to change something in DOM level. |
It is like VID list style - the worst ever - you work with exposed variables you don't have normally the chance to know about (from the VID style perspective pov) - I consider it being very bad design, wrong ecapsulation. | |
I don't understand what is 'dirty's purpose, but imo clicking Quit button, which clearly maps to native 'quit function, should simply quit, nothing else whatever else you have set. The only case would be, if I would put some sensor transparent face upon button to catch events, or something like that. | |
Graham 24-Jun-2005 [1614] | Can RT please release RebCmdView for 1.3 ... Thanks. |
Pekr 24-Jun-2005 [1615x5] | my observation is, that even if I change my design to view/new, I still have to use the dirty-flag trick ... |
and dialog box system seems to be still rather messy. I changed my design to view/new. I have two layouts, plus insert-event-func, which can show another dialog box (help screen) after F1 is pressed, from both windows I use. But - once there is my help displayed, and I alt-tab to the window 2, unview/only that window does not work ... | |
I have found very shortened example - simply the case, when you redefine layout several times - maybe it is wrong aproach, but because of grid I always called layout once again, to fill-in list value by data: view lay1: center-face layout [btn "lay2" [view/new lay2: layout [btn "Return" [unview/only lay2]]] btn "close" [unview]] now run above line, press lay2 button, go back to first screen, press lay2 button. It gets re-rendered. Try to press "Return" button on lay2 - it does not work anymore ... | |
is that because of nested layout? Is that becuse I re-define lay2 in memory for the second time and it confuses rebol? | |
I think that I redefine lay2 for the second time, so that rebol looses reference to the first one, and so unview is not able to unview first instance of window ...., so maybe actually my bug, not rebol's? :-) | |
Volker 24-Jun-2005 [1620x2] | in this case, move lay2 a bit ;) it gets not re-rendered, its a new window. lay2 now points to second lay2. you close that. you see the first window (but looks the same.. you unview lay2, but thats now the second, closed lay2, not the first you are really viewing. |
ah, you typed while i typed, yes, correct. | |
Pekr 24-Jun-2005 [1622x2] | hey guys, we have some gfx gurus. What about some splash screen content? Today I made small util using rebol and my friends in office were really happy about it - I exported telephone list from Lotus Notes client monster and put it into View 1.3, rebDB plus Cyphre's my-list. They suggested me to add some nice splash screen and to send it to Lotus Notes team to show them we don't need LN for such tasks :-) |
I know that sometimes very little is needed to produce nice effects ... | |
Volker 24-Jun-2005 [1624] | cross-fade in tests? fade ln-logo to rebols :) |
Pekr 24-Jun-2005 [1625] | I can find some nice demos in section of Desktop, but I am not sure I would succeed to adapt e.g. Imagination for my help screen - besides that, it is longer than my whole tool :-) |
Volker 24-Jun-2005 [1626] | fading demo seems to be short. maybe create images with imagination and fade between them? |
Pekr 24-Jun-2005 [1627] | what do you mean by fading? |
Volker 24-Jun-2005 [1628x2] | two images before each other, the first turning into the second by alpha-effect. |
its in desktops test-folder | |
Izkata 24-Jun-2005 [1630] | Pekr>Try to press "Return" button on lay2 - it does not work anymore ... It still works back in View 1.2.47... (I'm sticking with this version for a short time longer.. ) |
Pekr 24-Jun-2005 [1631x5] | as Cyphre suggested to me privately - first instance of lay2 looses reference to the window, as it is regenerated during second button press. But that "face" remember its parent face. Try to replace unview/only lay2 with unview/only face/parent-face .... the question is, if that is a bug or not - should we be able to create such wrong code using VID? |
I am starting to think, that it can't be considered a rebol bug, but a programmer bug. In such case though, ppl have have knowledge about windowing system, how it is organised in pane, etc., so View internals - knowing just VID will not be enough ... | |
... that setting "f/dirty?: no" in my complaint above is another example, that something is wrong here ... | |
button press should work no matter what other UI element state is. The only case where I can understand button not working would be if you would put some transparent face upon it to catch events ... | |
later | |
Volker 24-Jun-2005 [1636] | I guess you produce something like that by switching layout. usually both is called, the text-action because of dirty, then the button-action. but somehow view forgets to call the button when you switch layout and call focus. maybe because the layout with the button is not visible after the text-action? its a bug for me, but i guess it could be tricky to fix, lots of special case-code. |
Gabriele 24-Jun-2005 [1637] | petr: it's not a trick. dirty? is there by "design", and it is handled by a event func. you need to handle it manually in cases like that. so, not a bug, just lack of proper documentation. |
DideC 24-Jun-2005 [1638] | How do you make a shadow effect for a face, like Cyphre does in its menu style ? |
Volker 24-Jun-2005 [1639] | So ignoring the button press in this special case is not a bug? |
Pekr 24-Jun-2005 [1640x2] | imo it is a bug, period :-) |
look Gabriele - imagine strict object system - so - pressing button does its action, not something else, unless some other element is layered above it. So what is VID for? For whom? Typical VID user was compared to HTML coder, so why should user care of some dirty flag? What is dirty flag after all? It is VID internal, and it SHOULD NOT be imo exposed to user. List is another example of BAD design. | |
Graham 24-Jun-2005 [1642] | Can you provide an operational definition of what you mean by BAD design in respect of 'List ? |
Pekr 24-Jun-2005 [1643x2] | yes, simply put - list's supply block - you have to know pretty much about style internals in VID level - suddenly you use variables you have no clue about ... |
when I look at Cyphre's my-list, there is nothing like that ... all configuration done by exposed facets ... | |
Graham 24-Jun-2005 [1645] | This then applies to fields as well |
Pekr 24-Jun-2005 [1646] | ... after all, IIRC Carl once said that current 'list was done in something like 5 minutes or so beofre View alpha release :-), and IOS 1.3 project contained new, improved version - so I also wonder why that version did not make it for 1.3 |
Graham 24-Jun-2005 [1647] | Or, you could just read the documentation regarding the use of 'list |
Pekr 24-Jun-2005 [1648x2] | fields? Why? Where? I am able to use fields mostly without such hacks ... |
I start to think that some ppl fail to admit something could be just done better, even if style creator admits it :-) | |
Graham 24-Jun-2005 [1650] | Is your complaint then one of a lack of documentation? |
Pekr 24-Jun-2005 [1651] | We had such discussion before, do you remember? Many ppl arguing with Terry, that basically rebol draw is capable to compete with Flash and nowadays we are all applauding AGG inclusion :-) I just try to point out to things I don't like and I try to believe that my pressure may lead to think out some things more deeply for 1.4 release ... |
Graham 24-Jun-2005 [1652x2] | So that we don't have this discussion again, why don't you draw up a critique of what you feel is bad design regarding 1.3, and then we can work from there? |
It's hard for all of us to start from the same point unless all of us remember past discussions. So, let's have a summary document. | |
Pekr 24-Jun-2005 [1654] | Yes, maybe documentation. But I can still see a trouble with 'list and if 'field is similar, than our bad. VID is abstraction. It was meant to ignore errors in code if possible. It was meant to configure style using facets ... we started to expose more facets 'edge ,'font-size, etc., and if not sufficient, the last part is using 'with and directly accessing object values. But 'list goes even further, as 'supply block deal with variables like 'count ... |
older newer | first last |