03-11-2013 09:01 PM - edited 03-11-2013 09:02 PM
Hi,
I am trying to figure out a way to create a configuration window for a class object using a subpanel. The problem is that I have LVOOP class hierarchy of 3 levels, and thus I want to use nested subpanels, one subpanel for each inheritance.
For example,
A.lvclass (abstract class)
B.lvclass (abstract class) (child of A.lvclass)
C1.lvclass (concrete class) (child of B.lvclass)
C2.lvclass (concrete class) (child of B.lvclass)
What I am trying to accomplish is to create configuration windows for C1 and C2. For each configration window, there are sections for class A and class B, and for the class itself. However, I do not want to recreate the same section (for A and B) over and over again each time new children (siblings of C1) are introduced. To avoid this duplicate task, I think using nested supanes makes sense. But I don't know the best way to do it. Any advice is appreciated 🙂
Thank you
03-11-2013 10:53 PM
Don't ever use nested subpanels
BAD BAD things happen
03-12-2013 02:09 AM
See these two threads and be sure to read them thoroughly and follow the links:
03-12-2013 03:52 PM
Hi, James
Did you mean not to use nested subpanels in general or in this specific situation? It would be great if you can explain it based on your experience 🙂
03-13-2013 12:48 AM
Thank you tst.
I looked at the examples posted on the links. The way to use a picture control there was very insteresting and creative. I also liked the dynamic dispatching capability it provides as well as the flexibility.
It would be great if I can just start using the library to create my configuration window... however, my configuration window has some dynamic elements. For example, it has a string control which can get disabled depending on the status of a checkbox control right above it. The picture control solution does not have a solution for such cases.
03-13-2013 02:23 AM
Well, as both AQ and I said in those threads, the things we posted are experiments, not completed frameworks. Personally, I prefered the way I went (see my posts in those threads) and you might prefer it as well, but it also has its issues.
03-13-2013 01:31 PM
Thank you tst
I took a brief look at your code (Class Hierarchy Config). The behavior is what I was trying to accomplish. Also, I liked that you can select how you want to display the dialog. I am going to look at it deeper later this month.
Thank you!