| T O P I C R E V I E W |
| Dominik Paulkowski |
Posted - 04/03/2007 : 05:29:22 AM Origin Version (Select Help-->About Origin): Origin7.5G SR6 (v7.5886) Operating System: Windows XP
Hello!
I'm searching for an option, that show a branch of a GETN tree as closed one on first appearing of the dialog.
// Use GETN_TREE macro to declare a tree for a Tree style GetN dialog GETN_TREE(tr) GETN_OPTION_GRIDLINE(flexGridRaisedVert) // Option to add vertical divider line // Group following nodes in collapseable branch having caption GETN_BEGIN_BRANCH(Settings, "Settings") // Option to expand branch when dialog opens and to keep dialog same size when collapsing branch //GETN_OPTION_BRANCH(GETNBRANCH_OPEN | GETNBRANCH_KEEP_SIZE_ON_COLLAPSE) // I want something like that: GETN_OPTION_BRANCH(GETNBRANCH_CLOSE) GETN_NUM(Input, "blabla =", dblInput) // End nodes in collapseable branch GETN_END_BRANCH(Settings)
Is that possible?
------------------- :-Dipl.-Phys. Dominik Paulkowski Fraunhofer Institute for Surface Engineering and Thin Films (IST) Braunschweig Germany |
| 4 L A T E S T R E P L I E S (Newest First) |
| Dominik Paulkowski |
Posted - 04/03/2007 : 10:33:11 AM Thank you for help and the information. 
------------------- :-Dipl.-Phys. Dominik Paulkowski Fraunhofer Institute for Surface Engineering and Thin Films (IST) Braunschweig Germany |
| Mike Buess |
Posted - 04/03/2007 : 10:28:36 AM quote: But my problem occurs in a deeper branch of tree. I want to set options of parent branch and an inner one of this branch in a different way.
That's not possible. When you open a branch all subbranches will open too. Maybe that will be fixed next version.
Mike Buess Origin WebRing Member |
| Dominik Paulkowski |
Posted - 04/03/2007 : 10:04:09 AM Oh. Yes, that's right.
But my problem occurs in a deeper branch of tree. I want to set options of parent branch and an inner one of this branch in a different way.
void test_tree() { GETN_TREE(tr) GETN_OPTION_GRIDLINE(flexGridRaisedVert) // Option to add vertical divider line
// Group following nodes in collapseable branch having caption GETN_BEGIN_BRANCH(Settings, "Settings") // Option to expand branch when dialog opens and to keep dialog same size when collapsing branch //GETN_OPTION_BRANCH(GETNBRANCH_OPEN | GETNBRANCH_KEEP_SIZE_ON_COLLAPSE) // I want something like that: //GETN_OPTION_BRANCH(GETNBRANCH_OPEN) //GETN_OPTION_BRANCH(GETNBRANCH_KEEP_SIZE_ON_COLLAPSE) GETN_NUM(Input, "blabla =", 1.0) // End nodes in collapseable branch GETN_END_BRANCH(Settings)
GETN_BEGIN_BRANCH(Settings2, "Settings2") GETN_OPTION_BRANCH(GETNBRANCH_OPEN) GETN_NUM(Input2, "blabla2 =", 2.0) GETN_BEGIN_BRANCH(Settings2in, "Settings2in") //GETN_OPTION_BRANCH(GETNBRANCH_CLOSE) GETN_NUM(Input2in, "blabla2in =", 3.0) GETN_END_BRANCH(Settings2in) GETN_END_BRANCH(Settings2)
if( GetNBox(tr, "Dialog-Header", NULL, NULL)) { }
}
I want to have a closed Settings2in branch in an opened Settings2 branch. Is that possible?
------------------- :-Dipl.-Phys. Dominik Paulkowski Fraunhofer Institute for Surface Engineering and Thin Films (IST) Braunschweig Germany |
| Mike Buess |
Posted - 04/03/2007 : 08:15:47 AM quote: I'm searching for an option, that show a branch of a GETN tree as closed one on first appearing of the dialog.
That's the default behavior so just omit the GETNBRANCH_OPEN option. Following branch will be closed when the dialog opens.,,
GETN_BEGIN_BRANCH(Settings, "Settings") GETN_OPTION_BRANCH(GETNBRANCH_KEEP_SIZE_ON_COLLAPSE) GETN_NUM(Input, "blabla =", dblInput) GETN_END_BRANCH(Settings)
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 04/03/2007 08:27:27 AM |
|
|