You don't need to create two canvases, just create two contexts for the same canvas. 
Actually, you should only have one context for the canvas at one time or the flags may 
become confused :)

Since this part of PicoGUI is not well documented, it's easy to make mistakes. Send 
your source code and I'll take a look at it.


On Tue, 14 August 2001, �brahim �lg�r wrote:

>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content="text/html; charset=iso-8859-9" http-equiv=Content-Type>
> <META content="MSHTML 5.00.2314.1000" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#d8d0c8>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Hello Micah, 
> </FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I have tried your solutions 
> about writing data on a bitmap. I'm succesfull with creating a persistent canvas 
> but not in Immediate one. The main problem is how can I put a immediate canvas 
> after creating a&nbsp;persistent canvas and putting a bitmap in it. Both 
> canvasses are alligned over all client area. And the second big problem is 
> creating a menu. My code looks like as follows</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp; main()</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Init picogui</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Create a persistent 
> canvas</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Put a bitmap in it</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Create an immediate 
> canvas</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Put some values </FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Create a menu</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Eventloop</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;end</FONT></DIV>
> <DIV><FONT face=Arial size=2>but as you understand after putting a bitmap on 
> persistent canvas the code does not run properly. Does anybody understand 
> what&nbsp;the problem is ?</FONT></DIV>
> <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Thank you 
> guys.</FONT></DIV></BODY></HTML>

--
Only you can prevent creeping featurism!


_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to