>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




General

Author Thread: How to use xEditWindow
davin.church
How to use xEditWindow
Posted: Thursday, August 26, 2004 6:07 PM (EST)

Ok, I'm obviously doing something stupidly wrong here, but I can't seem to get EditWindow to work (Grid v5.0.20, APL v5.2.02, Win98).  I've created a separate Edit control and put its hwnd into Edit Window.  But if I try and edit the cells, it seems to be ignoring the custom EditWindow control completely and just doing its usual cell-editing thing.  (IOW, it doesn't move my window and doesn't transfer keyboard input to it.)

 

Has anyone successfully used EditWindow before that might tell me what simple thing I'm forgetting to do?


Comments:

Author Thread:
Support
How to use xEditWindow
Posted: Friday, August 27, 2004 11:00 AM (EST)
This works here for us and others.  It might help if you were to share with us the lines of code that shows what you've tried.

APL2000 Support

     

davin.church
How to use xEditWindow
Posted: Friday, August 27, 2004 12:17 PM (EST)
Ok, but I'm going to have to spend some time simplifying it out of a larger application first.  I was hoping that there would be a common fax paux someone could point me to that would save me a bunch of time (that I don't really have).

     

Support
How to use xEditWindow
Posted: Friday, August 27, 2004 12:32 PM (EST)
On a few occassions, I've mistakenly set the arguments to the xEditWindow property to {handle} {rows} {cols} when it's expecting {rows} {cols} {handle}.  Possible you've made the same mistake?

APL2000 Support

     

davin.church
How to use xEditWindow
Posted: Tuesday, August 31, 2004 3:11 AM (EST)

Thanks, but I seem to have the order correct in this case.  I don't suppose you can think of any other hints for me, can you?

 

There may also be a problem trying to use it as a default for rows and/or columns, but I'm working on getting a single-cell version running before I can test that properly.  (I'm still trying to get around to building a trivial test case so I can figure out what I'm doing wrong.)

     

brent.hildebrand
How to use xEditWindow
Posted: Tuesday, August 31, 2004 11:32 AM (EST)
Setup your grid, set the handle for the control you want to use as the xEditWindow, then, what happens when you double click on the cell? Or use the XEditStart method on the cell? Nothing? Or do you see the control with the handle that you have set as the xEditWindow? I've used the xEditWindow to use another processes window, in my case, a mapping program with a handle to the map, in the grid, and had maps appear as part of my program. That is, until map program eventually crashed. <g> OK - so it was not intended for that use, xEditWindow that is. It was fun to try...

     

davin.church
How to use xEditWindow
Posted: Tuesday, August 31, 2004 12:42 PM (EST)
Hey - that's a pretty cute thing to do with it, Brent.  In my case, though, I'm just trying to use an ordinary Edit box (so I can get its events).  The Edit box is set to appear (and does) on a different area of the screen from the test cell.  But when I go to edit the cell, the cell edits normally like I'd never set EditWindow and ignores my Edit box completely.  I've tried making the extra control both a child and a sibling of the grid object.

     

brent.hildebrand
How to use xEditWindow
Posted: Tuesday, August 31, 2004 1:01 PM (EST)
It would be good then to see sample code. I have used Edit controls and TimeDate controls, and Combo, and they appear in the cell, and the events are appropriate for those controls. One difference is that I am using Windows XP, not 98. One thing I do notice, if I close a form with xEditWindow set, and then reopen it, it does not work. The form, and edit control need to be rebuilt.

     

davin.church
How to use xEditWindow
Posted: Tuesday, August 31, 2004 2:06 PM (EST)

Never mind...  I found my stupid mistake.  EditWindow is page-specific and I defined it on the wrong page (tab).  <sigh>

 

Thanks for all the help, folks!

     



APL2000 Official Web Site

Service is the rent we pay for being. It is the very purpose of life, and not something you do in your spare time.
--- Marion Wright Edelman

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |