Re: Button Colours

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bruce (anonymous_at_discussions.microsoft.com)
Date: 07/20/04


Date: Tue, 20 Jul 2004 06:31:43 -0700

I ran across something recently for enhancing a label when
the label is used as a command button. I wish I could
remember where I saw this, because I would like to give
credit for the idea. Call the label cmdDoSomething, set
the special effect to raised, then set the Mouse Down
event to:
  Me.cmdDoSomething.SpecialEffect = 2
In the Mouse Up event:
  Me.cmdDoSomething.SpecialEffect = 1

Similarly, effects can be applied to pictures such as the
command button graphics I mentioned in the previous post.
I am starting to use these techniques as an alternative to
attaching pictures to standard command buttons, and have
found the approach to be very satisfactory when all I need
is a Click event.
In addition to Lebans site (from my previous post in this
thread), another approach can be found at:
http://www.peterssoftware.com/clrbtn.htm
>-----Original Message-----
>
>"Jagster" <anonymous@discussions.microsoft.com> wrote in
message
>news:2f68e01c46d76$9d7cb220$a401280a@phx.gbl...
>> Hi,
>>
>> I would like to be able to change the colour of the
>> buttons on access from that dull gey shade. I can only
>> seem to be able to change the font colour. Any ideas?
>
>Set the Button's Transparent property to Yes. Create a
Label the same size
>as the button with the text you want to show on the
Button, and the other
>properties to your choice, then locate the Label on top
of the Button,
>select it, and Format | Send to Back.
>
>Or, if you don't want anything more than a Click event,
just use a Label
>instead of a Command Button. Labels have Click events,
too.
>
> Larry Linson
> Microsoft Access MVP
>
>
>.
>



Relevant Pages

  • Re: Difference between a Command Button and a Label
    ... command button, as were the people from whom I borrowed the idea, so I ... You cannot place the focus on a label. ... "what happens if the users get used to one developer's colour coding ... If anyone would care to post this to a web site, ...
    (microsoft.public.access.forms)
  • Re: Difference between a Command Button and a Label
    ... for colored command buttons. ... You cannot place the focus on a label. ... Tom Ellison ... If anyone would care to post this to a web site, ...
    (microsoft.public.access.forms)
  • Re: TSO LINE COMMAND
    ... 1.Select the lineto copy by the C or CC/CC line command ... 'ISREDIT MACRO NOPROCESS' ... 'ISREDIT LOCATE FIRST lABEL' ... This e-mail, including any attachments, contains information ...
    (bit.listserv.ibm-main)
  • Re: Difference between a Command Button and a Label
    ... The idea of using a label as a command button has been around for quite some ... Up events to simulate the look of a command button when it is clicked. ... I also use standard graphics for custom navigation buttons, ... developer's colour coding and then are faced with a different set from ...
    (microsoft.public.access.forms)
  • very simple tkinter demo program

    (comp.lang.python)