[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multiple canvases



Referring to the V test app, in v/test, then create two different classes similar to testCmdWindow, except one will create a text canvas, and one will create a graphics canvas. You can use the vAppWinInfo class to store info on what type of window you have, and you testApp::NewAppWin member can check this to see what type of window to create. (or you can have two kinds of testApp::NewAppWin members, one for text, one for graphics.)

...Tom Hilinski


----- Original Message ----- 
From: <marvinus@inwind.it>
To: <vgui-discuss@other.debian.org>
Sent: Thursday, June 28, 2001 5:46 AM
Subject: Multiple canvases


Ciao everybody!

I'm trying to add some graphics features to a C++ program for scientific calculation that I wrote some time ago. I chose V because it seemed easy to learn and portable.
So far, I've been able to use the vTextCanvasPane to display the numerical results, and the vCanvasPane to plot the graphics. The problem is that I'm not able to put the 2 different canvases in the same application; I watched all the example code provided with the package, but all of them use only one kind of canvas per application.
What I would like to do is quite simple: when you press a button, some text is displayed in the text canvas, and at the same time some lines are displayed in the vcanvas.

Does anyone know of an example application that behave like this, or similar?

Ciao, Marvin 




-- 
To UNSUBSCRIBE, email to other-vgui-discuss-request@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@other.debian.org



Reply to: