World: r3wp
[View] discuss view related issues
older newer | first last |
Gabriele 4-Nov-2009 [9284] | the awake handler needs to return TRUE |
Maxim 4-Nov-2009 [9285] | yeah, I had to patch wake event to add the functionality... would be nice to be able to interrupt a wait outside of its event handling. is this doable in R3? |
Maxim 5-Nov-2009 [9286] | did anyone do a VID compatible tree view control. the only one I can find is the one within rebol.org from the request-dir.r script. not that its bad, just probing to see if there are others which would work more quickly for this project where I need it. |
Gabriele 5-Nov-2009 [9287] | if you are inside wait, you are inside the event handling. so "interrupt a wait outside of its event handling" makes no sense to me. |
Maxim 5-Nov-2009 [9288] | the event handling dispatches code related to the event that triggered it. there is no way for that code to interrupt the even handler, especially when the event handler isn't programmed by yourself. when you add wait [] in a function, there are many reasons why to want that wait to return. in this case, modal operation of some code. wait is a nested system where a second call to wait doesn't break the first call to wait. To allow this I had to patch view's wake-event directly, but it works now.. there is no way for a normal action to interrupt event handling a part from closing all windows, which made this modal operation of my code especially complex to build without an interruption mechanism. I've had other situations like having a systray and view not collaborating, where closing a window ends the app even when the systray is running, or where the window wait keeps running even if all windows are closed and the systray was then hidden as well. a timer event would have easily solved that issue by interrupting appropriate event handlers when it detects some situations. |
Gabriele 5-Nov-2009 [9289x2] | there is no way for that code to interrupt the event handler - right, but you're not "outside" the event handler. you're still inside, and it would be easy to look at the return value of that code. that of course makes VID programming more difficult because you always have to remember to return FALSE. |
the alternative is to use global values / flags. the modal (popup) system in VID does exactly that. | |
Maxim 5-Nov-2009 [9291] | yep... but an 'interrupt mechanism would be nice to have. it makes a lot of stuff much easier to architecture especially when you have multiple ports to handle and state is complex. you can just add a loop which includes all event handlers and interrupt all of them... check some states and then decide if you re-enable some or all of them, until you decide to stop the loop. this way, a view event, can also interrupt network xfer for example. |
Graham 24-Nov-2009 [9292] | Is there a way to receive wm_gestures ? Will this be added to an enhanced R2 ? |
Cyphre 24-Nov-2009 [9293] | I think you should be able to receive this event thru system port (not tested). The main problem is that there is a bug in system port so the events (in general) aren't detected unless rebol console is opened. It would be great improvement if this is fixed in new R2 release but you need to push Carl ;) |
Graham 24-Nov-2009 [9294] | interesting ... |
Graham 28-Nov-2009 [9295] | My new laptop with multitouch screen has just arrived .. the surface demos are interesting ... using two - four fingers to manipulate images, or a virtual earth. Now .. it would be nice if R2 or 3 can support this! |
Brock 28-Nov-2009 [9296x2] | What laptop is that Graham? |
I'm contemplating getting one and would like to know how well Rebol View apps work with it. I'm assuming they'd work just fine, but don't have the kind of money that I can take a chance ;-) | |
Graham 28-Nov-2009 [9298] | It's the Dell XT2 http://www.dell.com/tablet View apps work fine. |
Henrik 29-Nov-2009 [9299] | Graham, so your arms get tired yet? :-) |
Graham 29-Nov-2009 [9300] | There's some issue with Windows 7 RC1 and the multitouch driver ... so I have put it down while awaiting the official Wndows 7 dvd from Dell. |
Brock 29-Nov-2009 [9301] | Graham, did you happen to look at the HP Touchsmart (12.1")? I see it offere at the local big-box stores for about $900 Canadian. Gave it a try and it seemed like a nice machine. |
Graham 29-Nov-2009 [9302x3] | Brock .. no. I bought a touchsmart IQnnnn ( 19 inch wide I think ) for someone else but I don't think it was multitouch. |
I wanted accurate pen use which needs an active screen, and also touch. | |
Brock the Touchsmart TX2 is also dual mode ... see the reviews. There's some mention of lag when using the touch but you might be able to live with that. | |
Brock 29-Nov-2009 [9305x2] | Yes, the TX2 is what I was actually looking at. I'll have to see if I can find a comparison of the two units. |
Google query of: HP Touchsmart tx2 Dell XT2 finds lots of info | |
amacleod 9-Dec-2009 [9307] | having trouble with checkbox updating... this works > chbx1/data: true show chbx1 but if I take the state from a block > blk: [ "String" true] chbx1/data: blk/2 IT DOES NOT WORK. I've also insured its a logic value with> chbx1/data: to-logic blk/2 Any ideas? |
Henrik 9-Dec-2009 [9308x2] | reduce blk first |
to-logic on a word is always true: >> to-logic 'true == true >> to-logic 'false == true | |
amacleod 9-Dec-2009 [9310] | Got it! Thanks a lot, Henrik.! I did not know that about to-logic... not mentioned in "Word browser" |
Dockimbel 9-Dec-2009 [9311] | It's documented in Core manual: http://rebol.com/docs/core23/rebolcore-16.html#section-3.3.3 |
Gregg 9-Dec-2009 [9312] | Also, don't forget SET-FACE. |
amacleod 11-Dec-2009 [9313] | I'm trying to print a vid face face via conversion to image... what's the best way to get good text quality... ie...is the a best font to use... my out put is a little jaggy |
Maxim 11-Dec-2009 [9314] | either you use AGG for aliased fonts, or you increase image size so its equal to the dpi you want to print. |
amacleod 11-Dec-2009 [9315] | vid layout |
Maxim 11-Dec-2009 [9316] | (and scale all the graphics involved in your face) |
amacleod 11-Dec-2009 [9317] | use 'draw' to lay it out wll produce better image? |
Maxim 11-Dec-2009 [9318] | the fonts will be anti-aliased (which is what I meant to say above)... but in any case, the resolution you use on your printer is always much higher than you screen resolution. |
amacleod 11-Dec-2009 [9319x3] | How far did Henrik get with his vid to pdf dialect? My layout is all text except for one small b/w image... |
Maxim, so to display a proper page I would need to increase the sacel of my vid image quite a bit...larger than screen? | |
sacel = scale | |
Maxim 11-Dec-2009 [9322x6] | so if you are creating images for printout, you have to think larger faces with larger font sizes... screen dpi is typically between 72-100 dpi, printers now usually printout at around 600 dpi.... so if you want to have clean images, they should be around 5 to 10 times larger. |
yep. | |
when I was doing an art project, I had to create a printout for a 36 inch wide image... the file was an 508 mb, 300 dpi image. | |
normal printing, uses vectorial information, so the convertion from shapes to points (rasterization) is done directly at print time. | |
using anti-aliased images you can lower the resolution without it looking too bad... cause the edge will gray out instead of being jagged blocks. but they will look fuzzy instead. | |
for printing from REBOL, the best thing is to use one of the variations of the PDF dialects out there and printing that out. there are a few guys around here who have some experience doing this. | |
amacleod 11-Dec-2009 [9328] | I was using a print method calling MS image viewer transparently to print without opening up but I as adivised to keep my image at 612x792 to keep it on one page...how do increase 5x now? |
Maxim 11-Dec-2009 [9329x2] | you need to set the dpi of the printout to a higher value. I don't know about that solution, but either it supports the dpi value of the input image, when it has one, or you should be able to set it directly. 612 / 72 = 8.5 ;-) so your values are standard video dpis |
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 [9333] | 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. |
older newer | first last |