Print Page | Close Window

popupcontrol and setting the 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=2617
Printed Date: 01 October 2024 at 11:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: popupcontrol and setting the color
Posted By: Gutauckis
Subject: popupcontrol and setting the color
Date Posted: 21 July 2005 at 6:17pm
I am trying to set the background color of a popupcontrolitem to the VB system defined constant vbActiveTitleBar. However whatever direction I take it always comes out the wrong color. Anybody want to tell me what I am doing wrong....?

I have tried converting the value to the RGB values and using them but that doesnt work.

I have tried simply pasting the long value in the background parameter place, but that doesnt work...

????



Replies:
Posted By: Oleg
Date Posted: 21 July 2005 at 11:40pm

Workaround

Private Declare Function GetSysColor Lib "user32" (ByVal nIndex As Long) As Long

Debug.Print GetSysColor(vbActiveTitleBar And Not &H80000000)
Debug.Print GetSysColor(vbWindowBackground And Not &H80000000)



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



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