On 20/09/2015 at 14:08, xxxxxxxx wrote:
Niklas,
In my plugin, the non-modal main plugin dialog opens a non-modal sub-dialog. In the sub-dialog I've put the following:
def Message(self, msg, result) :
if msg.GetId() == c4d.BFM_GOTFOCUS:
print 'got'
if msg.GetId() == c4d.BFM_LOSTFOCUS:
print 'lost'
When the sub-dialog opens 'got' is printed. Correct.
When the sub-dialog loses the focus (main plugin dialog, or C4D window is clicked) both 'lost' and 'got' are printed. Seems wrong?
When the sub-dialog is closed 'lost' is printed. Correct
But, when I click back and forth between the C4D, or the main plugin dialog, and the sub dialog, nothing happens. This is a problem. I need to know when the sub-dialog gets the focus to update some things.
Shouldn't it print 'got' when you click back and forth between the dialogs.
Thanks,
Chris