To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 13926
Subject: 
Re: Call for GUI part editor
Newsgroups: 
lugnet.cad
Date: 
Sun, 16 Jul 2006 11:19:55 GMT
Viewed: 
7487 times
  
Anders Isaksson wrote:
Of course, a workaround is to let the external program put
it's result to the clipboard, and manually paste that into LDDP

OK, I modified the standalone version a bit. It is now suitable to be used
as a 'User-defined program' in LDDP (the 'Parameter' field in LDDP should be
set to '%0'). Note that such programs can *only* work with the full file,
not selections in LDDP. Remember that you have to paste the results yourself
into the right window in LDDP (CTRL-A, CTRL-V)

http://web.telia.com/~u16122953/synceditsa.zip

There is no automatic update of the SyncEdit window when you change anything
in the LDDP window, it *might* be possible to do even though there is no
setting for automatic saving of the buffer for user-defined programs, only
for LDView and L3Lab, but it looks like the file name used is the same.

or fiddle with Windows messages to do the pasting automatically, but it
feels like an unsafe way to work

This isn't really doable, as LDDP is a MDI program (can have many files open
at the same time) and there's no way for an external program to be sure that
the right file window is still open and has focus.

--
Anders Isaksson, Sweden
BlockCAD:  http://web.telia.com/~u16122508/proglego.htm
Gallery:   http://web.telia.com/~u16122508/gallery/index.htm


Subject: 
Re: Call for GUI part editor
Newsgroups: 
lugnet.cad
Date: 
Mon, 17 Jul 2006 14:07:26 GMT
Viewed: 
6850 times
  
In lugnet.cad, Anders Isaksson wrote:
Anders Isaksson wrote:
Of course, a workaround is to let the external program put
it's result to the clipboard, and manually paste that into LDDP

OK, I modified the standalone version a bit. It is now suitable to be used
as a 'User-defined program' in LDDP (the 'Parameter' field in LDDP should be
set to '%0'). Note that such programs can *only* work with the full file,
not selections in LDDP. Remember that you have to paste the results yourself
into the right window in LDDP (CTRL-A, CTRL-V)

many thx,anders. I'll test it. question though: CRTL-A for copy? most progs use:
CTRL-C for "copy", CTRL-V for "paste", CTRL-X for "cut" while CTRL-A is used for
"select all". a typo?

bye, w.


Subject: 
Re: Call for GUI part editor
Newsgroups: 
lugnet.cad
Date: 
Mon, 17 Jul 2006 17:50:10 GMT
Viewed: 
6946 times
  
Willy Tschager wrote:

many thx,anders. I'll test it. question though: CRTL-A for copy? most
progs use: CTRL-C for "copy", CTRL-V for "paste", CTRL-X for "cut"
while CTRL-A is used for "select all". a typo?

No, what I mean is:

'OK' or 'Send to Clipboard' in SyncEdit does an automatic 'copy', then in
LDDP you should do CTRL-A (Select all), CTRL-V (Paste) to replace the
contents of the edit buffer. Remember, a 'plug beside .exe' always gets the
full file, never just the lines that are selected in LDDP (while a plugin
will get the full file if nothing is selected, the selection otherwise).

--
Anders Isaksson, Sweden
BlockCAD:  http://web.telia.com/~u16122508/proglego.htm
Gallery:   http://web.telia.com/~u16122508/gallery/index.htm


Subject: 
Re: Call for GUI part editor
Newsgroups: 
lugnet.cad
Date: 
Tue, 18 Jul 2006 07:17:34 GMT
Viewed: 
6769 times
  
In lugnet.cad, Anders Isaksson wrote:
Anders Isaksson wrote:
Of course, a workaround is to let the external program put
it's result to the clipboard, and manually paste that into LDDP

OK, I modified the standalone version a bit. It is now suitable to be used
as a 'User-defined program' in LDDP (the 'Parameter' field in LDDP should be
set to '%0'). Note that such programs can *only* work with the full file,
not selections in LDDP. Remember that you have to paste the results yourself
into the right window in LDDP (CTRL-A, CTRL-V)

http://web.telia.com/~u16122953/synceditsa.zip

works! thank you. as this is the standalone version I'll repeat my request for a
"Always on top" feature. is this doable? I also glimps for a split second an
about dialog when I start-up the prog. how about moving the about dialog into an
about button. I just had the feeling I missed some key info. I was up to ask for
an "undo" when I found out that I just can undo the paste in LDDP and fire up
Syncedit agian ... well ... it wouldn't hurt ...

cheers, w.


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR