Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Enable and disable

I have some strange problems that I need some assistance with. I have an SSTab with alot of different frames on it, My problem is that when i enable some frames on one tab a few other controls on the other tabs gets enabled too, why? Is it a bug or a feature?
0
slobstar
Asked:
slobstar
  • 4
  • 3
  • 2
  • +1
1 Solution
 
watyCommented:
Probably the reason is that the controls have the this tab has parent.

You should add all the controls in a frame, and have only one frame per tab.
0
 
slobstarAuthor Commented:
If I want several frames then...
0
 
wfordCommented:
Put thes frmaes inside your tab frame..or you can use any other container type object as your tab frame
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
slobstarAuthor Commented:
I've tried it but there are still controls that enables when I don't want them to. Can anyone explain why and how I can prevent it, I want several frames on each of the tabs.
0
 
wfordCommented:
Are your frames set as enabled = false even though they are children to the tabs?
0
 
slobstarAuthor Commented:
I set all my frames and the controls inside them to false at design time, then I want to be able to enable different frames at run time.
0
 
watyCommented:
If you set the frame to disable, all the controls inside are disabled.
0
 
slobstarAuthor Commented:
Well thats not really true, it's true that you can't do anything with them, but they are not disabled. I already solved this myself, its was really strange maybe you know why: If my frames  had the same "Caption" then they gave me alot of trouble, it didn't matter that they had different names. hmmm  Waty! just give me an answer and the points is yours.
0
 
mdouganCommented:
Go back to one of the first answers, when a control becomes unusable (not really disabled) when you disable a frame or other type of container control, then it is most likely that the container control (frame, picture box etc) is the parent of the control.  The easiest way to ensure that the control has the parent you want it to have, is to highlight it and cut it to the clipboard.  Then, highlight the frame that you want to be the parent of the control, then paste.  Remember, if you create a control, then drag it onto a frame, the frame will not be it's parent.  

MD
0
 
wfordCommented:
mdougan:

slobstar asked waty to answer for the points. I assume it was a mistake of yours to answer this question. slobstar should reject IMHO.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now