World: r3wp
[View] discuss view related issues
older newer | first last |
Maxim 11-Dec-2009 [9330] | photoshop allows you to change the meta information about dpi without resizing the image... I don't know if there are little tools which you can run command-line that will do it too. |
amacleod 11-Dec-2009 [9331x2] | I played around with it... AGG looks great on screen but prints fuzzy like you said... Increasing resolution looks sharp on printout... I do not know if I should spend time playing with scaling or just biting the bullet and converting output to HTML or pdf ...I had planned on it anyway but as usual what I thought would be a quick one or two day project turns into a week to make it "right"... But always an opportunity to learn new stuff! |
Thanks for the help Maxim. | |
Maxim 11-Dec-2009 [9333x2] | the pdf conversion should actually be pretty easy. look it up. pdf maker supports images, vector art... and its a dialect IIRC so it should be a big thing to go from your view layout to this other dialect. |
with R3, someone is bound to make a client for the windows printing engine :-) | |
Henrik 11-Dec-2009 [9335x6] | amacleod, it's VID to PS and it works fairly OK. I've used it for printing some statistics tables. |
http://rebol.hmkdesign.dk/files/to-postscript.r | |
Oops, View, not VID. It only depends on faces, not the VID dialect. | |
also it doesn't output postscript directly, but dialect words for Geomol's postscript.r dialect. | |
doesn't support bitmaps yet (have only used it for printing text), but you use it like to-image. | |
http://rebol.hmkdesign.dk/files/vid-postscript2.png | |
Graham 13-Dec-2009 [9341x3] | Is this a VID bug?? >> view layout [ led 20x20 ] >> view layout [ led 20x20 [] ] |
In the first case the led can not be switched using the mouse, but by adding the action block it can ! | |
Hard to say it's a bug because there never was any documentation on the LED face | |
amacleod 13-Dec-2009 [9344] | RE: printing vid faces by converting them to images for document printing... I found that a multiplier of 3 is sufficient for good quality text...maybe 5x for super quality |
Gregg 13-Dec-2009 [9345] | I'd say it's a bug Graham. |
Graham 13-Dec-2009 [9346x2] | That means we can now write the documentation :) |
what's the current bug tracker for R2 ? | |
Gregg 13-Dec-2009 [9348] | Still RAMBO AFAIK. Unless they've moved things to CureCode. |
Graham 13-Dec-2009 [9349x2] | hard to find stuff on rebol.net now .... |
ok, submitted | |
Henrik 14-Dec-2009 [9351] | graham, might as well add it to my tracker too. |
Graham 14-Dec-2009 [9352] | should ask Carl for a copy of the VID related bug reports so that you can fix them in vidext :) |
Henrik 14-Dec-2009 [9353] | that would be cool |
Graham 16-Dec-2009 [9354] | How do you force a window to the front? setting the activate flag and show doesn't seem to work |
Graham 17-Dec-2009 [9355] | Anyway to set the Z order of windows once they are already up? |
Henrik 17-Dec-2009 [9356] | by forcing it to front, do you mean modal or just moving any window to front? (The kit has a simple function for the last bit) |
Graham 17-Dec-2009 [9357x2] | Any window ... |
What I want to do is keep a separate menu window open so that no matter what other windows are open, the menu window stays on top. | |
Luis 17-Dec-2009 [9359] | top-most example: http://pastebin.ca/1718241 |
Gregg 17-Dec-2009 [9360x2] | I use the Windows API to do it Graham, but I don't have a cross-platform solution. |
Inside a view window, you can remove the face from the pane and append it again, so it's a the top of the z-order. I can't remember trying that with screen-face though. | |
Graham 17-Dec-2009 [9362] | Thanks I'll give it a go. |
Nicolas 20-Dec-2009 [9363] | I want to make a program that zooms in on a picture while I hold down the left mouse button and that zooms out when I hold down the right mouse button. Any ideas? |
Henrik 20-Dec-2009 [9364] | detect on mouse down and stop zooming on mouse up |
Nicolas 20-Dec-2009 [9365] | Thanks Henrik |
Henrik 20-Dec-2009 [9366] | hmm... well, I guess you need to keep that going, while the button is held down, otherwise no events are fired. |
Nicolas 20-Dec-2009 [9367x2] | Yeah, that's the problem. |
Could I flick over to event detection every tenth of a second somehow? | |
Pekr 20-Dec-2009 [9369] | yes, you can ... well, but I am not much experienced in that. You need to test event/type for 'time value. But how to get time events there? Maybe setting face/rate: desired-value-per-second could help? |
Nicolas 20-Dec-2009 [9370x6] | I'll try that |
Here's a prototype | |
window: layout [i: image rate 5 load %gtfo.jpg key escape [halt]] zoom-in: does [i/size: i/size * 5 / 4] zoom-out: does [i/size: i/size * 4 / 5] down: false alt-down: false insert-event-func [ probe event/type switch/all event/type [ down [down: true] up [down: false] time [if down [zoom-in]] alt-down [alt-down: true] alt-up [alt-down: false] time [if down [zoom-in] if alt-down [zoom-out]] ] center-face i show window event ] view/options window [resize] | |
REBOL [] window: layout [i: image rate 5 load http://rebol.com/graphics/kits.jpg key escape [halt]] zoom-in: does [i/size: i/size * 5 / 4] zoom-out: does [i/size: i/size * 4 / 5] down: false alt-down: false insert-event-func [ probe event/type switch/all event/type [ down [down: true] up [down: false] time [if down [zoom-in]] alt-down [alt-down: true] alt-up [alt-down: false] time [if down [zoom-in] if alt-down [zoom-out]] ] center-face i show window event ] view/options window [resize] | |
Can comments be deleted? | |
I guess they can't. Anyway, thanks for your help! | |
Pekr 20-Dec-2009 [9376] | comments here in Altme? No - they can't be deleted ... |
Nicolas 20-Dec-2009 [9377x2] | This is the first step to creating a zooming user interface |
What do you mostly use rebol for? | |
Pekr 20-Dec-2009 [9379] | as for me - simple CGI stuff, some automatition tasks, few GUI utils .... |
older newer | first last |