Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Redraw galleries content
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Redraw galleries content

 Post Reply Post Reply
Author
Message
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Topic: Redraw galleries content
    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.
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.
Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2008 at 5:23am
Anyone can help me?!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2008 at 10:37am
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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
San0k View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Location: Ukraine
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote San0k Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2008 at 6:22am
Thanks a lot!
It works!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.