Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qmDialogSwitcher
#1
when working with smart dialogs you might find my function usefull.
the macro should be fired from your custom qm editor toolbar.
its thought as run dialog button.
toggle between edit dialog and run dialog.

the run macro part is not included.
you have to add it on your own :mrgreen:

Function qmDialogSwitcher
Code:
Copy      Help
out
str mName.getmacro("" 1)
str mCode.getmacro("")

;str firstline.getl(mCode 0)

int i=findw( mCode "\Dialog_Editor")    
sel i
,case 0
,,mCode.from(" " mCode)
,case 1
,,mCode.ltrim
,case else
,,out "this is not a dialog"
,,end
,,
mCode.setmacro(mName)
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)