Re: Letting a user select a color for a control
From: Michael H (MichaelH_at_discussions.microsoft.com)
Date: 08/21/04
- Next message: Ken Snell [MVP]: "Re: Can't "Dim dbs as database""
- Previous message: Allen Browne: "Re: Can't "Dim dbs as database""
- In reply to: Stephen Lebans: "Re: Letting a user select a color for a control"
- Next in thread: Michael H: "Re: Letting a user select a color for a control"
- Reply: Michael H: "Re: Letting a user select a color for a control"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Aug 2004 18:29:01 -0700
Thank you, that's exactly what I was looking for. However, I would like the
entire Color Dialog form to be displayed on open (as if the "Define Custom
Colors" button had already been clicked). I think I need to set the
CC_FULLOPEN flag instead of the CC_SOLIDCOLOR flag in order to do this. Can
you tell me how to declare it?
Also, is there any way to specify where on the screen the Color Dialog
appears when it is opened?
-Michael H
"Stephen Lebans" wrote:
> That's an older version. See any of the recent projects on my site that
> call the Color DIalog window. The option has been added to allow you to
> specify an initial color selection.
> http://www.lebans.com/tabcolors.htm
> --
>
> HTH
> Stephen Lebans
> http://www.lebans.com
> Access Code, Tips and Tricks
> Please respond only to the newsgroups so everyone can benefit.
>
>
> "Michael H" <MichaelH@discussions.microsoft.com> wrote in message
> news:20076332-C25F-430F-833D-E4DC067F0F02@microsoft.com...
> > Thank you, this is very helpful. I have a question about a minor
> detail,
> > though, if you don't mind.
> >
> > I've changed the procedure a bit so that a color value is returned by
> the
> > aDialogColor function. I would like to specify an initial color
> selection to
> > be used when the dialog box is opened. To do that, I think I need to
> set the
> > CC_RGBINIT flag instead of the CC_SOLIDCOLOR flag, but in the code at
> your
> > link below, the CC_SOLIDCOLOR flag is the only one declared as a
> constant:
> >
> > Private Const CC_SOLIDCOLOR = &H80
> >
> > Could you tell me what would be the declaration for the CC_RGBINIT
> flag
> > (along with the remaining flags, if you know them), and how I would
> then let
> > the dialog box know what color to use? I think I need to set
> rgbResult to
> > something before calling aDialogColor. If the color information I
> have is,
> > for example, 16391444(which is equal to RGB(20,29,250), which is a
> non-basic
> > blue), can I just set rgbResult equal to 16391444, and then call
> aDialogColor?
> >
> > I'm also hoping that setting the CC_RGBINT flag will also eliminate
> the need
> > to click in the thin box on the far right of the Color Dialog (once
> the
> > "Define Custom Colors" button is clicked) for the color selection to
> be
> > displayed in the "Color" box. It is not displayed when I only click
> in the
> > large box (just to the left of that thin box).
> >
> > Thanks in advance for any help you can give me, and sorry if I've been
> a bit
> > to verbose. If I've left out any important info, or if I'm trying to
> go
> > about this the wrong way, please let me know.
> >
> > -Michael H
> >
> >
> >
> > "Graham R Seach" wrote:
> >
> > > Try this:
> > > http://www.mvps.org/access/api/api0060.htm
> > >
> > > Regards,
> > > Graham R Seach
> > > Microsoft Access MVP
> > > Sydney, Australia
> > >
> > > Microsoft Access 2003 VBA Programmer's Reference
> > > http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
> > >
> > >
> > > "somba" <somba@discussions.microsoft.com> wrote in message
> > > news:F203D467-207F-4189-B845-52F9D48223FB@microsoft.com...
> > > > Is there a way to let a user change the color of a control? Some
> kind of
> > > color select?
> > >
> > >
> > >
>
>
- Next message: Ken Snell [MVP]: "Re: Can't "Dim dbs as database""
- Previous message: Allen Browne: "Re: Can't "Dim dbs as database""
- In reply to: Stephen Lebans: "Re: Letting a user select a color for a control"
- Next in thread: Michael H: "Re: Letting a user select a color for a control"
- Reply: Michael H: "Re: Letting a user select a color for a control"
- Messages sorted by: [ date ] [ thread ]