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 » Draw, Display, Images, Bitmaps, Icons » Well another problem I'm facing (drawing inside Tab)
Re: Well another problem I'm facing [message #47874 is a reply to message #47830] Sat, 15 April 2017 11:44 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
germax wrote on Sat, 08 April 2017 03:29
I have the following to work with atm:
class MINE : public WithMyLayout<TopWindow>
{
	WithTAB_one<ParentCtrl>    tab_1;
	WithTAB_two<ParentCtrl>    tab_2;
	WithTAB_three<ParentCtrl>  tab_3;
	WithTAB_four<ParentCtrl>   tab_4;
	WithTAB_five<ParentCtrl>   tab_5;
	WithTAB_six<ParentCtrl>    tab_6;
............
}



Once again I am not 100% sure what the question is, but maybe you are just confused by example and thing that you need to use above (simplified) form for tabs. That is not true, you can use any Ctrl derived object here, so:

struct MyTab4 : WithTAB_four<ParentCtrl> {
    virtual void Paint(Draw&);
};

class MINE : public WithMyLayout<TopWindow>
{
	WithTAB_one<ParentCtrl>    tab_1;
	WithTAB_two<ParentCtrl>    tab_2;
	WithTAB_three<ParentCtrl>  tab_3;
	MyTab4                     tab_4;
	WithTAB_five<ParentCtrl>   tab_5;
	WithTAB_six<ParentCtrl>    tab_6;
............
}


Mirek

[Updated on: Sat, 15 April 2017 11:45]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: is it possible to attach a Ctrl to a freshly drawn item?
Next Topic: Loses qualifiers const in Size Image::GetDPI(void)
Goto Forum:
  


Current Time: Sun Apr 28 19:44:22 CEST 2024

Total time taken to generate the page: 0.04153 seconds