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

Quote:
Originally Posted by deeb View Post
This is Whats is buggin me now . I'll try and see if i can fix ir later
That would be awesome; I'm a couple of weeks away from having any time to fiddle with it myself.

Both of them use the same logic - Checklist in nmouseup and Radio in nmousedown:
Code:
	-- See which option it's on
	local mouseopt = self.dir == "h" 	and (GUI.mouse.x - (self.x + 0.5*self.chk_w))
										or	(GUI.mouse.y - (self.y + self.cap_h + self.pad) )
	mouseopt = mouseopt / ((self.chk_w + self.pad) * #self.optarray)
	mouseopt = GUI.clamp( math.floor(mouseopt * #self.optarray) + 1 , 1, #self.optarray )
Edit: I can't actually reproduce it on my end. If the checklist's height is too small then the last couple of options spill outside the frame and aren't clickable, but it appears to be properly detecting the option I'm over.

Quote:
Originally Posted by deeb View Post
Is it possible without changing tab classe Tô have tabs with multiple rows?
Not at the moment.
__________________
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

Last edited by Lokasenna; 07-29-2017 at 03:07 PM.
Lokasenna is offline   Reply With Quote