Personal tools
You are here: Home Forum Extension of the platform How do I create a secondary menu under the Atomic module?

How do I create a secondary menu under the Atomic module?

Up to Extension of the platform

How do I create a secondary menu under the Atomic module?

Posted by yanchio at June 07. 2017

Hello, I have been under Linux system through the Atomic module tutorial.

 

Now,when I click Atomic, it will appear two first-level menus:[Create Molecule] and [Add atom].

I already know how to continue adding these options and activate the new dialog box in the options by modifying the two files :[ATOMICGUI.cxx] and [ATOMICGUI_AddAtomDlg.cxx]

But I want to implement a new function: In the first level menu to add a secondary menu.

For example, when my mouse moves to Add atom button,it will appear:

Add atom->Type A,B,C...

like this when I click the Help button,and my mouse moves to KERNEL module button,it will appear:

KERNEL module-> User's Guide

 

Please tell me what to do to achieve this function? I will be very grateful.

 

 

Re: How do I create a secondary menu under the Atomic module?

Posted by Saint Michael at June 13. 2017

Hi

There should be something like this:

// createMenu( agAddAtom,   aAtomicMnu, 10 );

int typeMnu = createMenu( tr( "MEN_TYPE" ), aAtomicMnu );

createMenu( agAddTypeA,   typeMenu );

createMenu( agAddTypeB,   typeMenu );

St.Michael

Re: How do I create a secondary menu under the Atomic module?

Posted by yanchio at June 27. 2017

Previously Saint Michael wrote:

Hi

There should be something like this:

// createMenu( agAddAtom,   aAtomicMnu, 10 );

int typeMnu = createMenu( tr( "MEN_TYPE" ), aAtomicMnu );

createMenu( agAddTypeA,   typeMenu );

createMenu( agAddTypeB,   typeMenu );

St.Michael


Thanks,it's useful to me! I really appreciate it.

 

Powered by Ploneboard
Document Actions