Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File > New > function, same as file > new > dialog?
#1
Sorry for this simple question , but I need to be sure about this.

If I create a new smart dialog through File > New > ... , Is it the same as creating a new Function (File > New > New Function) and pasting dialog code in it?
Or do I always need to create new dialogs through File > New > New Dialog.

I ask this because the the "newitem" command can only be:
"Macro", "Function", "Menu", "Toolbar", "Autotext", "Member", "Folder", "File Link".

I want to create some custom dialog templates to speed up coding in which I need the newitem command.
At first glance it seems to work, but I do not know what's different under the hood (within QM).
It may be that creating a new a function through File > New > creates a function but lacks some dialog internals if I just paste dialog code in it.
This could lead to problems in future?
#2
The same.
The "New Dialog" menu item is added because System function New_Dialog has trigger 'QM events -> add to menu -> New'. Function New_Dialog shows the "Custom dialog" dialog and creates new function with newitem, or inserts dialog code in current macro.
#3
Thank you, this makes it clear!


Forum Jump:


Users browsing this thread: 1 Guest(s)