View Single Post
Old 07-01-2017, 02:16 AM   #16
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

1. A single-item checkbox just requires making one with no overall caption, and only one option in the list. There's also an option I seem to have missed when I was documenting everything, .frame, that lets you disable the border around the list:
Code:
GUI.New("my_chk", "Checklist", 1, 16, 16, 200, 32, "", "Are you a cool guy?")

GUI.elms.my_chk.frame = false
2. Good catch. As it happens, you can use GUI.file_sep here:
Code:
local sep = GUI.file_sep
req("Classes"..sep.."Class - Slider.lua")
If I get a chance I'll update the examples with that.

3. Working fine here:
Code:
GUI.New("my_knob", "Knob", 1, 230, 32, 80, "Attack", 0, 100, 101, 0,0)

GUI.elms.my_knob.vals = false
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote