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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » NoBackground
NoBackground [message #7344] Sat, 23 December 2006 09:41 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
EditField, ArrayCtrl, LineEdit, DocEdit, ColumnList, TreeCtrl now have "NoBackground" option.

If active, background is no painted, so anything begind widget is visible.

Method activates Transparent too. Anyway, alternative use is to override Paint method (drawing the background and then original Paint method) - in this case it is more optimal to setup the mode back to Opaque.

Mirek
Re: NoBackground [message #7353 is a reply to message #7344] Sat, 23 December 2006 11:41 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
What is the difference between NoBackground and Transparent then?

Bas
Re: NoBackground [message #7354 is a reply to message #7353] Sat, 23 December 2006 11:51 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fallingdutch wrote on Sat, 23 December 2006 05:41

What is the difference between NoBackground and Transparent then?

Bas


Good question. I was sitting at the issue for 20 minutes before deciding that two are distinct.

The reason is described above: You might want to provide thr background by overriding Paint method. In that case, Transparent is not necessary. And it is slower than "direct" painting. So by keeping features distinct, you can achieve better performance in special cases.

Mirek
Previous Topic: U++ now in namespace Upp.....
Next Topic: TreeCtrl / ArrayCtrl / ColumnList unification
Goto Forum:
  


Current Time: Fri Apr 19 21:00:13 CEST 2024

Total time taken to generate the page: 0.04062 seconds