Print Page | Close Window

Redraw controls problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9987
Printed Date: 07 October 2024 at 6:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Redraw controls problem
Posted By: San0k
Subject: Redraw controls problem
Date Posted: 28 March 2008 at 10:22am
Hello!

I've found that controls sometimes are not being redrawn when I change their icons during runtime (e.g. ButtonPopup icon or gallery item icons). The problem disappers when I hover the mouse under corresponding Ribbon Group or change the tab.

Can this be fixed?
Thanks for great support!
Alex.



Replies:
Posted By: San0k
Date Posted: 07 April 2008 at 8:41am
Please help me.
Subj problem everywere in Ribbon ActiveX!


Posted By: Oleg
Date Posted: 07 April 2008 at 12:29pm
Hi,
you can call RedrawBar. How do you change icon ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: San0k
Date Posted: 09 April 2008 at 5:57am
RedrawBar did't help.... :(
I change icon by next method:

   CommandBars.Icons.RemoveIcon(controlId);
   CommandBars.Icons.AddBitmap(....);


Posted By: Oleg
Date Posted: 09 April 2008 at 2:42pm
Hi,
 
Think better add all icons in startup but change IconId property of corresponded controls


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: San0k
Date Posted: 25 June 2008 at 7:32am
But in my project icons generates at runtime. I cannot load all in startup :(


Posted By: ijwelch
Date Posted: 25 June 2008 at 10:09pm
Does it help if after you do this:
CommandBars.Icons.RemoveIcon(controlId);
CommandBars.Icons.AddBitmap(....);
Control.IconID=controlId

Maybe this will force refresh


Posted By: San0k
Date Posted: 27 June 2008 at 5:40am
CommandBarGalleryItem hav't IconId propery :(



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net