Bionic Badger wrote:


So I created a wrapper class to enable the form builder to create an
a2dDocumentFrame instead of a wxFrame, and it seems to have fixed the
crashing-on-exit with respect to the dragging tool.  However, the
world-preview view still does not get drawn correctly at startup.  Is
there any way to force a post-layout re-render or something of that
sort to get it to redraw the contents, or a view invalidation?

a2dCanvas::

Refresh( true )
void SetMappingShowAll( bool centre = true );

OR

drawerView->Update( a2dCANVIEW_UPDATE_ALL );


a2dCANVIEW_UPDATE_ALL invalidates the wholebuffer of the view, and redraw it from the document. After that it generates a blit too in a2dCanavs::OnPaint

Refresh same stuff more or less.


Do you think in the future there could be a wxFrame-compatible
constructor for the a2dDocumentFrame?

Only a constructor?
In that case users needs to set the view afterwards. Not impossible, but ...

 That way I wouldn't need to use
a wrapper at all, and people could build interfaces directly using
a2dDocumentFrame in wxFormBuilder.

Never used it. And don't understand why its needs such a constructor??
Can you really use a2dDocumentFrame after that, or is it just a trick to make it work.

It really makes the interface
design aspect a lot easier.  It'd be really great if there were native
widgets that could be placed into the interface in wxFormBuilder, but
that'd be a pain to compile for it.  Here's the wrapper class I used
if anyone is interested.  Unfortunately, it makes some assumptions
about how the frame is initialized:

Exactly, so that last part still needs to be done.

Klaas



--
Unclassified


------------------------------------------------------------------------------------------------------------
Disclaimer:

If you are not the intended recipient of this email, please notify the sender and delete it. Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------

begin:vcard
fn:Klaas Holwerda
n:Holwerda;Klaas
note:Unclassified
version:2.1
end:vcard

-------------------------------------------------------------------------
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

Reply via email to