Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / February 2008

Tip: Looking for answers? Try searching our database.

Record Selectors & Navigation Buttons: Set BackColor?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
(PeteCresswell) - 17 Feb 2008 17:14 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.
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.