World: r3wp
[View] discuss view related issues
older newer | first last |
Anton 21-Nov-2008 [8304] | It's ON-UNFOCUS in face flags. Compare: view layout [f: field [print "action"] text-list] print mold f/flags view layout [f: field [print "action"] with [deflag-face self on-unfocus] text-list] print mold f/flags |
james_nak 22-Nov-2008 [8305] | As I have mentioned before here I have been working on turning strings into code. I've used this: set in get to-set-word "myobj" 'text "change a value" where myobj: make object! [text: "default"] and this works! I just don't know why get to-set-word "myobj" behaves that way. I'm hoping it's not a fluke because it's my Mr. Helper. Anyone able to explain that? |
Anton 22-Nov-2008 [8306x2] | You can get from a word! as well as the corresponding set-word! and get-word!. They are all the same word, after all. |
So, in your example, you could replace TO-SET-WORD with TO-WORD. | |
james_nak 22-Nov-2008 [8308] | I see. But what am I "getting"? |
Anton 22-Nov-2008 [8309] | GET gets the value of the word, which you previously set to an object. So, GET returns that object. |
james_nak 22-Nov-2008 [8310x3] | Then the to-word just know by context that myobj was an object, eh? The reason I ask that is that if it was just a word and not an object I don't seem to have to use get.: >> a: "test" == "test" >> set to-word "a" "hello" == "hello" >> a == "hello" >> set in to-word "myobj" 'text "hello" ** Script Error: in expected object argument of type: object port ** Where: halt-view ** Near: set in to-word "myobj" 'text >> myobj/text == "eeee" |
>> set in get to-word "myobj" 'text "hello" == "hello" | |
It's all good. I just was curious. Thanks Anton. | |
Nicolas 22-Nov-2008 [8313] | Thanks Anton! |
Anton 22-Nov-2008 [8314x2] | Nicolas, you're welcome. |
James, TO-WORD does not interact with the value of the word it is creating. | |
RobertS 22-Nov-2008 [8316] | glad to see VID3 with ability to some-useful-name: "you will debug listbox3 someday" attach 'some-useful-name |
Graham 26-Nov-2008 [8317x2] | I can't remember now .. but how do you start a rebol process with a systray? |
I mean you start the systray with do-events, but then you can't start your forever [ process ] | |
BrianH 26-Nov-2008 [8319] | I thought you used the system:// port. |
Graham 26-Nov-2008 [8320x3] | I guess if you're using a gui, you can kick off your process with a timer event on a face ... |
Just wondering how's it's done with just the systray icon and no GUI | |
and no console | |
Gabriele 26-Nov-2008 [8323x3] | graham, maybe look at my clips.r script, it is systray only. |
http://www.colellachiara.com/soft/MD3/examples/clips.html | |
http://www.colellachiara.com/soft/MD3/examples/clips.r | |
Graham 26-Nov-2008 [8326] | Thanks |
Graham 28-Nov-2008 [8327] | I've abstracted the systray/forever loop out here http://rebol.wik.is/Code_Samples/Systray.r |
Maarten 28-Nov-2008 [8328] | S3 backup? You have plans..... beware that for large volumes you *have to* parallelize. SQS is there for a reason |
Graham 28-Nov-2008 [8329] | Yes ... but it's for small volumes ... maybe a few gbs only |
Rod 28-Nov-2008 [8330x2] | Is there an option to have no caret but capture keyboard events? I'd like to get navigation keys for example but don't want a visible caret. |
I see notes about using detect for hot keys instead of engage, is that the best way or is there a way to turn the caret part off? | |
Henrik 28-Nov-2008 [8332] | FOCUS/NO-SHOW will hide the caret. |
Rod 28-Nov-2008 [8333] | Thanks Henrik, exactly what I was looking for. |
Anton 29-Nov-2008 [8334x3] | There's a problem with that, in that as soon as you show a parent face, the caret will appear, because the subface will also be rendered by SHOW. |
So if you SHOW the window face that the field is in while the field has the caret, then the field will be SHOWn as well, and the caret will be rendered. | |
If you look in the source of FOCUS, you can see what it's doing. Just do the same, except without setting the caret. | |
Rod 29-Nov-2008 [8337] | Thanks Anton, I will dig deeper then and see what my best option is. I have detect version working but want to know how to manage this with engage if I need to. |
Anton 30-Nov-2008 [8338] | I have a patch to handle this situation in a general way (focus-system-patch). |
james_nak 6-Dec-2008 [8339] | I was looking for a way to facilitate the Alt-Printscreen, go to Paint, paste, save as .png drudgery and I was close except them I found out that clipboard:// only works with text. :-( Gregg and Christian created this capture-screen.r app which is pretty amazing. I wonder, however, if there will ever be an improvement to the clipboard? |
Nicolas 7-Dec-2008 [8340x3] | I'm having trouble with stylize/master |
stylize/master [ matrix-area: area with [colors: [0.0.0 0.0.0] font/color: 150.255.150] ] this makes all font/colors 150.255.150 | |
does anyone know why? | |
Steeve 7-Dec-2008 [8343] | matrix-area: area with [colors: [0.0.0 0.0.0] font: make font [color: 150.255.150]] |
Nicolas 7-Dec-2008 [8344] | thanks :) |
Anton 8-Dec-2008 [8345x2] | or stylize/master [ matrix-area: area with [colors: [0.0.0 0.0.0]] font [color: 150.255.150] ] |
The reason is the FONT object is shared amongst several styles. >> svv/vid-styles/area/font = svv/vid-styles/field/font == true and AREA INIT does nothing to clone it >> print mold svv/vid-styles/area/init [ if color [colors: reduce [color colors/2]] if not string? text [text: either text [form text] [copy ""]] if not flag-face? self hide [data: text] para: make para [] ] (no mention of FONT). So after instanciation, the font is still the same. view layout [my-area: area] my-area/font = system/view/vid/vid-styles/area/font ;== true | |
Brock 8-Dec-2008 [8347] | and incase it's not obvious svv = s v v |
Henrik 8-Dec-2008 [8348] | (which is system/view/vid) |
Gregg 9-Dec-2008 [8349] | James, I did one side of bitmap support for clipboard://, and there are other ways around it, depending on what you need to do. E.g., imagemagick. |
james_nak 9-Dec-2008 [8350] | Gregg, what I wanted to do was simply take what was in the clipboard:// (via a printscreen) and save it as a png or bmp, thereby skipping the monotonous paste into Paint and save. |
BrianH 9-Dec-2008 [8351x2] | Try Lightscreen: http://lightscreen.sourceforge.net/ |
There's a portable app version too. | |
Gregg 9-Dec-2008 [8353] | Ah, I did the writing part, and then used my send-keys dialect to pump keystrokes to other apps to automate the other side. In my case, it was putting things into a NetMeeting whiteboard. |
older newer | first last |