Jump to content

Lisp guru , please help me .I want replace the dialog


AIberto

Recommended Posts

Hi Dear lisp guru.

I want replace two dialog. like this:

http://www.cadtutor.net/forum/attachment.php?attachmentid=54082&d=1430736314

I want change "button Dialogbox" to "image_button Dialogbox" ,

mean: Merge this two lisp (Tolerance band [Hole].lisp and Tolerance band [shaft].LSP ) to "gccx.lsp" , and remove "selectk:dialog" & "selectz:dialog" from gongcha.dcl .

 

I'm in trouble.

 

Details please see "PS.pdf" and "Replace Like This.pdf" in attachments.

 

about attachments:

gccx.lsp , gongcha.dcl and GB1800.DAT is a complete routine. tt.gif is demo gif .

Tolerance band [Hole].lisp and Tolerance band [shaft].LSP is two image_button Dialogbox.

 

Additional :

Currently, my 'gccx.lsp' calls the 'gongcha.dcl' where are defined three dialogs, the 'gongcha' the 'selectk', were I get the 'Tolerance band [Hole]', and the 'selectz' dialog, were I get the "Tolerance band [shaft]' value.

Everything works properly.

 

My problem start when I try to replace the 'selectk' and 'selectz' dialogs, for the new ones defined in 'Tolerance band [Hole].LSP' and 'Tolerance band [shaft].LSP' respectively.

 

I can't put the 'gccx.lsp' working with the new dialogs...

 

Can somebody points me the right way please...

Thanks to all future responses.

PS.pdf

Edited by AIberto
Link to comment
Share on other sites

Hi Alberto .

 

Which button you want to replace with image_button ? is the Allowed band ?

 

And may I know what is the wisdom behind that ?

Link to comment
Share on other sites

Hi Alberto .

 

Which button you want to replace with image_button ? is the Allowed band ?

 

And may I know what is the wisdom behind that ?

 

Dear Tharwat .

Nice to see you. ;)

 

What is " wisdom behind " mean ?

Replace Like This.pdf

Link to comment
Share on other sites

I mean why you want to change a normal button to image button ?

 

Dear Tharwat.

 

Because the normal button can't change colour.

 

BTW. The instructions are in the PS.pdf file

Link to comment
Share on other sites

Which button that you want to replace ? Allowed band ?

 

Dear Tharwat.

Not replace "Allowed band" , can you see " Replace Like This.pdf‎ " at #3 ? ;)

Link to comment
Share on other sites

Alberto , I don't want to let this thread to go with many pages , so just be straight to the point and explain what you are after in details otherwise I can't keep on guessing what you have in mind .

Link to comment
Share on other sites

Alberto , I don't want to let this thread to go with many pages , so just be straight to the point and explain what you are after in details otherwise I can't keep on guessing what you have in mind .

 

Sorry , my mean is Replace 2 dialog , details explain in PS.pdf & Replace Like This.pdf‎ , How can I explain? :cry:

You ask, I answer , OK ?

Link to comment
Share on other sites

Okay :D

 

The two dialogues are in image buttons :o

 

The two dialogues (image buttons) in two different lisp (Tolerance band [Hole].LSP & Tolerance band [shaft].LSP)

I want merge this two lisp to "gccx.lsp" , and remove "selectk:dialog" & "selectz:dialog" from gongcha.dcl .

Link to comment
Share on other sites

The gccx.lsp did not work for me and it gives me an error message of the string

 

The gccx.lsp , gongcha.dcl and GB1800.dat file must in the same folder . this folder must in "support file search path" .

 

ignore the DAT file???

Link to comment
Share on other sites

 

Currently, my 'gccx.lsp' calls the 'gongcha.dcl' where are defined three dialogs, the 'gongcha' the 'selectk', were I get the 'Tolerance band [Hole]', and the 'selectz' dialog, were I get the "Tolerance band [shaft]' value.

Everything works properly.

 

My problem start when I try to replace the 'selectk' and 'selectz' dialogs, for the new ones defined in 'Tolerance band [Hole].LSP' and 'Tolerance band [shaft].LSP' respectively.

 

I can't put the 'gccx.lsp' working with the new dialogs...

 

Can somebody points me the right way please...

Thanks to all future responses.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...