Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Improved control of Color Picker
Message
From
16/10/2005 12:19:51
 
 
To
16/10/2005 11:06:49
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01059486
Message ID:
01059497
Views:
8
>George--
>
>>>I need to open the Color Picker with the Define Custom Color panel open. Once the Color Picker is open, Alt+D from the keyboard does the trick. I can't see any way to make this happen with GetColor () and KEYBOARD or Window Scripting Host.
>>>
>>>Is there some way to get this control using the Win 32 API?
>>>
>>>
>>
>>You could use the Common Dialog ActiveX control, but you may not be able to get the results you want. I'd suggest that you try setting the Flags property to CC_FULLOPEN (0x00000002) prior to calling the ShowColor() method. This is just a SWAG, BTW.
>
>I looked at the description of the Common Dialog Foundation Class in the VPP documentation. Am I looking in the right place?
>
>I did not see anything about color. The Common Dialog seems to be about selecting files, fonts, printers, etc.
>
>
>Tim


Hi Tim,

Here is an example of font picker (includes a color in the font dialog), and a color picker (full open)

Change VFP Object Font Style using MSComDlg
http://www.tek-tips.com/faqs.cfm?fid=4495

Regards
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform