|
-
Aug 27th, 2016, 01:33 PM
#1
Thread Starter
Lively Member
Disabling Controls within Frame
Hi All,
Suppose I have the following layout on a form:
Frame1(0)
- Frame2(0)
- Option1(0)
- Option1(1)
- Option1(2)
- Frame3(0)
- Frame3(1)
- Text1(0)
- Text1(1)
- Text1(2)
- Text1(3)
I'd like to have a function that will disable the child controls within the container I specify (including any child containers). So for example, if I specified Frame1(0) as the container, it would disable all the controls listed in the above structure. However, if I specified Frame2(0), it would only disable the controls within that container (ie Option1(0), (1) and (2)). Lastly, if I specified Frame3(0), it would disable Frame3(1) (including Text1(0) and (1)), as well as Text1(2). Hopefully that makes sense.
I've tried separate approaches, but am stuck on the child container issue. In my first approach, I can successfully disable controls within the specified frame, but not if any of those controls are contained within their own frame (frame within a frame). On my second approach, I can disable everything, including the controls I want to leave enabled.
Any ideas? As always any assistance greatly appreciated!
Best Regards
Brad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|