The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 GETN tree branch option CLOSE possible?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000