As to catch return of oActiveX:Do

Postby vilian » Fri Aug 03, 2007 11:54 am

Antonio,

I verified the topic that you he suggested, I identified some functions for the treatment of messages, but I did not understand as they can help me !
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Aug 03, 2007 1:30 pm

Vilian,

Do you always get 1242696 no matter what key you press ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Fri Aug 03, 2007 1:34 pm

Antonio,

any one.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Aug 03, 2007 3:51 pm

Do you get that value without pressing a key ?

What documentation about such event does your activex provides ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Fri Aug 03, 2007 6:03 pm

Antonio,

On these specific events the following text only exists:

Code: Select all  Expand view
Standard events:

The control supports these standard events: Click, Double click, Got Focus, and Lost Focus, KeyDown, KeyPress, KeyUp. The KeyDown, KeyPress and KeyUp event take one integer parameter which passes the value of the key code.


The support technician of them returned me the following one:

Code: Select all  Expand view
KeyPress event is not an internal TE message (it is only an ActiveX message), it would not be routed to the callback message.  The KeyPress event takes only one parameter which is the keyvalue for the keystroke.  So nKey1 should be the numeric key values.



I tested this event in Visual Basic and it seems to work properly. However, VB shows only one parameter, which is nKey.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Aug 03, 2007 6:18 pm

Vilian,

You may need to modify these methods in Class TActiveX:

METHOD KeyChar() VIRTUAL
METHOD KeyDown() VIRTUAL
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Fri Aug 03, 2007 6:35 pm

Antonio,

I made the modification, but nothing he modified in the result.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Aug 03, 2007 7:27 pm

Vilian,

I don't know, don't have more ideas :-(

Thats the problem with ActiveX (same as old Microsoft VBXs). We don't have their source code and we don't have full control over them
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby vilian » Fri Aug 03, 2007 7:34 pm

Antonio,

If you to install the control in its computer help to decide the problem?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby vilian » Fri Aug 03, 2007 7:40 pm

Antonio,

I asked to the support of them - Exists some another way to implement what necessary?

The support technician of them returned me the following one:

Code: Select all  Expand view

    If your application lets you define callback function, then you can use the TerRegisterMsgCallback function to register your callback function.  TE would then route the internal TE messages to the callback function.  The callback function should have the following prototypes:

LRESULT WINAPI _export TerCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

   Also, since KeyPress event is not an internal TE message (it is only an ActiveX message), it would not be routed to the callback message.  You can instead use the PreProcess event for this purpose.


Aid?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby Antonio Linares » Fri Aug 03, 2007 9:29 pm

Vilian,

> You can instead use the PreProcess event for this purpose.

Whats that ? Tell him to explain you whats the PreProcess event and a sample of its use
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 70 guests