Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:48:40 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Call for G-code display window
Pages: 1   Go Down
Print
Author Topic: Call for G-code display window  (Read 2547 times)
0 Members and 2 Guests are viewing this topic.
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« on: July 26, 2008, 06:31:45 AM »

Scott,  I am sure you will be able to help with this one.  Grin

Latest versions of Mach have a htm file with the Gcode explanations.  I find I look at it often.

This is the code behind the button,      HtmlDialog( GetMainFolder()+"Mach3MillGcode.htm" )

It opens in what looks like a restricted Internet Explorer window.  It is painfully small and not resizable.

My preferred browser is Firefox.  Is there a call that will open it in my choice of browser window?

Greg
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: July 28, 2008, 12:12:34 PM »

Acualy you can have anything open up in anything by adding the path:


IE:
Code:
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE "+ "C:\Mach3\Mach3MillGcode.htm", vbNormalFocus

FireFox:
Code:
Shell "C:\Program Files\Mozilla Firefox\firefox.exe "+ "C:\Mach3\Mach3MillGcode.htm", vbNormalFocus

!please take note to have a "Space after the location of the program you want to open the object with!
« Last Edit: July 28, 2008, 12:23:37 PM by zealous » Logged

Regards, Jason Blake

www.Fusioncnc.com
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #2 on: July 28, 2008, 04:54:26 PM »

Thanks for that Jason. Your the man!!!! Grin

That's just what I wanted.

While I am at it, can I change the "edit code" program from the Notepad default?

Greg
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,620



View Profile WWW
« Reply #3 on: July 28, 2008, 10:17:51 PM »

Thanks for that Jason. Your the man!!!! Grin

That's just what I wanted.

While I am at it, can I change the "edit code" program from the Notepad default?

Greg
C'mon Greg, that's an easy one. General Config, top center, slightly to the left.  Smiley
Logged

zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #4 on: July 28, 2008, 10:19:45 PM »

Hey Greg,

Under "General Configuration" in Mach you can set the Gcode editor.

Or

If you need total control on what program to open the currentl loaded file in use something like this on the Edit button:

Code:
DoOEMbutton(168)'**Close the FIle first**

If(FileName="No File Loaded.")Then'**Check to see a file is loaded**

Print"LOAD A FILE FIRST"

Else

Shell "notepad "+ FileName, vbNormalFocus ' **YOU CAN DO THIS FOR NOTEPAD**

'Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE "+FileName, vbNormalFocus'**Or open in what you want**

End If
Logged

Regards, Jason Blake

www.Fusioncnc.com
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #5 on: July 28, 2008, 10:21:06 PM »

Hey Gerry,
Thats funny we posted at the same time  Grin
Logged

Regards, Jason Blake

www.Fusioncnc.com
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #6 on: July 28, 2008, 10:37:26 PM »


C'mon Greg, that's an easy one. General Config, top center, slightly to the left.  Smiley


OK OK I feel suitably chastised........I thought I had seen it somewhere.  Grin

Jason,  thanks.

In this case I was not looking for that much control.  Just a better editor than Notepad.

Greg
Logged
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!