Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 09:30:07 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 827 times)
0 Members and 1 Guest are viewing this topic.
Greolt
Global Moderator
*
Online Online

Posts: 353


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
Administrator
*
Offline Offline

Posts: 331



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
Greolt
Global Moderator
*
Online Online

Posts: 353


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
*
Online Online

Posts: 427



View Profile
« 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

Gerry
zealous
Administrator
*
Offline Offline

Posts: 331



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
zealous
Administrator
*
Offline Offline

Posts: 331



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
Greolt
Global Moderator
*
Online Online

Posts: 353


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.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!