Skip to main content

[archive] Mscal.ocx

  • January 22, 2004
  • 25 replies
  • 0 views

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs

25 replies

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Are you sure the component will accept function keys?

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Gisle,

I don't know how to check if the control can accept function keys.
Any way, I allways handle my exceptions (like function keys) in the exception handler. So I thought the control would pass the exception routine if I press a function key, but it doesn't.
regards

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Gisle,

I don't know how to check if the control can accept function keys.
Any way, I allways handle my exceptions (like function keys) in the exception handler. So I thought the control would pass the exception routine if I press a function key, but it doesn't.
regards

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
May I ask why you want to use function keys?

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
May I ask why you want to use function keys?

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
May I ask why you want to use function keys?

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
I use function keys for many reasons. One of them is to exit my program (not escape). So if the focus is on the calendar-object, I wan't my users to be able to exit from there too.

For now, if a user press a date, I use CALL "W$KEYBUF" using 1, {^I}" to get another control focused but this isn't properly.
Any other suggestions ?

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Hans, have you tried compiling with -Vx switch?

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Hans, have you tried compiling with -Vx switch?

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
DanM,

Yes, my project is allways compiled with -Vx ...

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
DanM,

Yes, my project is allways compiled with -Vx ...

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
DanM,

Yes, my project is allways compiled with -Vx ...

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Hans,

We are using the KeyDown event (instead of KeyPress) to capture all function keys from Microsoft's Calendar control. Then C$GETEVENTDATA gives us two variables. The first one is the function key where 112 is F1 and 113 is F2 and so on...

The second variable passed is whether the shift or control key, etc. was pressed.

I hope this helps you.

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Rob,

Txs for the info .. it helps.
Still, the control won't react on F10, but that's no major problem.
Everything works just fine now.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Rob,

Txs for the info .. it helps.
Still, the control won't react on F10, but that's no major problem.
Everything works just fine now.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Hans,

Glad I can help. I think that Microsoft OWNS the F10 key, so that's probably why you don't get an event or something.

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Hans,

Glad I can help. I think that Microsoft OWNS the F10 key, so that's probably why you don't get an event or something.

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Hans,

Glad I can help. I think that Microsoft OWNS the F10 key, so that's probably why you don't get an event or something.

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
To use the F10 key in an AcuCOBOL-GT program you need to set the runtime configuration variable F10_IS_MENU to "0" otherwise MS Windows uses the key to activate program menus.

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Thanks, mnabbs! I wasn't aware of that config variable.

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Thanks, mnabbs! I wasn't aware of that config variable.

Rob

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Mnabs,

I knew about the configuration variable, but still .. even set to zero, the control doesn't react to F10 and I don't think we can work around this issue. Txs anyway

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Mnabs,

I knew about the configuration variable, but still .. even set to zero, the control doesn't react to F10 and I don't think we can work around this issue. Txs anyway

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Mnabs,

I knew about the configuration variable, but still .. even set to zero, the control doesn't react to F10 and I don't think we can work around this issue. Txs anyway

Dominique Sacre
Forum|alt.badge.img+2

[Migrated content. Thread originally posted on 22 January 2004]

I'm using the Microsoft Calendar OCX in my application.
Everything just works fine, but the control doesn't respond to function keys !

I tried to call "C$GETEVENTDATE" when the method KEYPRESS is invoked, but it only respond to a-z 0-9 keys.

What can I do ?
Txs
Note that even though ACUCOBOL-GT allows you to override the Windows default action of the F10 key, that doesn't mean other Windows applications (including ActiveX components) do.

Thus, this is why you will not get a component to respond to F10 when it has focus.