Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

CHook-Button in the Frame


MCHulk
 Share

Recommended Posts

Hi CHook-Developers,

 

how can i stick a button, for calling the hook, in the frame of Mastercam like the Project-Manager of CAMAIX does.

Background is, that i want to call my chook only with a mousepick, even if i am in a deep menu.

 

Thx in advance, MCHulk

 

[ 06-08-2002, 11:21 AM: Message edited by: MCHulk ]

Link to comment
Share on other sites

Hi mold100,

 

thank you for your immediate answer.

But it is not exactly what i mean. Look at the Project-Manager-chook and you see that this chook has several buttons at the left side of the frame.

That chook is permanently running and if the window of that chook is not active, you can use every Mastercam menu-funtion.

My question is, how can i program this "button-behavior" (severall buttons in left side of the frame window) in my own chook.

 

Thx in advance, MCHulk ;-)

Link to comment
Share on other sites

C-Hooks can be added in Mastercam menu by editing the Mill9.txt file. For example, if I want to add Gear.dll to the menu just before "Exit" under File --> Next menu --> (Between "Renumber" and "Exit".

 

Find the right place in Mill9.txt file as shown here:

[file menu]

menu 1 {"File:", "Ne&w", "&Edit", "&Get", "&Merge", "&List", "&Save",

"S&ave some", "&Browse", "Con&verters", "&Next menu"}

menu 2 {"File:", "&Properties", "", "DOS &shell", "",

"&RAM-saver", "&Hardcopy", "&Communic", "Re&number", "", "&Exit"}

 

Then modify the "" between "Re&number", and "&Exit" to "&Gear*" as shown here:

[file menu]

menu 1 {"File:", "Ne&w", "&Edit", "&Get", "&Merge", "&List", "&Save",

"S&ave some", "&Browse", "Con&verters", "&Next menu"}

menu 2 {"File:", "&Properties", "", "DOS &shell", "",

"&RAM-saver", "&Hardcopy", "&Communic", "Re&number", "&Gear*", "&Exit"}

 

The &G tells that G is the underlined letter, and * tells it is a C-hook. (Underlined letter can only be used once in one menu)

 

Is this what you are looking for?

Link to comment
Share on other sites

Hi Ying Jiang,

unfortunately not, but thank you anyway.

If i follow your suggestion, i always have to call my chook by clicking the menu-items "File, Next, Gear". My chook should be present with two buttons. Lets say "Save" and "Save as" wich are visible every time, indifferent if i am in the File-menu or in any submenu else.

Look at the color-button, this button is every time present and visible.

My assumption is, that this has to be programmed in the chook itself. But how?

 

CU, MCHulk ;-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...