OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: cadplayer on September 05, 2012, 04:54:51 AM

Title: Open a file from window
Post by: cadplayer on September 05, 2012, 04:54:51 AM
Hello!

I have discovered a little strange problem if I click on selfmade button from my OpenDCL menu. The lisp routin works perfect but if you look on animation you can see in first command I run with click button it opens a window where I can open a file. In second command I run with another click button I can´t scroll in window.
Both buttons have same properties. But in second routine works command not right. Have you an answer?
Title: Re: Open a file from window
Post by: owenwengerd on September 05, 2012, 09:34:15 AM
Are you referring to horizontal scrolling or vertical scrolling? In the second case, there are not enough entries to scroll vertically.
Title: Re: Open a file from window
Post by: cadplayer on September 05, 2012, 11:03:01 PM
Hello Owen!

In second case I can´t open folder with dubbelclick... I don´t understand logic why can I do that in first case and not in second case. The definition of both buttons are same.

Regards Dirk
Title: Re: Open a file from window
Post by: owenwengerd on September 06, 2012, 05:23:09 AM
Sorry, I don't understand the problem. It might help if you post the relevant code.
Title: Re: Open a file from window
Post by: cadplayer on September 06, 2012, 05:55:06 AM
Here a test function. Both buttons have same problem that I can´t open file ... and select a file
Title: Re: Open a file from window
Post by: owenwengerd on September 06, 2012, 10:17:20 AM
I see now. The file dialog displays, but input is disabled. I will need to investigate further to see what is going on.

I didn't test this, but you may be able to work around the problem by setting the form's Keep Focus property to False.
Title: Re: Open a file from window
Post by: owenwengerd on September 06, 2012, 12:23:47 PM
I can verify that setting Keep Focus to False prevents this problem. I have now made changes in the code for the next build of OpenDCL that should prevent this from happening regardless of the Keep Focus value.
Title: Re: Open a file from window
Post by: Fred Tomke on September 06, 2012, 08:52:52 PM
Hi, I had the same problem in the past and solved that by switching the control's EventInvoke property to AllowCommand.

Regards, Fred
Title: Re: Open a file from window
Post by: cadplayer on September 06, 2012, 10:56:11 PM
So I wait for next update of ODCL or have it a trick to run it otherwise? /Dirk
Title: Re: Open a file from window
Post by: Wolfgang S on March 18, 2013, 03:20:22 AM
Hi everybody!

I have the same issue and another information about this:

- when I click the button and stay inside the dialog area the "select file" dialog works fine.
- when I click the button and move outside the dialog area before the "select file" dialog opens it is not working.


Title: Re: Open a file from window
Post by: owenwengerd on March 19, 2013, 07:02:14 AM
Quote from: Wolfgang S on March 18, 2013, 03:20:22 AMI have the same issue...

Are you using the current build of OpenDCL 7.0.0.10?