Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 28, 2012, 09:36:35 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
VB and the development of wizards
Cypress Enable dialog error - Only on XP
Pages:
1
Go Down
« previous
next »
Author
Topic: Cypress Enable dialog error - Only on XP (Read 279 times)
0 Members and 1 Guest are viewing this topic.
rrc1962
Active Member
Offline
Posts: 434
Cypress Enable dialog error - Only on XP
«
on:
December 21, 2011, 09:26:02 PM »
This is an odd problem. In the code below, I get the error message "Error line 64 - Internal Error - <Dialog>". Line 64 is.....
button = Dialog( Dlg1 )
See code segment below. I developed a really cool screenset using a number of these dialog functions. I developed it on my laptop running Win7 and it all works perfectly. When I run the same code on XP, I get the above error.
Has anyone seen this before? Is there something from microsoft that I need to install to make the Dialog function work in XP?
Thanks.
Begin Dialog UserDialog1 20,40,240,110,"Enter Circle Parameters", .enable
OKButton 190,20,40,14
CancelButton 190,40,40,14
text 10,10,40,10, "Width"
text 10,25,40,10, "Height"
text 10,40,40,10, "Kerf Width"
text 10,55,40,10, "Feed Rate"
text 10,70,40,10, "Num Points"
text 10,85,40,10, "Inner Offset"
textBox 50,10,30,10, x1,.width
textBox 50,25,30,10, x2,.height
textBox 50,40,30,10, x3,.kerf
textBox 50,55,30,10, x4,.feed
textBox 50,70,30,10, x5,.points
textBox 50,85,30,10, x6,.offset
GroupBox 95,10,80,45, "Kerf Compensation", .groupBox1
OptionGroup .grp1
OptionButton 105,20,54,10,"None"
OptionButton 105,30,54,10,"Inside"
OptionButton 105,40,54,10,"Outside"
End Dialog
Dim Dlg1 As UserDialog1
Dlg1.width = settings(2)
Dlg1.height = settings(3)
Dlg1.kerf = settings(0)
Dlg1.feed = settings(1)
Dlg1.grp1 = settings(12)
Dlg1.points = settings(13)
Dlg1.offset = settings(14)
button = Dialog( Dlg1 )
opt1 = Dlg1.grp1
nWidth = Dlg1.width
nHeight = Dlg1.height
kerf = Dlg1.kerf
feedRt = dlg1.feed
numSides = Dlg1.points
offset = Dlg1.offset
If button = -1 Then
Logged
Sargon
Active Member
Offline
Posts: 99
Re: Cypress Enable dialog error - Only on XP
«
Reply #1 on:
December 22, 2011, 10:32:24 AM »
I get the same error running in XP Mode on Windows 7, but it does work on just Windows 7 after removing the "... = settings()" function calls and the "If Button = -1 then" lines.... Error is then on line 26, but it's referring to the same thing. Funy that on Win7 it works OK though.
Nothing, AFAIK, needs to be installed to make this work - the function should be supplied by Enable...
I'm sick today, but if I get some time where I'm feeling OK I will go ever the code and look for errors. I just can't concentrate right now...
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: Cypress Enable dialog error - Only on XP
«
Reply #2 on:
December 22, 2011, 11:23:27 AM »
The cypress man is pretty cr@p but I reckon the syntax of your textboxes is incorrect and should be:
TextBox X, Y, DX, DY, .Field$[, Options]
which means (if I understand what you're trying to do):
textBox 50,10,30,10, .width,0
and then later:
Dlg1.width = settings(2)
Certainly if I mod your code as per...
Code:
Begin Dialog UserDialog1 20,40,240,110,"Enter Circle Parameters", .enable
OKButton 190,20,40,14
CancelButton 190,40,40,14
text 10,10,40,10, "Width"
text 10,25,40,10, "Height"
text 10,40,40,10, "Kerf Width"
text 10,55,40,10, "Feed Rate"
text 10,70,40,10, "Num Points"
text 10,85,40,10, "Inner Offset"
textBox 50,10,30,10, .width,0
textBox 50,25,30,10, .height,0
textBox 50,40,30,10, .kerfWidth,0
textBox 50,55,30,10, .feedrate,0
textBox 50,70,30,10, .numPoints,0
textBox 50,85,30,10, .InnerOffset,0
GroupBox 95,10,80,45, "Kerf Compensation", .groupBox1
OptionGroup .grp1
OptionButton 105,20,54,10,"None"
OptionButton 105,30,54,10,"Inside"
OptionButton 105,40,54,10,"Outside"
End Dialog
Dim Dlg1 As UserDialog1
Dlg1.width = 1000
Dlg1.height = 500
Dlg1.kerfWidth = 1
Dlg1.feedrate = 6000
Dlg1.numPoints = 50
Dlg1.innerOffset = 50
button = Dialog( Dlg1 )
then I get this under XP (see attached pic) - is this what you intended?
Not sure why it worked under W7 because I reckon it shouldn't have. Local conditions of course may vary.
Cheers
Ian
abox.JPG
(19.76 KB, 486x252 - viewed 22 times.)
Logged
rrc1962
Active Member
Offline
Posts: 434
Re: Cypress Enable dialog error - Only on XP
«
Reply #3 on:
December 22, 2011, 06:11:32 PM »
That did the trick. Thanks for the tip. Weird how this error only happens in XP. It's usually the other way around. XP is usually more stable.
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: Cypress Enable dialog error - Only on XP
«
Reply #4 on:
December 23, 2011, 04:14:43 AM »
I think that's perhaps the point. As well as perhaps being more stable XP seems less forgiving of incorrect syntax. Your code SHOULD have failed on W7 and the fact that it didn't is W7's shortcoming NOT XP's.
Logged
rrc1962
Active Member
Offline
Posts: 434
Re: Cypress Enable dialog error - Only on XP
«
Reply #5 on:
December 23, 2011, 09:05:19 AM »
I see your point...
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...