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 » Very strange issue with WindowBlinds
Very strange issue with WindowBlinds [message #13641] Fri, 18 January 2008 16:33 Go to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Hi!

I was trying to determine how to obtain the skin from the OS (under Windows), so I though that I'd install WindowBlinds, try out some skins and determine the limits of U++'s Chameleon.

Everything went pretty good and most stuff got skined somewhere between good and great (except for menus, which where universally very bad), but I have run into serious issues with the skin Classic, from Stardock Design (included in the evaluation package of WindowBlinds).

Using this skin, all U++ applications lock up after a time, except the IDE. You can load up any app, and after playing a lot with the interface and especially dragging other windows on top of the U++ application freezes it. I noticed that if you put your cursor over the window border buttons, the are not animated, like in other apps, and almost inevitably freeze the application again. Also, windows have text which is not visible when window is focused. And the strangest part is, TheIDE is immune to these issues. Window caption is present and buttons are animated. Does U++ touch window drawing. Does TheIDE have some extra code for it's windows?

The Classic skin was the only one I found that triggered this bugs. It could be that there is something wrong with it. Still, other applications have no problems with it, and it would be great if U++ apps would not lock up if there is something wrong with the theme (considering the myriad of user themes on the Internet). I was using Windows Vista.

PS: I'm trying to find out how U++ obtains the skining information. Could you direct me in the right direction? I'm trying to get the look of some controls which U++ does not cover.
Re: Very strange issue with WindowBlinds [message #13654 is a reply to message #13641] Sat, 19 January 2008 11:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
cbpporter wrote on Fri, 18 January 2008 10:33

Hi!

I was trying to determine how to obtain the skin from the OS (under Windows), so I though that I'd install WindowBlinds, try out some skins and determine the limits of U++'s Chameleon.

Everything went pretty good and most stuff got skined somewhere between good and great (except for menus, which where universally very bad)



Screenshot? Have you tried latest sources? A lot of effort went into this over recent weeks.

Quote:


, but I have run into serious issues with the skin Classic, from Stardock Design (included in the evaluation package of WindowBlinds).



Any way how to try this?

Quote:


Using this skin, all U++ applications lock up after a time, except the IDE. You can load up any app, and after playing a lot with the interface and especially dragging other windows on top of the U++ application freezes it. I noticed that if you put your cursor over the window border buttons, the are not animated, like in other apps, and almost inevitably freeze the application again. Also, windows have text which is not visible when window is focused. And the strangest part is, TheIDE is immune to these issues. Window caption is present and buttons are animated. Does U++ touch window drawing. Does TheIDE have some extra code for it's windows?



No.

Maybe it is debug vs release or compiler dependent? ("retail" IDE is build with MSC).

Quote:


The Classic skin was the only one I found that triggered this bugs. It could be that there is something wrong with it. Still, other applications have no problems with it, and it would be great if U++ apps would not lock up if there is something wrong with the theme (considering the myriad of user themes on the Internet). I was using Windows Vista.



Definitely.

Quote:


PS: I'm trying to find out how U++ obtains the skining information. Could you direct me in the right direction? I'm trying to get the look of some controls which U++ does not cover.



For Win32, it is concentrated in CtrlLib/ChWin32.cpp.

Mirek
Re: Very strange issue with WindowBlinds [message #13657 is a reply to message #13654] Sat, 19 January 2008 14:53 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Quote:

Screenshot? Have you tried latest sources? A lot of effort went into this over recent weeks.

I can post a screenshot, but it seems there are huge differences between Vista and XP. I have only XP home, so you'll have to wait till Monday for Vista screenshot. Under Vista, the cursor of menus is drawn correctly, but the rest of the menu looks strange. Under XP the menu looks normal, only the cursor is not skined, but changes color.

This is in 712-dev1:
index.php?t=getfile&id=945&private=0


Quote:

Any way how to try this?

Sure! Google WindowBlinds, download evaluation version.

Quote:

Using this skin, all U++ applications lock up after a time, except the IDE. You can load up any app, and after playing a lot with the interface and especially dragging other windows on top of the U++ application freezes it. I noticed that if you put your cursor over the window border buttons, the are not animated, like in other apps, and almost inevitably freeze the application again. Also, windows have text which is not visible when window is focused. And the strangest part is, TheIDE is immune to these issues. Window caption is present and buttons are animated. Does U++ touch window drawing. Does TheIDE have some extra code for it's windows?

Again, on my home XP, this issue does not appear.

In the end, you must decide how far do you go with skining. A lot of cross platform or not win32 native apps have poor support in this area.

I'll post some other screenshots, but I can only put one per post (could you increase this to 3 or something?)
  • Attachment: untitled.PNG
    (Size: 22.91KB, Downloaded 1127 times)
Re: Very strange issue with WindowBlinds [message #13658 is a reply to message #13641] Sat, 19 January 2008 14:57 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Toolbars determine the skin, but only apply it to their bottom row.

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


Alos, under Vista, the font select dropdown and the paragraph style select dropdown look quite strange and of place (visually) on most skins, but under XP, seem to do a lot better.
  • Attachment: untitled2.PNG
    (Size: 42.31KB, Downloaded 1137 times)
Re: Very strange issue with WindowBlinds [message #13659 is a reply to message #13641] Sat, 19 January 2008 15:04 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Quote:

Another thing related to bar is that after the new Chameleon style that was introduced lately, if you use ToolButton outside of a ToolBar, it has a different look. It border is a lot thicker. A little diversity doesn't hurt, but during my summer hollyday, I installed U++ on a computer, where these borders where extremely thick. No other application had such thick buttons, so I don't think it was related directly to some custom windows skin. I'm sorry, but I forgot about the issue back then, and I didn't take a screenshot.


I said this in another post. Since then I was able to reproduce it, with the exact same bad look. It seems that ToolButtons outside of a toolbar are almost completely immune to system skin changes, the only thing that changes visually is the presence or absence of the ugly look. Here's a screenshot:

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

  • Attachment: untitled3.PNG
    (Size: 3.42KB, Downloaded 1313 times)
Re: Very strange issue with WindowBlinds [message #13678 is a reply to message #13659] Mon, 21 January 2008 16:43 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Quote:

Using this skin, all U++ applications lock up after a time, except the IDE. You can load up any app, and after playing a lot with the interface and especially dragging other windows on top of the U++ application freezes it. I noticed that if you put your cursor over the window border buttons, the are not animated, like in other apps, and almost inevitably freeze the application again. Also, windows have text which is not visible when window is focused. And the strangest part is, TheIDE is immune to these issues. Window caption is present and buttons are animated. Does U++ touch window drawing. Does TheIDE have some extra code for it's windows?

Quote:

Again, on my home XP, this issue does not appear.

Good news (can be bad news actually, depending on how you see it). I managed to reproduce in a non-reliable way the issue under XP too. Same skin, same problem, TheIDE still not affected.
But I did manage to lock up TheIDE just once, when it was running and I changed the system skin while TheIDE was running an application.
Re: Very strange issue with WindowBlinds [message #13709 is a reply to message #13678] Wed, 23 January 2008 21:40 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, I have tested WindowBlinds classic in Win Vista 64 and have not encountered U++ crash, only Windows explorer crashed... (which is not very encouraging w.r.t. finding a bug in U++ Smile

Have you tried to debug to catch the bug? If U++ app crashes in debug mode, should be easy to identify...

Mirek
Re: Very strange issue with WindowBlinds [message #13715 is a reply to message #13709] Thu, 24 January 2008 08:58 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
luzr wrote on Wed, 23 January 2008 21:40

Well, I have tested WindowBlinds classic in Win Vista 64 and have not encountered U++ crash, only Windows explorer crashed... (which is not very encouraging w.r.t. finding a bug in U++ Smile

Have you tried to debug to catch the bug? If U++ app crashes in debug mode, should be easy to identify...

Mirek

Explorer pretty much crashes quite often for me too.

U++ apps don't crash, they just most often but not always have no title text, and in 99% of cases lock up, as in they don't react to any events only after my mouse has entered the non-client area. I suppose I could try to debug it, and I had to go pretty low level, to see if there is not something preventing WM_NCXXXX events from being processed correctly.

And it happens both in DEBUG and Optimal mode, with MSC7 (or 7.1) and MINGW.

PS: How about the chameleon bugs? Could you reproduce those?
Re: Very strange issue with WindowBlinds [message #13726 is a reply to message #13715] Thu, 24 January 2008 18:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
cbpporter wrote on Thu, 24 January 2008 02:58


PS: How about the chameleon bugs? Could you reproduce those?


Yes. Will try to fix them soon.

Mirek

Re: Very strange issue with WindowBlinds [message #13894 is a reply to message #13726] Thu, 31 January 2008 15:51 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
I must say that poking into Chameleon code is one of my least pleasant activities in U++. But it seems that slowly I'm getting the hang of it.

Quote:

It seems that ToolButtons outside of a toolbar are almost completely immune to system skin changes, the only thing that changes visually is the presence or absence of the ugly look.


I use a lot of ToolButtons because U++ lacks a good flat button. It seems that somehow the button does not manage to access the correct style, probably because setting up the styles is left to ToolBar. This fixes the issue:

ToolButton::ToolButton()
{
	Reset();
	checked = false;
	paint_checked = false;
	SetStyle(ToolBar::StyleDefault().buttonstyle);
	Transparent();
}

[Updated on: Thu, 31 January 2008 15:52]

Report message to a moderator

Re: Very strange issue with WindowBlinds [message #13921 is a reply to message #13894] Fri, 01 February 2008 21:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
cbpporter wrote on Thu, 31 January 2008 09:51

I must say that poking into Chameleon code is one of my least pleasant activities in U++. But it seems that slowly I'm getting the hang of it.



Well, it is not a nice piece of code. For once, I have prefered compact code.... plus there is a lot of patching to accomodate everything over time.

Quote:


ToolButton::ToolButton()
{
	Reset();
	checked = false;
	paint_checked = false;
	SetStyle(ToolBar::StyleDefault().buttonstyle);
	Transparent();
}



Thanks, I guess you are right. Fix applied.

Mirek
Re: Very strange issue with WindowBlinds [message #14500 is a reply to message #13921] Wed, 27 February 2008 15:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, for now I have solved the WindowBlinds issue by falling back to XP code if the name of the theme is not "Aero" (before, running on Vista was activated Vista parts of chameleon, now both Vista and "Aero" are required).

Mirek
Re: Very strange issue with WindowBlinds [message #14894 is a reply to message #14500] Wed, 19 March 2008 07:36 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Sorry, even though I finally checked out the SVN version to see, my trial of WindowBlinds has expired Smile, so I can not test it.
Re: Very strange issue with WindowBlinds [message #14950 is a reply to message #14894] Sat, 22 March 2008 00:42 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
cbpporter wrote on Wed, 19 March 2008 02:36

my trial of WindowBlinds has expired Smile


Same problem here Smile Wink

Mirek
Previous Topic: Need wider SpinButton -- How?
Next Topic: HeaderCtrl adjustment...
Goto Forum:
  


Current Time: Tue Apr 16 06:27:12 CEST 2024

Total time taken to generate the page: 0.02936 seconds