devxlogo

Color My World-In Default!

Color My World-In Default!

Just before performing your final ‘make EXE,’ switch your desktopcolor scheme and see just how many backgrounds you have hard-coded!(Sadly, several excellent shareware controls fail here, VBPJcontributors are guilty of this, and even the VB4 help fileexamples slip up!)

Try the desert desktop scheme in Win95 as a starting point, or,better still, create a new ugly scheme just to test all your controlcolors.

VB4 provides 24 system colors though a set of constants (searchhelp for Color Constants or VBTranslateColor) for use in yourcode, many of which are used as a default for VB controls, butif you’ve changed the property setting with the VB palette, youmust retype (or paste) the hexadecimal number shown next to thecolor into the property text box, substituting the 0x for &H.Alternatively, you could click on another control that alreadyhas the correct color value, copy the property value, and pasteit into your control. Then you won’t be so gray.

Technical Reviewer’s Note: In VB4, there is a new Color PaletteView Window with a DEFAULT button. Select each Form or Controlone at a time, select the DEFAULT button and the control willbe set to the Windows Default. Be aware that the Appearance propertyshould be set to 3-D for best results.

See also  Does It Make Sense to Splurge on a Laptop?
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist