[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • 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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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