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

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: 14290
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: 14290
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: Sat Apr 25 12:57:46 GMT+2 2026

Total time taken to generate the page: 0.00432 seconds