Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - DrawCaptionIcon Property?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DrawCaptionIcon Property?

 Post Reply Post Reply
Author
Message
oli.dune View Drop Down
Groupie
Groupie


Joined: 18 June 2010
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote oli.dune Quote  Post ReplyReply Direct Link To This Post Topic: DrawCaptionIcon Property?
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
oli.dune View Drop Down
Groupie
Groupie


Joined: 18 June 2010
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote oli.dune Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
oli.dune View Drop Down
Groupie
Groupie


Joined: 18 June 2010
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote oli.dune Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.109 seconds.