View Single Post
Old 11-12-2018, 01:59 AM   #338
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 1,036
Default

For button actions I use:


Code:
-- Button Colors  = {r, g, b, transparency}
GUI.colors["my_pink"] = {255, 124, 192, 255}
GUI.colors["my_purple"] = {119, 17, 174, 255}


function btn_click_sect_help()
    commandID1 = reaper.NamedCommandLookup("_RSbe31a3de2526d47fa8357af06379275cceb291c2")
    reaper.Main_OnCommand(commandID1, 0) -- Script: ReaTrak sections help.lua
    end

GUI.New("sect_help_btn",      "Button",           3, 225+x1, 32+y1, 40, 17, "HELP", btn_click_sect_help)
GUI.elms.sect_help_btn.col_txt = "white" --Or you can use "my_pink" "my_purple"
GUI.elms.sect_help_btn.col_fill = "green"
GUI.elms.sect_help_btn.font = {"Arial", 12, "bi"} --"bi" bold italic
....

Last edited by MusoBob; 11-12-2018 at 02:25 AM.
MusoBob is offline   Reply With Quote