Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:09:35 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Flash Screens
| | | |-+  right click in mach screen
Pages: 1   Go Down
Print
Author Topic: right click in mach screen  (Read 1869 times)
0 Members and 1 Guest are viewing this topic.
azambuja
Active Member

Offline Offline

Posts: 10


View Profile
« on: September 10, 2008, 07:01:04 AM »

Another question, can I disable the mouse right click when running a flash screen in mach3.
Because this can interfere the user.

thanks
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: September 10, 2008, 05:52:35 PM »

Hey,

To remove Content:

Code:
var rootMenu = new ContextMenu();
rootMenu.hideBuiltInItems();
_root.menu = rootMenu;

Another way to  Remove content:

Code:
Stage.showMenu = false;

Right click detect:

Code:
onEnterFrame = function () {
if (Key.isDown(2)) {
trace("Your right clicking")
    }
}

To add to the "Right Click" menu system(also including functions):

Code:
Right Click Menu
//////////////////
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();

///////////////////////////////////////////////////////////////////////////////////
var Load_menu:ContextMenuItem = new ContextMenuItem("LOAD GCODE", load_fun, true, true, true);
var edit_menu:ContextMenuItem = new ContextMenuItem("Edit GCODE", edit_fun, false, true, true);


myMenu.customItems.push(Load_menu,edit_menu);
_root.menu = myMenu;

/////////////////////////////////////
function load_fun() {
fscommand("Button", "216");
}

function edit_fun() {
fscommand("Button", "115");
}

Thanks,
Jason Blake
Logged

Regards, Jason Blake

www.Fusioncnc.com
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!