TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: It's Alive! on April 14, 2009, 11:26:52 PM

Title: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 14, 2009, 11:26:52 PM
Some of my buttons don't work, I can't see what I'm doing wrong 
v5.1.0.3


ps I copied and pasted those three from the top one  :angel:
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 14, 2009, 11:43:15 PM

I've been in bed with a weird head so I may not be seeing this correctly ...

Have you selected the Click event for each event in the editor you want to use ...
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: MP on April 14, 2009, 11:50:02 PM

I've been in bed with a weird head ...

Does it respond to your voice?



































Hope you get better soon. :)
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 14, 2009, 11:50:37 PM
Yes, I did add the event, and copied the source to my lisp file.
I have tried replacing the three offending buttons, now one more seems to work.

Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 14, 2009, 11:52:17 PM
Hey wait, was it not toggled when you opened my file?
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 14, 2009, 11:54:01 PM

I've been in bed with a weird head ...

Does it respond to your voice?
< .. >

what a sick joke

 :-P
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 14, 2009, 11:55:05 PM
Hey wait, was it not toggled when you opened my file?

nope ...

may still be a buglet though ...
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 14, 2009, 11:56:34 PM
hmm they are all checked on my machine.
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 15, 2009, 12:05:17 AM
I’ll see if I can get an older editor, are you using the same version a me?
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 15, 2009, 12:16:22 AM
Drag/Drop Allow Begin

Toggle it OFF for the buttons ..
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 15, 2009, 12:20:51 AM

a tip ;
for development, change this
  ;; (LoadODCLProjDev "Fields.odcl") 

to this ...
  (dcl_PROJECT_LOAD "Fields.odcl" t)


so the ODCL will reload each time ( to refresh changes )
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 15, 2009, 12:25:15 AM

A Tip ;
On the Menu Bar=> Tools .. Select Clear Lisp Symbol Names

This will leave the VarName property field empty and the Editor will look after making sure the name is correctly concatenated.
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 15, 2009, 12:28:22 AM

In your code, and editor, check the Initialise event call

You had
(defun c:Fields_FormFieldset_OnInitialize (/)
in the code

and
(defun c:Fields_FormField_OnInitialize (/)
in the editor

Though this may have been a result of my resetting the events ..  :-(
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 15, 2009, 12:28:34 AM
Drag/Drop Allow Begin

Toggle it OFF for the buttons ..


I don’t have that selected
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 15, 2009, 12:32:01 AM
Ok , let me try your tips 
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 15, 2009, 12:33:40 AM
(dcl_getversionex)

;;=> "5.1.0.3"
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 15, 2009, 12:36:56 AM
Ok,

(dcl_PROJECT_LOAD "Fields.odcl" t)

was my problem !

Doh I should have remembered this.

Thanks for all your Help kerry, I hope you feel better
Title: Re: Some of my buttons don't work v5.1.0.3
Post by: Kerry on April 15, 2009, 12:38:43 AM
Ok,

(dcl_PROJECT_LOAD "Fields.odcl" t)

was my problem !

Doh I should have remembered this.

Thanks for all your Help kerry, I hope you feel better

GREAT  !!!


I'm taking my head back to bed now :)

Title: Re: Some of my buttons don't work v5.1.0.3
Post by: It's Alive! on April 15, 2009, 07:17:31 AM
This is still not working consistently, I can add a button, set up the events, load the dialog and it doesn’t work.
It seems I need to add another new control, delete the new control, save, then everything works.
maybe I am just doing something in the wrong order  :laugh: