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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 GETN tree branch option CLOSE possible?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Dominik Paulkowski

Germany
Posts

Posted - 04/03/2007 :  05:29:22 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 04/03/2007 :  08:15:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Dominik Paulkowski

Germany
Posts

Posted - 04/03/2007 :  10:04:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/03/2007 :  10:28:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Dominik Paulkowski

Germany
Posts

Posted - 04/03/2007 :  10:33:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for help and the information.


-------------------
:-Dipl.-Phys. Dominik Paulkowski
Fraunhofer Institute for Surface Engineering and Thin Films (IST)
Braunschweig
Germany
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000