PC Review


Reply
Thread Tools Rate Thread

Command button icons when disabled

 
 
DocBrown
Guest
Posts: n/a
 
      3rd Aug 2009
I have three buttons on my worksheet. Under certain conditions (controlled by
macros), I set enable=true/false to enable/disable the buttons. I want to
make small buttons with icons. How do i make the icons 'grey out' to indicate
disabled?

Also, If I use icons on the buttons, how do I include the icons with the
workbook so the user doesn't have to have the *.ico files on their computer?
Or does that happen in some other fashion?

Thanks,
John

 
Reply With Quote
 
 
 
 
DocBrown
Guest
Posts: n/a
 
      15th Aug 2009
For those that are interested... I figured out a way.

I created a form and added buttons. For each command on my main form, I
created two buttons. On one button I put in the picture property the
'enabled' state and on the other I put the 'disabled' state.

Then in code I do the following:

'To disable
Sheet2.cmdCopyTmpl.Enabled = False
Sheet2.cmdCopyTmpl.Picture = frmButtonImages.imgCopyTmplDisable.Picture

' to enable
Sheet2.cmdCopyTmpl.Enabled = True
Sheet2.cmdCopyTmpl.Picture = frmButtonImages.imgCopyTmplEnable.Picture


"DocBrown" wrote:

> I have three buttons on my worksheet. Under certain conditions (controlled by
> macros), I set enable=true/false to enable/disable the buttons. I want to
> make small buttons with icons. How do i make the icons 'grey out' to indicate
> disabled?
>
> Also, If I use icons on the buttons, how do I include the icons with the
> workbook so the user doesn't have to have the *.ico files on their computer?
> Or does that happen in some other fashion?
>
> Thanks,
> John
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button Enabled/Disabled PeterM Microsoft Access 5 13th Mar 2010 06:04 PM
Command Button Pictures Taken from Command Bar Button Icons acx@centrum.cz Microsoft Access Forms 0 2nd Dec 2007 12:23 PM
Combo Box, Command Button Pop Wizards Disabled??? =?Utf-8?B?Y2tyb3Nub3dza2k=?= Microsoft Access 13 1st Jun 2006 05:06 AM
Is it possible for a command button to be disabled... =?Utf-8?B?Q2hyaXM=?= Microsoft Access Forms 1 2nd Mar 2006 07:51 PM
hide inactive tray icons button disabled newsbirdie2@hotmail.com Windows XP General 5 9th Sep 2005 09:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 PM.