Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » easiest way to convert a Topwindow into a control
Re: easiest way to convert a Topwindow into a control [message #6093 is a reply to message #6092] Mon, 30 October 2006 10:32 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
yeus wrote on Mon, 30 October 2006 04:23

yay ! thx... that helped me a lot...

I also found out another thing:

it is very important to include the .h-file of your class BEFORE you define LAYOUTFILE:

#include "mylayout.h"

#define LAYOUTFILE <test5/test5.lay>


Otherwise it won't compile... jesus it took me about 2 days to find that out Smile...




Yes. That is because .lay uses real classes.

Anyway, you can have in layout even class that is not defined yet. Just leave the classname field empty and add it as member into your class.

Quote:


My Window doesn't paint any backround. Is there a method to paint the backround automatically without drawing a rectangle in the "Paint" function?



No. Use DrawRect(GetSize(), White()). (Note that setting color of background would be done in sigle line - just as is drawing actual background in Draw).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Promlem with ColumnList::SetDisplay()
Next Topic: run function from user control to other control
Goto Forum:
  


Current Time: Fri Jun 06 11:09:26 CEST 2025

Total time taken to generate the page: 0.04017 seconds