Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 16 AUG 1999 05:51:34AM Celest Celest wrote:

Hi

I have asked about this before but not realy got the hang of it.

It's like this. I have a window with an Edittable. When Focus is on the Edittable I want to be able to close the window by pressing Esc button. In the meny I have defined Ecs as send CLOSE to @WINDOW.

And i the CREATE event on the window I have:

qlf=1:@fm:2:'*':@appid:'*OMNIEVENT*':@window:'.TID_MATRIS'

x=send_message(@window:'.TID_MATRIS','WINMSG','CLOSE',qlf)

and on the event WINMSG in the Edittable I have send CLOSE to @window

I know I am doing somthing wrong but what? Please help

Regards

Celest


At 16 AUG 1999 11:10AM Oystein Reigem wrote:

You asked about this earlier this year. I replied, but my advice didn't help. My window was different. I had a list box and not an edit table.

This is the kind of stuff I have to look up in my notes every time I do it. I tried to look it up now, but couldn't find it. So perhaps it cannot be done.

But wait a minute! The OI Popup window has an edit table and works the way you want your window to do. No matter what control has the focus one can press esc and get the popup window to close. So how did the authors accomplish that? I cannot see any use of Qualify_Event in the Popup/Popup_Sub source.

But that edit table is special because it is destroyed and re-created. Is that significant???

- Oystein -


At 16 AUG 1999 12:06PM Donald Bakke wrote:

Just off the top of my head, I think it works for PopUps because the edittable is protected. Since the ESC key is the default 'end edit' key for the edittable, it doesn't get passed through. When the edittable is protected it can't use the ESC key and so it just passes it on.

[email protected]

SRP Computer Solutions


At 17 AUG 1999 01:03PM Arjun VarmaRevelation wrote:

Let me do a bit of research on this and I'll let you know what I come up with. Whatever Oystein said in his posting is correct. I will have to check up if the source code for that specific POPUP is available.


At 26 AUG 1999 07:27AM Bertil Strom wrote:

Hi

I have the same problem as Celest and are looking forward to the answer from Arjun Varma Revelation.

Regards

Bertil Ström

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/72bede744e06a411852567cf00362915.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1