![]() |
Redraw controls problem |
Post Reply ![]() |
Author | |
San0k ![]() Groupie ![]() Joined: 06 February 2008 Location: Ukraine Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
San0k ![]() Groupie ![]() Joined: 06 February 2008 Location: Ukraine Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
Please help me.
Subj problem everywere in Ribbon ActiveX! |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
you can call RedrawBar. How do you change icon ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
San0k ![]() Groupie ![]() Joined: 06 February 2008 Location: Ukraine Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
RedrawBar did't help.... :(
I change icon by next method: CommandBars.Icons.RemoveIcon(controlId); CommandBars.Icons.AddBitmap(....); |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Think better add all icons in startup but change IconId property of corresponded controls
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
San0k ![]() Groupie ![]() Joined: 06 February 2008 Location: Ukraine Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
But in my project icons generates at runtime. I cannot load all in startup :(
|
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
Does it help if after you do this:
CommandBars.Icons.RemoveIcon(controlId); CommandBars.Icons.AddBitmap(....); Control.IconID=controlId Maybe this will force refresh |
|
![]() |
|
San0k ![]() Groupie ![]() Joined: 06 February 2008 Location: Ukraine Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
CommandBarGalleryItem hav't IconId propery :(
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |