World: r3wp
[View] discuss view related issues
older newer | first last |
Gregg 27-Feb-2007 [6839] | I believe it rounds them. If you want slower rates, use a time! value (e.g. 0:0:2 for every two seconds). |
Anton 27-Feb-2007 [6840x7] | Maxim, catching all *inactive*, not simply closed. |
Gregg, I'm working on that way now. For minimal impact, I only start time events if they aren't running already, and then I restore the window/rate after I catch the first time event. | |
This version uses the "deadman switch" timer idea and is working ok. do http://anton.wildit.net.au/rebol/gui/demo-all-windows-inactive-handler.r | |
http://anton.wildit.net.au/rebol/gui/all-windows-inactive-handler.r | |
The reason I need this is for a pop-menu system (implemented with windows). When a completely different application window becomes active, I want to close all menues and submenues. | |
And it seems to be working for this application.. :) Now the long test... | |
oh no it's buggy. it works sometimes and sometimes not. Damn, time events are tricky. | |
Maxim 28-Feb-2007 [6847x2] | ahhh didn't notice the subtility. |
thanks gregg | |
Brock 6-Mar-2007 [6849x6] | Has anyone done any work on the Rebol Desktop? |
I have an application that might be able to make use of a local web-page like interface to launch Word Documents and web page links. | |
The current application (not my own) uses an HTML page to list all this information, but new versions of MS apps all open the .doc files in the browser window instead of launching Word. The problem here is the .doc files contain macros that run when executed, but this does not happen through the browser. The Word templates also get auto-updated if new versions are available, but this is handled by a secondary .exe file. | |
The templates are stored on the users local computer and essentially build sales documents based on basic user input. | |
Just wondering if this sounds like something that a modified desktop would be able to do. I know this is exactly what IOS does, but this is overkill for this simple document generating tool. | |
I've created a [temporary] group called Desktop as that is likely a better place to discuss this topic. | |
Maxim 6-Mar-2007 [6855] | Hi all, anyone remember an easy to tell if the user called the action of a field from tab or enter? This is causing headaches in user comprehension... windows does not react the same way with enter and tab... right now, pressing tab, triggers actions, which normally should only occur when "enter" is pressed. |
Gregg 6-Mar-2007 [6856] | I think you have to override the feel. |
Maxim 7-Mar-2007 [6857x2] | hahahahahah the field's feel is a typical View obscurity built from hidden contexts which are only availble at boot time :-( |
we can loose 6 hours trying to map all that back up... maybe someone has already done it here? I have the sdk, I could look into it... but its just a question of time... I've got more important code to write than searching for this right now. | |
Gregg 7-Mar-2007 [6859] | Yeah, the View system isn't the easiest thing to work with sometimes. OTOH, it's not so bad when compared to, say, writing Windows custom controls. |
Maxim 7-Mar-2007 [6860] | Not saying its better else where ;-) ... I guess I'll have to make a memoriser within a custom key handler callback in GLayout. that way within the action I can check if the last key press was tab or enter. :-) |
Anton 7-Mar-2007 [6861x4] | Maxim, FIELD's FEEL is not so obscure. You need to bind to CTX-TEXT and SYSTEM/VIEW, that's all. |
Familiarity with the code and a willingness to explore is all you need. Eventually you realise those two contexts are the most important ones in the View system. | |
Actually, investigating what happens when you press tab leads to the following solution: view layout [field with [refocus: func [shift][print "tab pressed"]][print "action"]] | |
The way to this solution: print mold svv/vid-styles/field/feel ; notice: "edit-text" print mold get in ctx-text 'edit-text ; notice: "tab-char" handler | |
Maxim 7-Mar-2007 [6865x5] | Familiarity with the code and a willingness to explore is all you need. Eventually you realise those two contexts are the most important ones in the View system. I have been peeking around for since view 1.0 and still continue to find new things... sometimes, its just sucha pain, that I give up. the ctx-text cannot be infered by the code... so I have never been able to find it. |
which is why I ask... cause for other things, I have found the solution which others might not have. | |
this is what I like about our community. we all share. not much "protection" going on here. | |
In this example, I have been trying to find the damned edit-text funtion for a few hours when I wanted to edit and just didnt' find it. system/words is huge. I'm happy you found it... I just never got to it...yet I found out other things. | |
I am one of the people who can claim a certain level of advancement with VID and view, and yet why do I keep fiddling around with such things... there are so many little details to remember that it comes to a point where I keep forgetting what I haven't played with within a year... but it always comes back to bite me the year after ;-) | |
Anton 7-Mar-2007 [6870] | That's why we write things down :) |
Maxim 8-Mar-2007 [6871] | hehe you have time? |
Anton 8-Mar-2007 [6872x2] | Yes, I like to write things down that I think will save me time later. x N |
But, if it took you more than 15 minutes to find edit-text, why didn't you just ask someone here ? | |
Maxim 8-Mar-2007 [6874] | sometimes... we don't have access to the good things in life. |
Henrik 8-Mar-2007 [6875] | I completely agree with Maxim, although I don't forget the things, but it still takes a long time to figure out how to do trivial stuff with a field. |
Maxim 9-Mar-2007 [6876x2] | anyone know if there is a way to make image! with a filled bg color? |
I can use a face and call to-image on it, but I'd think that creating the image directly is faster, especially since I wanted to use the draw command directly on the bitmap too. | |
Henrik 9-Mar-2007 [6878] | make image! [20x20 red], I think |
Maxim 9-Mar-2007 [6879x4] | nope |
a ha... has to be reduced first :-) | |
thanks. | |
this works: make image! [20x20 255.0.0] | |
Henrik 9-Mar-2007 [6883] | you can make a transparent image too with 0.0.0.255 |
Maxim 9-Mar-2007 [6884x2] | strange, I am sure I tried the above yesterday at 2 AM.. but didn't get a result... might have tried with to-image |
although I am already using make image! 20x20 when you've slept 15 hours in 4 days... I guess the mind gets a bit fuzzy. | |
btiffin 3-Apr-2007 [6886] | Hi, Anyone know the inner workings of the browse native under Linux? I lost a working browse with 2.7.5, and had to put in the old hack using call. I was hoping I could just configure my Linux to help the native browse find a browser. |
Graham 3-Apr-2007 [6887] | It doesn't. |
Gabriele 3-Apr-2007 [6888] | i haven't checked the recent versions... but browse used to just call /usr/bin/netscape (or variants of that) on unix. |
older newer | first last |