Machsupport Forum
Mach Discussion => Mach Screens => Topic started by: Greolt on July 26, 2008, 07:31:45 AM
-
Scott, I am sure you will be able to help with this one. ;D
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
-
Acualy you can have anything open up in anything by adding the path:
IE:
Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE "+ "C:\Mach3\Mach3MillGcode.htm", vbNormalFocus
FireFox:
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!
-
Thanks for that Jason. Your the man!!!! ;D
That's just what I wanted.
While I am at it, can I change the "edit code" program from the Notepad default?
Greg
-
Thanks for that Jason. Your the man!!!! ;D
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. :)
-
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:
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
-
Hey Gerry,
Thats funny we posted at the same time ;D
-
C'mon Greg, that's an easy one. General Config, top center, slightly to the left. :)
OK OK I feel suitably chastised........I thought I had seen it somewhere. ;D
Jason, thanks.
In this case I was not looking for that much control. Just a better editor than Notepad.
Greg