Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Template
#1
how do i make a template consisting of three macros* ?

most of my toolbars share similar hook and extra functions.
so i need a blank toolbar, starting center with a standard size.
and so one.

that would allow me to create a set of toolbar templates.

*
actually 4 items.
folder
toolbar
_hook
functions
pi
#2
Create function that creates these 4 items, possibly from templates, using newitem. Assign trigger 'qm events\add to a menu\file -> new'.
#3
Gintaras Wrote:Create function that creates these 4 items, possibly from templates, using newitem. Assign trigger 'qm events\add to a menu\file -> new'.

please show me an example how you would make it.
pi
#4
Function New_Cloud
Trigger @12     Help - how to add the trigger to the macro
Code:
Copy      Help
int a=newitem("Cloud" "" "Folder") ;;folder
int b=newitem("tbhook" " /[]function# etc" "Function" "" a) ;;toolbar hook function
str s1.getmacro(b 1) s2.from(" /hook " s1)
newitem "tbname" s2 "Toolbar" "" a ;;toolbar
newitem "funcX" "xxxx" "Function" "" a ;;simple function


Forum Jump:


Users browsing this thread: 1 Guest(s)