Hi,
Well i think there are samples enough that explain how to create extra view on
documents.
Almost all samples I would think. But in the docview package at least. There is for instance a
statistic view of object and colours used on a document, while the drawing view is showing the
drawing in the document.
Just study the examples, and you should be able to do it.
So in short, a connector class can generator/attach a document to as many views
as you want.
And also it is possible, to have a view display info on several documents.
Klaas
On 05/27/2011 08:32 PM, M Nealon wrote:
Hi Klaas,
Sorry for not being clear.
What I was wanting is something along the lines of this "tutorial".
http://msdn.microsoft.com/en-us/library/s199bks0(v=vs.80).aspx
<http://msdn.microsoft.com/en-us/library/s199bks0%28v=vs.80%29.aspx>
Where it discusses adding multiple views to a single document.
I was looking to implement something along the same lines in my own application.
If you care to take a look, it will explain better than I.
regards
Mal
On Sun, May 22, 2011 at 11:37 PM, klaas.holwerda <n...@klaasholwerda.nl
<mailto:n...@klaasholwerda.nl>> wrote:
Hi,
Not sure i understand. There are examples (split window), where this is
done.
Anyway the wiki might teach you a bit on how wxdocview works.
In short you need a derived connector class, which is called when opening a
document, via it
templates.
In that connector class you can hook your views to windows in any way you
want.
So your application at the start just creates all the windows you need,
e.g. 4 tabs, or 4
split like
windows.
Next when opening the document, the connector you wrote, creates/hooks
views to those windows.
Example vdraws does it for one view. The principle is the same if you have
more existing views.
Or did i not understand your question?
If you really mean as a window, a single wxWindow and no subwindows in a
wxFrame etc. Well that is
a strange situation, and you need to explain some more.
Klaas
On 05/22/2011 05:16 PM, M Nealon wrote:
> Klaas,
>
> Could you outline (preferably with a bit of code) the methodology of
having a single
document with
> multiple views displayed within the same window?
>
> In other words adding multiple views to a single document and allow
switching between them.
>
> Or could you point me to a suitable tutorial wrt this?
>
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev