Bionic Badger wrote: > I'm trying to use a wxArt2D canvas inside a regular wxWidgets wxFrame > (so I can use wxFormBuilder to lay out the interface) instead of an > a2dDocumentFrame, and it pretty much works out fine, except when I try > It's not there for nothing, the whole event handling from a2dView etc. is handled in there. So this is not a good idea. And i certainly can't help this way.
> Other questions: > > - Is there any way to disable the scrollwheel zoom for a canvas? > There appears to be no way to disable this. > You can simply derive a a2dCanvas and redefine OnWheel to do nothing or something else. Are you can make your own Canvas claas like in a2dCanvasSim. Most of the work is done in a2dCanvasView. > However, when the app initially opens, the world preview does not > correctly render the canvas. Everything 5px inset appears blank. See > here: > With wxFrame use you might be missing all events needed for updates and what not. So i don't know what to say more. If using a2dDocumentFrame, is it still the same? If so prepare/modify a sample to show your problem. Sometimes it just a refresh/update of a2dCanavsView more, to make it right. > Other questions: > > - For the world preview above, if I wanted to depict a rectangle > showing the current visible area in the main canvas, how would I go > about doing this since the world preview is really just a view looking > at the main canvas's data, and putting a rectangle on the canvas would > be the same as putting it on the main canvas? > Look at a2dZoomedView i think. (drawer.cpp) Don't know if it still works, but that was my own attempt to do it. > Finally, a suggested code change for the samples: > > - I noticed in the samples that whenever I'd attempt to hold Ctrl and > drag something around on the canvas, that it'd give me an error that > it was missing a file handler for one of the cursors (the drag > cursor). Adding this to the top of MyApp::OnInit() seems to fix it: > > wxInitAllImageHandlers(); > > No more "missing image handler" errors after that's added. > Oke will check the samples, i did not test them all after the cursor change. Hope it helps, Klaas ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev