Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
inp dialogue changes after 5s inactivity
#1
Dear Gintaras,

Suppose that you start the following macro :

Macro temp
Trigger SF12     Help - how to add the trigger to the macro
Code:
Copy      Help
_s.from("Give a numerical value")
inp- _i _s "Caption text" 20

and then you stay inactive for a few seconds. Exactly 5 sec later the format of the header changes distorting the dialogue form itself.

Thanks.
#2
I cannot reproduce this.

In QM 2.3.5 can replace inp to InputBox.
#3
Dear Gintaras,

Many thanks for your advice. I tested it with InputBox, I got the same problem. Nevertheless, it is not a QM bug but my own mistake, not discovered yet : I disabled all triggers and this problem disappears. However, I envisage a difficulty in finding out which trigger causes this bug. Could you please give me a hint on the most efficient way to monitor triggers activity?

Best regards,

Simos
#4
Dear Gintaras,

The macro which caused this problem was :

Function Change_QM_tool_window_style
Trigger !v"" "#32770" "" "" p /QM     Help - how to add the trigger to the macro
Code:
Copy      Help
int hwnd=val(_command)
if(GetWinStyle(hwnd 1)&WS_EX_TOOLWINDOW=0) ret
SetWinStyle hwnd WS_EX_TOOLWINDOW 6
SetWinStyle hwnd WS_MAXIMIZEBOX|WS_MINIMIZEBOX 1

I understand the dialogue changes its dimensions due to the size of the added buttons. I will try to fix it, however, any advice is welcome.

Thanks again,

SImos


Forum Jump:


Users browsing this thread: 1 Guest(s)