Print Page | Close Window

Redraw galleries content

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=11202
Printed Date: 15 June 2025 at 11:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Redraw galleries content
Posted By: San0k
Subject: Redraw galleries content
Date Posted: 25 June 2008 at 8:07am
Hello,

It is continue of subj https://forum.codejock.com/forum_posts.asp?TID=9987

I have upload swf-video demonstrates problem.
uploads/20080625_075046_Problem.zip - 20080625_075046_Problem.zip

When I change picture in first(inline) gallery icons in second(popup) gallery must be change to new icons.
But it happen only if I move mouse cursor to the gallery area. See pictures...

Before:

After I drag cursor in gallery area:


Main question:
How I can redraw Galleries from code???
RedrawBar() don't help me.



Replies:
Posted By: San0k
Date Posted: 27 June 2008 at 5:23am
Anyone can help me?!


Posted By: Oleg
Date Posted: 30 June 2008 at 12:39pm
Hi,
 
Video and screenshot gives noting. We need your code to check what you do - how load/change icons.
 
Modify our sample and attach it here.


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


Posted By: San0k
Date Posted: 01 July 2008 at 10:37am
uploads/20080701_102454_toUpload.zip - 20080701_102454_toUpload.zip

1. Build and run sample
2. Select "TEST" tab
3. Click "test1" button and make sure that lines are black.
4. Click "test2" button, in message box click on and IMMEDIATELY click test1 again.
5. You see black lines again.
6. Wait 10-20-30 second without any mouse moving but lines black also. But if you move mouse cursor into gallery area - gallery will redrawed and lines will be red!

Please see my code (with comments "Test code")

I need fire redrawing from my code!

Thanks,
Alex.


Posted By: Oleg
Date Posted: 01 July 2008 at 1:14pm
Hi,
 
assign some Id for gallery:
 
gal = (CommandBarGallery)b1.CommandBar.Controls.Add(XTPControlType.xtpControlGallery, 20000, "", false, false);

gal.Items = CommandBars.CreateGalleryItems(20000);

 
and redraw it with

CommandBars.FindControl(null, 20000, true, true).Parent.RedrawBar();



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


Posted By: San0k
Date Posted: 02 July 2008 at 6:22am
Thanks a lot!
It works!



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