Print Page | Close Window

DrawCaptionIcon Property?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=16951
Printed Date: 16 May 2024 at 8:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DrawCaptionIcon Property?
Posted By: oli.dune
Subject: DrawCaptionIcon Property?
Date Posted: 14 July 2010 at 9:08am
Hi there,

The documentation mentions a "DrawCaptionIcon" boolean property, which Specifies whether icons will be displayed in the pane caption bar.
I've tried it in this way:

ch_DockingPane:Icons = ch_ImageManager:Icons
ch_DockingPane:PaintManager:DrawCaptionIcon = YES
ch_DockingPane:PanelPaintManager:ShowIcons = YES
ch_DockingPane:TabPaintManager:ShowIcons = YES
        
... but no icon were shown in the panes' caption bar.
Please notice that the panes' Tab correctly displays its associated icon.

Any suggestion?
Thx




-------------
Product: Xtreme SuitePro (ActiveX) version 16.4.0

Platform: Windows 10 (64bit)

Language: OpenEdge 11.7.4



Replies:
Posted By: Aaron
Date Posted: 14 July 2010 at 1:53pm
Hi,
 
Just assign value to Pane.IconId on creation:
 
Set paneReportBank = DockingPane.CreatePane(1, 300, 300, DockRightOf, Nothing)
      paneReportBank.Title = "Caption"
      paneReportBank.IconId = 1 'Your ID of icom comes here
 
 
or
 
DockingPane.FindPane(PANE_ID).IconId = 1
 
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: oli.dune
Date Posted: 15 July 2010 at 4:56am
Thanks Aaron.

I forgot to mention it, but I've yet set the IconId property while creating the pane. And I guess assignation were successful because the icon were displayed in the Tab caption. ...but not in the Pane's caption bar.




-------------
Product: Xtreme SuitePro (ActiveX) version 16.4.0

Platform: Windows 10 (64bit)

Language: OpenEdge 11.7.4


Posted By: Aaron
Date Posted: 15 July 2010 at 10:48am
Hi,
 
ch_DockingPane:PaintManager:DrawCaptionIcon = YES      should do the trick...
 
Do you set a different VisualStyle after setting ch_DockingPane:PaintManager:DrawCaptionIcon = YES   
Setting another visual style "resets" some settings, maybe that's the problem?
 
 
 

 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: oli.dune
Date Posted: 16 July 2010 at 2:01am
That's it!

Thank you very much Aaron.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.4.0

Platform: Windows 10 (64bit)

Language: OpenEdge 11.7.4


Posted By: Aaron
Date Posted: 25 July 2010 at 7:43am
Hi,
 
I allow my customers to change the visual style of the app and found that there are more settings set to default (don't know which ones anymore...) so I re-assigned every value again after changing visual style. I once asked support for a list of settings that would be restored to default when changing to another style but never got my hands on that list  Maybe someday we will... 
 
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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