WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Determine User Specified Color in Dialog


Keywords: get default background color of dialog

Question:

I would like my dialogs to use the same color backgrounds as all the other dialogs on a users system. How can I determine what color the user has specified for their dialogs?

Answer:

This code gets the user specified default dialog background color.
if RegExistValue(@REGCURRENT,"Control Panel\colors[ButtonFace]")
	D3COLOR=RegQueryValue(@REGCURRENT,"Control Panel\colors[ButtonFace]")
else
	D3COLOR="192,192,192"
endif
Message("User color is",d3color)
Exit

Article ID:   W15900
File Created: 2004:03:30:15:41:38
Last Updated: 2004:03:30:15:41:38