HighTechTalks DotNet Forums  

.NET FW v1.1 Listview flickering issue

Dotnet Framework (WinForms Controls) microsoft.public.dotnet.framework.windowsforms.controls


Discuss .NET FW v1.1 Listview flickering issue in the Dotnet Framework (WinForms Controls) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
Richard
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-07-2007 , 08:54 AM






Hello Linda,

Well, QA has already noticed some "side effects" of using
EnableVisualStyles, just what does that do in regards to icons?

Richard

"Linda Liu[MSFT]" wrote:

Quote:
Hi Richard,

I have received a reply from our internal discussion group. The reply said
that this is an issue of common control v6 issue in .NET 1.1 applications.

Since calling Application.DoEvents after calling
Application.EnableVisualStyles could solve the problem, a hot fix request
would likely be rejected.

Thank you for sharing the workaround in the community. It will definitely
benefit all of us!

If you have any other questions in the future, please don't hesitate to
contact us. It's always our pleasure to be of assistance!

Have a nice weekend!

Sincerely,
Linda Liu
Microsoft Online Community Support



Reply With Quote
  #12  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-09-2007 , 10:09 PM






Hi Richard,

Thank you for your feedback!

If an application is enabled visual styles by calling the
Application.EnableVisualStyles, .NET Framework will draw controls with
visual styles.

If there's a problem in drawing controls with visual styles, e.g. in our
case, the icons don't appear in the ListView when the visual styles is
enabled for the application, calling the Application.DoEvents can always
solve the problem.

If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support


Reply With Quote
  #13  
Old   
Richard
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-10-2007 , 11:11 PM



Hello Linda,

Well, EnableVisualStyles does have a side effect with toolbars. The toolbar
offers a property ButtonSize, which can be set when EnableVisualStyles is not
called. When the EnableVisualStyles is called, the toolbar buttons simply
ignore the specified size. They automatically get to be the size of the
content of the toolbar button.

Please advise on how to not have unwanted side effect on the toolbar
(buttons)...

Thank you,

Richard

"Linda Liu[MSFT]" wrote:

Quote:
Hi Richard,

Thank you for your feedback!

If an application is enabled visual styles by calling the
Application.EnableVisualStyles, .NET Framework will draw controls with
visual styles.

If there's a problem in drawing controls with visual styles, e.g. in our
case, the icons don't appear in the ListView when the visual styles is
enabled for the application, calling the Application.DoEvents can always
solve the problem.

If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support



Reply With Quote
  #14  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-11-2007 , 05:14 AM



Hi Richard,

I performed a test on this issue and did reproduce the problem on my side.

I searched in our internal data base and found that this is a known issue.
Unfortunately, there's no workaround so far.

I suggest that you use the Panel and Button to mimic the ToolBar, i.e. add
some Buttons on a Panel and dock the Panel to the top of the form. If you
don't like the Button to be rendered with visual styles, you may set the
FlatStyle property of the Button to a value other than System.

Hope this helps.

If you have any concern, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support


Reply With Quote
  #15  
Old   
Richard
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-11-2007 , 10:31 AM



Hello Linda,

Well, sure enough that a panel with buttons would do the job, but it just so
happens I do not have control over that - the customer does not want to
modify their applications and our framework broke it (by enabling visual
styles).

What can be done in this case?

Thank you,

Richard

"Linda Liu[MSFT]" wrote:

Quote:
Hi Richard,

I performed a test on this issue and did reproduce the problem on my side.

I searched in our internal data base and found that this is a known issue.
Unfortunately, there's no workaround so far.

I suggest that you use the Panel and Button to mimic the ToolBar, i.e. add
some Buttons on a Panel and dock the Panel to the top of the form. If you
don't like the Button to be rendered with visual styles, you may set the
FlatStyle property of the Button to a value other than System.

Hope this helps.

If you have any concern, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support



Reply With Quote
  #16  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-13-2007 , 06:04 AM



Hi Richard,

Thank you for your feedback!

As we all know, to erase the flickering of the ListView in .NET 1.1, we
have to use the version 6 ListView in the comctl6.dll(to do this, call the
Application.EnableVisualStyles method).

However, the version 6 ToolBar has an problem that the ButtonSize property
doesn't work and unfortunately there's no workaround so far.

IMO, even if there's a workaround for the ToolBar issue, your customer
still need to modify their applications to apply this workaroud. In
additon, I don't think it needs much modifications or efforts to use a
Panel with some Buttons to replace the ToolBar.

Thank you for your understanding!

Sincerely,
Linda Liu
Microsoft Online Community Support


Reply With Quote
  #17  
Old   
Richard
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-13-2007 , 09:14 AM



Hello Linda,

Well, our framework "owns" the message loop creation (application.run),
thereby we do the enablevisualstyles, which break their applications.

Anyhow, I'll what can be done...

Richard

"Linda Liu[MSFT]" wrote:

Quote:
Hi Richard,

Thank you for your feedback!

As we all know, to erase the flickering of the ListView in .NET 1.1, we
have to use the version 6 ListView in the comctl6.dll(to do this, call the
Application.EnableVisualStyles method).

However, the version 6 ToolBar has an problem that the ButtonSize property
doesn't work and unfortunately there's no workaround so far.

IMO, even if there's a workaround for the ToolBar issue, your customer
still need to modify their applications to apply this workaroud. In
additon, I don't think it needs much modifications or efforts to use a
Panel with some Buttons to replace the ToolBar.

Thank you for your understanding!

Sincerely,
Linda Liu
Microsoft Online Community Support



Reply With Quote
  #18  
Old   
Linda Liu[MSFT]
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-14-2007 , 05:44 AM



Hi Richard,

Quote:
Well, our framework "owns" the message loop creation (application.run)
What's the "framework" you mentioned in the above sentence? What do you
mean by "owns the message loop creation"?

Quote:
thereby we do the enablevisualstyles, which break their applications.
Do you mean that you couldn't enable visual styles in the application
because that would break the application?

Sincerely,
Linda Liu
Microsoft Online Community Support



Reply With Quote
  #19  
Old   
Richard
 
Posts: n/a

Default RE: .NET FW v1.1 Listview flickering issue - 12-14-2007 , 09:22 AM



Well it is a catch22 - to solve the listview problem, I need to
enablevisualstyles, but then that breaks their applications' icons.

"by framework" I mean a framework that we provide so that they can build
their specialized applications.

"Linda Liu[MSFT]" wrote:

Quote:
Hi Richard,

Well, our framework "owns" the message loop creation (application.run)

What's the "framework" you mentioned in the above sentence? What do you
mean by "owns the message loop creation"?

thereby we do the enablevisualstyles, which break their applications.

Do you mean that you couldn't enable visual styles in the application
because that would break the application?

Sincerely,
Linda Liu
Microsoft Online Community Support



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.