U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Private members in Switch used in Paint
Private members in Switch used in Paint [message #9306] Thu, 26 April 2007 13:04 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
I need to overload the Paint method of the Switch ctrl to add some extra behaviour, but this is impossible because it uses some members that are declared as 'private'.

The offending members are:
	int          pushindex;
        [...]
	Vector<int>  posx;
	int          linecy;
	int          light;

I can see why these are private, but is there anything that can be done? IMO it is quite important that a Ctrl's Paint method is reproducable by sub-classes since it is quite commonly changed (at least by me Smile), and the only other solution is to copy the whole class.

Cheers,
James
 
Read Message
Read Message
Previous Topic: HasFocus and popup widnows
Next Topic: how to force ImageView snippet to update in RT
Goto Forum:
  


Current Time: Fri Jul 31 18:02:41 GMT+2 2026

Total time taken to generate the page: 0.00896 seconds