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 / Forms Programming / February 2007

Tip: Looking for answers? Try searching our database.

A reliable & effiecent way to change labels back to original state

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael - 28 Feb 2007 06:54 GMT
Hi there,

Straight-up thanks for taking the time, if I can help in the future I'd be
delighted...

Here's what I do...
I love using labels that do something on-click.
I change effects, fonds and background colour either on-mouse move,
on-mouse down and on-click.

Here's my issue...
I am using a number of different methods to change labels back to their
original state. All seem to do the trick but I've somehow got the feeling I
am not doing it properly.

1) I either loop through a collection of controls on a page or form and do
it this way, or
2) if there only a few labels I dump code like obj.SpecialEffect = 0 into
the form's Details on-mouse move and into the header just to make sure!
3) I am also using a function that resets all and the caller is set

Bottom line, is there a better and effecient way of doing this?

Thanks for any feedback and have a wonderfull day
mscertified - 28 Feb 2007 15:31 GMT
Any way that works is good enough. However, I'd caution against using
non-standard user-interface features. There is a good reason that all
applications should use the same user-interface elements - so users dont have
to retrain for each application.

-Dorian

> Hi there,
>
[quoted text clipped - 20 lines]
>
> Thanks for any feedback and have a wonderfull day
Marshall Barton - 28 Feb 2007 16:28 GMT
>Straight-up thanks for taking the time, if I can help in the future I'd be
>delighted...
[quoted text clipped - 16 lines]
>
>Bottom line, is there a better and effecient way of doing this?

If only one control is in a changed state at a time, I like
to set a module level variable to that control's object.
Then the Detail's code only needs to reset that one control
without worrying about other controls.  OTOH, if you have
control's that are fairly close to each other so that a high
speed mouse movement might not trigger the detail's mouse
events, it's a good idea to check the variable and reset it
before setting the new mouse position's control.

Signature

Marsh
MVP [MS Access]

 
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.