Results 1 to 7 of 7

Thread: This will stump you...

  1. #1

    Thread Starter
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    I don't know how you get hold of the handle - but once you get it you may be able to use something like this..

    SSTab1.TabEnabled([tabnumber])=False


    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    It's not an exposed property. I believe the control is an ActiveX control which has exposed properties like tabcaption for each tab but not tabenabled. Thanks for the suggestion, though. Any other ideas?

    Thanks,
    Wade

  3. #3
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    Hi, I want to disable 2 tabs out of 6 on an sstab that's in another program, for which I only have object code. I know I could disable the entire sstab by searching for its handle and disabling it. However, I want to keep some tabs, while disabling others. Is it possible to do this?

    Thanks in advance,
    Wade

  4. #4
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    I know this one's tough, but does anyone know how to do this?

    Thanks in advance,
    Wade

  5. #5
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    I appreciate the reply, but this sstab is an ActiveX control in another app and tabenabled is not an exposed property. I know you can disable controls in other apps through API, but this is different because I want to disable only part of the control. Any other ideas?

    Thanks,
    Wade



  6. #6
    Guest

    Post

    this works

    SSTab1.TabEnabled(1) = False


    Originally posted by WadeD:
    I know this one's tough, but does anyone know how to do this?

    Thanks in advance,
    Wade

  7. #7
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    I got it! Just an FYI - just as each control is technically a window with a handle, each tab within the sstab is also a window with a handle. Get the handle and use api to disable.

    Thanks for the replies,
    Wade

Posting Permissions

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



Click Here to Expand Forum to Full Width