Consulting

Results 1 to 6 of 6

Thread: Command Buttons

  1. #1

    Command Buttons

    I am trying to make a command button "invisible" but still enabled. In essence, I want the users to be able to click on an invisible button. Doesn't make sense I know, but I have taken screen shots from another application and am trying to give the look and feel of that application-in PowerPoint. I have already entertained using text boxes to do this and it works well, but does not have the functionaloty of the buttons, for example no double-click.

    Can anyone help?!? TIA
    JoshS

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Master
    Joined
    Jan 2005
    Location
    Porto Alegre - RS - Brasil
    Posts
    1,219
    Location
    Hi JoshS,

    simply set the buttons visible property to false.
    Best Regards,

    Carlos Paleo.

    To every problem there is a solution, even if I dont know it, so this posting is provided "AS IS" with no warranties.

    If Debugging is harder than writing a program and your code is as good as you can possibly make
    it, then by definition you're not smart enough to debug it.




    http://www.mugrs.org

  3. #3
    I have tried that already and for some reason (I am code illiterate) the button is not "clickable" when it is not visible. I Can not tell whether it is officially disabled or not- I just know that when it's not visible, it's not clickable.

    I have feebly tried to write code that would force it to be enabled when the visiblity is set to false- no dice!!!

    If you have code that works for this, I'd appreciate it tremendously!
    TIA,
    Josh

  4. #4
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    If a control is not visible, a user won't be able to click it. That's just the way of things.
    However, if you set the BackStyle to opaque, you'll just see the border, which might be quite useful if you are simulating command buttons because you'll still get the 3d effect when it's clicked.
    You can do the same thing with textboxes and also have no border, which is exactly waht you describe and AFAIK, textbox controls also have a dblclick event
    K :-)

  5. #5
    Try using the click_event of a label contro. Draw the label where you want it. Set the background to transparent and then the border to none. This has worked pretty well for me in the past.
    ttfn

    Kicker

  6. #6
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,094
    Location
    Do you have to use a command button. Why not use a normal shape with an action of run macro. You can set the shape to 99% transparent fill and no line
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •