Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gintaras and QM experts......one line macro request
#28
For single variable could be used inp (dialog available in floating toolbar), but we probably don't want 3 inp dialogs. Then create custom dialog. Example:

Macro Macro1470
Code:
Copy      Help
\Dialog_Editor

int v1 v2 v3

str controls = "4 6 8"
str e4 e6 e8
e4=v1; e6=v2; e8=v3
if(!ShowDialog("Macro1470" 0 &controls)) ret
v1=val(e4); v2=val(e6); v3=val(e8)

out F"{v1} {v2} {v3}"

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Static 0x54000000 0x0 4 6 48 12 "var1"
;4 Edit 0x54030080 0x200 58 4 96 14 ""
;5 Static 0x54000000 0x0 4 22 48 12 "var2"
;6 Edit 0x54030080 0x200 58 20 96 14 ""
;7 Static 0x54000000 0x0 4 38 48 12 "var3"
;8 Edit 0x54030080 0x200 58 36 96 14 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030208 "" "" ""

-------------------------------

Quote:when margin for the
text is exceeded it keeps on showing some weird numbers as i.e. =20...or so.

How it looks? Can you post screenshot?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)