World: r3wp
[View] discuss view related issues
older newer | first last |
Anton 23-Jul-2006 [5298] | can't you use font/valign: 'bottom ? |
Henrik 23-Jul-2006 [5299x2] | yeah that seems to work |
I think this is something that's worth taking up for VID+ | |
Anton 23-Jul-2006 [5301] | Ah yes, definitely. I found the system quite confusing when trying to achieve certain things. |
Henrik 23-Jul-2006 [5302] | It's silly that feel/over is blocked when the left mouse button is being held down. this prevents me from detecting the face edge properly. |
Anton 23-Jul-2006 [5303x3] | After intensive study, you can start to see it has its own twisted logic, but it can definitely be improved. |
Yes, you have to use engage. | |
engage and over together. | |
Henrik 23-Jul-2006 [5306] | the problem with engage is that it blocks when another face is overlapping it. the same problem, just in the opposite direction. |
Anton 23-Jul-2006 [5307] | yep :) welcome to madness :) |
Henrik 23-Jul-2006 [5308] | I've almost made it working now, except that exiting from the icon-frame is not detected, when the mouse is held down. I don't know how to deal with that. I can easily "exit" to the subface.... |
Anton 23-Jul-2006 [5309] | The question I tried to answer for a long time was "how do I know if the mouse is in this rectangle or not ?" |
Henrik 23-Jul-2006 [5310] | hmm.. that would mean the main toolbar might need a feel as well. this is getting messy. |
Anton 23-Jul-2006 [5311x2] | engage should get away and up events. |
Ah yes.. but it's the engage of the subface... yes... | |
Henrik 23-Jul-2006 [5313x2] | it gets the away event, but too many times. I try to block that by asking which face I'm over, using feel/over, but feel/over doesn't work exactly when I need it to. |
I'll try something with engage instead of over. | |
Anton 23-Jul-2006 [5315x2] | don't worry, just filter it using a state flag. |
(if you get too many events) | |
Henrik 23-Jul-2006 [5317] | I am using one already, but the state flag can't be changed with over where I need it to change :-) |
Anton 23-Jul-2006 [5318] | After fiddling with event-flow-diagram.r, I recommend icon-frame detect to check the offset for inside/outsideness. It can also check if event/type = 'down [mouse-down?: true] mouse-down? can be set false by engage functions when they detect 'up event. |
Henrik 23-Jul-2006 [5319] | I think I got it now |
Anton 23-Jul-2006 [5320] | cool, sleepies... |
Henrik 23-Jul-2006 [5321] | woo! it works now |
Anton 23-Jul-2006 [5322] | :) |
Henrik 23-Jul-2006 [5323x3] | no! the same bug is back |
I'm quitting... it works a tiny bit better than before, but it's still odd. Don't wiggle the mouse too much while pressing the button :-) | |
Changed it to a combination of detect and engage. I think it's working now (crossing all my limbs, fingers and toes) | |
Graham 23-Jul-2006 [5326] | eyes? |
Henrik 23-Jul-2006 [5327] | no, that hurts too much |
Volker 24-Jul-2006 [5328x2] | DId not read the thread, only the problem. The trick is to put a transparent face over all the others, 'sensor in vid. Then you dont get clicks in your faces, but all is nicely captured by the sensor. |
Means put a full-sized face at the end of face/pane | |
Anton 24-Jul-2006 [5330] | Yeah, try that. So icon-frame contains text, icon, and finally the full-sized transparent face. |
Henrik 24-Jul-2006 [5331] | the detect thing seems to work fine and it shaves off 33% of the needed faces. :-) thanks for your help Anton, the event program is a great demo. don't you want to put it some where more visible? |
Anton 24-Jul-2006 [5332] | Like my website. :) I just need to get my website ready and published. |
Gregg 24-Jul-2006 [5333] | How is about clipboard for last version of view? Is it possible to insert in clipboard port image? I have code to do it for Windows. |
Janeks 27-Jul-2006 [5334] | I am interested in clipboard copying of images |
Anton 27-Jul-2006 [5335] | Hmm! I am surprised how hard it is to design menues; so many little nuances. |
Cyphre 27-Jul-2006 [5336] | When designing GUI elements: Devil is in the details ;) |
Maarten 27-Jul-2006 [5337] | That's why people love markup languages |
Anton 28-Jul-2006 [5338] | eh ? they do ? |
Josh 28-Jul-2006 [5339] | Quick question, how do you force a resize event? |
Graham 28-Jul-2006 [5340] | use the mouse? |
Josh 28-Jul-2006 [5341] | Is there any other way? |
Graham 28-Jul-2006 [5342] | Do you to inject a resize event into View's event handler? |
BrianH 28-Jul-2006 [5343] | Isn't a resize event without a resize just a repaint? |
Chris 28-Jul-2006 [5344] | Not sure what you mean, either: view lay: layout [btn "Resize" [lay/size: 400x400 show lay]] or my-evt: make event! [type: 'resize] system/view/wake-event my-evt ;-- doesn't work, another way? or do-on-resize: func [f e][if e/type = 'resize [alert "Resize!!!"] e] insert-event-func :do-on-resize view lay: layout [btn "Resize" [lay/size: 400x400 show lay]] |
Henrik 31-Jul-2006 [5345] | are there good articles on memory conservation anywhere? I noticed that some times memory usage for LIST-VIEW skyrockets, especially when using TO-IMAGE on list columns to generate bitmaps. that is not good. |
Anton 1-Aug-2006 [5346] | Yes, to-image always produces a new image. There's no way to render into an existing image, as far as I know. (Would like that.) |
Henrik 9-Aug-2006 [5347] | how do you bind layout words to an object easily? I want to set faces to variables which are supposed to be local to the context of my Tester program. I realize this is really the old "dynamic variable list in an object problem" all over again (I run into this very often it seems), but was wondering if LAYOUT specifically allowed some tricks... |
older newer | first last |