Anybody know how to coerce the colors of a form's RecordSelectors
section and NavigationButtons?
I'm guessing there's an API call somewhere, but don't have a clue
beyond that.

Signature
PeteCresswell
Dirk Goldgar - 17 Feb 2008 19:04 GMT
> Anybody know how to coerce the colors of a form's RecordSelectors
> section and NavigationButtons?
>
> I'm guessing there's an API call somewhere, but don't have a clue
> beyond that.
You can replace the standard navigation buttons with your own, of course,
thus giving more control. The record selector, though, is going to be
tough. You could replace that, too, I guess, with a control of your own.
To work directly on the built-in UI elements is going to require some pretty
deep wizardry. Where's Stephen Lebans when you need him?

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
Stephen Lebans - 17 Feb 2008 20:09 GMT
One of the few persistent Device Context(hDC) handles is the one linked to
the form's hWnd property.
The handle to a Device Context you get returned when you call:
hDC = GetDC(Me.Hwnd)
actually corresponds to the screen area of the RecordSelector. The problem
is knowing when to repaint this area. You'd have to use a Timer or Subclass
the Form. IMHO neither direction offers a viable solution.
Alternatively, I know in the past I have tried to over ride the current
default for the Background Brush used to paint portions of an Access form.
As far as I can remember this technique does not work for the Record
Selector area. But you can easily test this yourself. The MDI Background
solution on my site contains the required code. Simply substitute your
form's hWnd property where requried.
Finally, it might be simpler to recreate(in single form or continuous view,
the record selector area with a control(s) of your choice.

Signature
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> Anybody know how to coerce the colors of a form's RecordSelectors
> section and NavigationButtons?
>
> I'm guessing there's an API call somewhere, but don't have a clue
> beyond that.
(PeteCresswell) - 18 Feb 2008 01:32 GMT
Per Stephen Lebans:
>Finally, it might be simpler to recreate(in single form or continuous view,
>the record selector area with a control(s) of your choice.
And... simplest of all.... Fagedddaboutit! -)

Signature
PeteCresswell