Difference between revisions of "IC Python API:RLPy RWinMessageCallback"
From Reallusion Wiki!
Chuck (RL) (Talk | contribs) m |
Chuck (RL) (Talk | contribs) m |
||
Line 9: | Line 9: | ||
=== Inheritance === | === Inheritance === | ||
− | [[IC_Python_API:RLPy_RWinMessageCallback|RWinMessageCallback]]> [[IC_Python_API:RLPy_RCallback|RCallback]] | + | [[IC_Python_API:RLPy_RWinMessageCallback|RWinMessageCallback]] > [[IC_Python_API:RLPy_RCallback|RCallback]] |
== Member Functions == | == Member Functions == |
Latest revision as of 01:07, 24 April 2020
- Main article: Modules.
- Last modified: 04/24/2020
Description
This is the base class for registering callback function for windows messages.
Inheritance
RWinMessageCallback > RCallback
Member Functions
OnWinMsgReceieved
The callback function for windows messages. It is called when RWinMessageCallback receive a windows message.
Parameters
- strMsg [IN] Message name - string
1 class MyWinMessageCallback(RLPy.RWinMessageCallback):
2 def __init__(self):
3 RLPy.RWinMessageCallback.__init__(self)
4 def OnWinMsgReceieved(self, strMsg):
5 print("WinMsg is" + strMsg)
6
7 mydialog = RUi.CreateRDialog()
8 mycallback = MyWinMessageCallback()
9 mydialog.RegisterNativeEventCallback(mycallback)