Print Page | Close Window

How to change DialogBar Caption Fonr Color

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=7635
Printed Date: 18 June 2025 at 1:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change DialogBar Caption Fonr Color
Posted By: Bernie
Subject: How to change DialogBar Caption Fonr Color
Date Posted: 20 July 2007 at 12:56am
I created a DialogBar with the following code.
 
Two silly questions because I am a newbie:
1) How to change the Caption Font ForeColor but not to "effect" other controls' in the same CommandBars?
2) Why is there no Event provided for DialogBar?
In other words, I am not allowed to Declare a Dialog Variable together with "WithEvents"
 
Private Dialog As DialogBar
Sub Form_Load()
 
      Set Dialog = CommandBars1.AddDialogBar("答案卷", xtpBarRight)
      With Dialog
            .Closeable = False
            .Resizable = True
            .ShowGripper = False
            .EnableAnimation = True
            .ChildHandle = frmAnswerSheet.hWnd
            .SetSize 270, 100
      End With



Replies:
Posted By: Oleg
Date Posted: 20 July 2007 at 3:03am
Hello,
 
Yes, DialogBar doesn't have events. What events do you need ?


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


Posted By: Bernie
Date Posted: 20 July 2007 at 9:27am

Thanks for quick response.

I need some mouseevents to detect the moves of mouse entering or leaving the area of the dialogbar and when users Click on the Caption Popupmenu, as well as the move while the assigned control changed.

 
Can't I change the Caption Font ForeColor?



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