Hi Andrew,

Instead of a colored button to display the selected color, you can display a brush 
picker with the selected color as solid fill. Not
exactly correct, but a close approximation.

Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/
http://hjem.get2net.dk/lars-online/
WGS84: 10.20'40"E 55.20'20"N
----- Original Message -----
From: "Canfield, Andrew" <[EMAIL PROTECTED]>
To: "'B. Thoen'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 4:48 PM
Subject: RE: MI-L Three MapBasic questions


> Thanks Bill,
>   That answers my questions exactly.
>
> I am making a small tool for our use here which you enter the RGB
> value like 255.0.255 or the Hex value like FF00FF and it returns the MapInfo
> Color Value, The Hex Color Value, and the RGB color value. The tool is
> pretty much done but I was going to redraw the dialog or a button in the
> color specified so they could see it visually also.
> Thanks for the quick response,
> Andy
>
> -----Original Message-----
> From: B. Thoen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 8:11 AM
> To: Canfield, Andrew
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: MI-L Three MapBasic questions
>
>
> On Thu, 5 Dec 2002, Canfield, Andrew wrote:
>
> > First is there a way to make an argument to a function Optional like in VB
> > where you say something like
>
> No.
>
> > Second is there any way to Color buttons on a dialog so they aren't the
> > standard grey?
>
> No.
>
> > Three does MapBasic have a repaint or redraw function for it's dialogs or
> do
> > I have to call the Window's API?
>
> No to the first, but I can't imagine why you'd need this. You can always
> call API functions to extend MapBasic, but if you need to have your app
> look like it was written in VB, perhaps you should consider an Integrated
> Mapping approach.
>
> - Bill Thoen
>
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 4437
>


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 4438

Reply via email to