how get Event from Form_1.oWMP.Object ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 1303
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 244 times
Been thanked: 369 times

how get Event from Form_1.oWMP.Object ?

Post by AUGE_OHR »

hi,

when work with ActiveX i need SubClass (?) using Object of WMP

Code: Select all

Form_1.oWMP.Object:Controls:CurrentPosition
now try to get Event when click "on WMP"

Code: Select all

   CREATE EVENT PROCNAME WMPevent() HWND Form_1.oWMP.HANDLE STOREINDEX nIndex
or
   SET CONTROL oWMP OF Form_1 ONMOUSEEVENT WMPevent()

PROCEDURE WMPevent()
   DO CASE
      CASE nMsg = WM_LBUTTONDBLCLK
      CASE nMsg = WM_LBUTTONDOWN
      CASE nMsg = WM_XBUTTONDOWN
      CASE nMsg = WM_MBUTTONDOWN
   ENDCASE
but both react only on WM_LBUTTONDOWN and NOT when Video it "load" and "playing" ...
i try to add ".Object" but i got Errors :(

so how do i get Events from ActiveX :idea:
have fun
Jimmy

Post Reply