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 » Look and Chameleon Technology » Appearance problem in TabCtrl
Appearance problem in TabCtrl [message #32549] Tue, 24 May 2011 16:25 Go to previous message
qapko is currently offline  qapko
Messages: 55
Registered: October 2007
Location: Slovakia
Member
Hello,
I have appearance problem in TabCtrl on one machine running Windows XP using Ultimate++ 3211. Problem appears after setting transparent (opaque) image to a tab using tab.GetItem(index).SetImage(...). Then after switching through the tabs it looks like this:

index.php?t=getfile&id=3259&private=0

The mess in the last tab is certainly a distorted square from the first tab.
I can't reproduce the problem in a small test application but after some research I finally found something interesting. In file ImageWin32.cpp I've changed this one line in Image::Data::PaintImp method and it helped:

	if(GetKind() == IMAGE_OPAQUE && paintcount == 0 && sr == Rect(sz) && IsWinNT() && w.IsGui()) {
		LTIMING("Image Opaque direct set");
		SetSurface(w, x, y, sz.cx, sz.cy, buffer);
//		paintcount++;  /* removing this line helped */
		return;
	}

I still do not understand the issue completely but if you have any idea as how should I continue with the research I would appreciate it.

Thank you for your help and have a nice day Smile

Gabi
  • Attachment: tabctrl.png
    (Size: 1.85KB, Downloaded 923 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BUG? ImageOp's not HotSpot aware
Next Topic: Font drawing in linux
Goto Forum:
  


Current Time: Sun Apr 28 08:43:24 CEST 2024

Total time taken to generate the page: 0.07270 seconds