Page 1 of 1

Posted: 07 Jan 2018, 18:04
by 23fx23
think the question/discuss fit better in this place..

im very excited by the new inputbox popup, but i tried all the afternoon varous cast wide_char/string ect and still fail :/

the most simple/ logical way for me to test at first was:

Code: Select all

    AnsiCharPtr test;
    test = sdkDialogInputBox("Enter value: ", "value:", "no name");   ///caption,prompt,dft
    sdkTraceChar(test);
could anyone find the trick? olivier heelllllllllllllllp ^^

Posted: 07 Jan 2018, 22:18
by 23fx23
still failing arf, did the following workaround by waiting enlights:

creating 'popup' datafield and/or textfields inputs parameters, and set them via iml queries from the module works, but less sexy ..

sdkSetModuleUserName("USER");
sdkSendUsineMsg("SET_TARGET_PATCH SENDER_PATCH");
sdkSendUsineMsg("INPUT_QUERY_VALUE 'Enter value: ' POPUPVALUE 50");
sdkSendUsineMsg("SET_VALUE USER popup POPUPVALUE");

Posted: 09 Jan 2018, 21:40
by sm_jamieson
The new routine doesn't seem to work. After each query it returns an empty string, whether you enter anything in the box or not.
The returned pointer is different every time, but always points to a memory location with the NULL character ('') in it.
If it was returning Unicode like the new settings string does, you would at least see the first character.

So it might need to be a bug report.

Posted: 10 Jan 2018, 01:35
by 23fx23
yes there was a hared memory problem, i saw with seno, fixed in next build