Sensomusic

#1 2018-01-07 17:04:35

23fx23
Community

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:

    AnsiCharPtr test;
    test = sdkDialogInputBox("Enter value: ", "value:", "no name");   ///caption,prompt,dft
    sdkTraceChar(test);

could anyone find the trick? olivier heelllllllllllllllp ^^

Offline

 

#2 2018-01-07 21:18:44

23fx23
Community

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");

Offline

 

#3 2018-01-09 20:40:52

sm_jamieson
Platinum Member

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 ('\0') 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.

Last edited by sm_jamieson (2018-01-09 20:41:48)

Offline

 

#4 2018-01-10 00:35:44

23fx23
Community

yes there was a hared memory problem,  i saw with seno, fixed in next build

Offline