Jan Steuer wrote:
> Hello,
> I'm going to make my own simple GUI for CS (CE GUI isn't sufficient for me). 
> I want to have transparent overlapping widgets.
> But I haven't found any tutorial how to write 2D applications in CS. I went 
> through the reference but I didn't find answers for some questions.
>
> I want to have a buffer for every widget containing its contents which can be 
> changed. When the widget is asked, it will copy the buffer to the screen 
> canvas. And moreover widgets can be transparent.
> Could somebody tell me how to do it?

Heh. Millions of seconds ago I wrote a GUI for CS called AWS, then replaced it 
with AWS2.  AWS2 was, IIRC mostly removed - but it may be in the CSEXTRAS.

In any case, you can save yourself some time by checking it out.  Also, I wrote 
some very nice vector drawing functions that do a lot of the hard and annoying 
work for you, all bundled up in a class.  It allows you to buffer the actual 
drawing operations, instead of reserving a bitmap for them.  There are good 
reasons for doing this, including the fact that window redraw is accomplished 
without the need to recurse your decision code.

The classes are csPen and csMemoryPen.  It may also have been removed.  In any 
case, AWS (the first version) was able to do exactly what you suggest, but in 
practice it doesn't work out as well as you might think.  Partially b/c some 
renderers have texture limits that require power of 2 sizing, or other issues.



-={C}=-

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to