quote:
Originally posted by Spunky
quote:
Originally posted by Mnjul
if there's no need to get notified every time the dimension is changed
I would imagine he would so that he could update the xml to reflect the new size
Correct. I'm making a window designer that uses a blank window, with a title text box, minimize/maximize/close checkboxes and so on, as well as two text boxes that reflect the current size of the window.
js code:
var WndTest = MsgPlus.CreateWnd("Interfaces\\Test.xml", "WndTest", 0);
WndTest.RegisterMessageNotification(0x5, true);
function OnWndTestEvent_MessageNotification(PlusWnd, Message, wParam, lParam)
{
if (Message === 0x5)
{
WndTest.SetControlText("EdtWidth", "");
WndTest.SetControlText("EdtWidth", "");
}
}
The problem is... the lParam contains a single, long, number. How can I separate this into the width and height?
Example: start size equates to "19661199".