Hello. If I start the sample_editor_tuto, right click with the mouse and select 'Zoom to fit' everything shall be fitted to the application window. But there are scroll bars drawn. By right clicking with the mouse and selecting 'Zoom to fit' a second time the scroll bars disappear. By doing this a third time the scroll bars appear again. Why is this?
In my imagination a zoom to fit should never lead to scroll bars displayed - am I right? Background: I want to zoom to fit in my own application. I discovered that the following lines of code do the trick: a2dCanvas *canvas = getTheCanvasFromSomewhere(); canvas->SetMappingShowAll( false ); // Zoom to fit (100%). //canvas->SetMappingShowAll( true ); // Also leads to scroll bars. But I mostly get scroll bars (sometimes I am lucky and don't get them). But as I said I don't want them at all. What can I do about this? Best Regards Glaz ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Wxart2d-users_dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
