IC Python API:RLPy RWinMessageCallback

From Reallusion Wiki!
Revision as of 20:30, 28 March 2019 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Inheritance== This class inherits public member functions from: *RLPy.RCallback =...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Main article: Modules.

Inheritance

This class inherits public member functions from:

Detailed Description

This class is used to register callbacks for windows messages.

class MyWinMessageCallback(RLPy.RWinMessageCallback):
 def __init__(self):
   RLPy.RWinMessageCallback.__init__(self)
 def OnWinMsgReceieved(self, strMsg):
   print("WinMsg is" + strMsg)

mydialog = RUi.CreateRDialog()
mycallback = MyWinMessageCallback()
mydialog.RegisterNativeEventCallback(mycallback)

Member Functions

OnWinMsgReceieved

RLPy.RWinMessageCallback.OnWinMsgReceieved ( self, strMsg )

Callback for window message received.

Parameters

strMsg [IN] message name - string