Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - popupcontrol and setting the color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

popupcontrol and setting the color

 Post Reply Post Reply
Author
Message
Gutauckis View Drop Down
Newbie
Newbie


Joined: 06 December 2004
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gutauckis Quote  Post ReplyReply Direct Link To This Post Topic: popupcontrol and setting the color
    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...

????
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: 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
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.172 seconds.