Old 11-16-2018, 07:10 PM   #1
tXShooter
Human being with feelings
 
tXShooter's Avatar
 
Join Date: Aug 2017
Posts: 336
Default Lokasenna_GUI Script - Textbox Notification?

How would a Lua script get notified when a Textbox is active, particularly if a mouse wasn't used to select that Textbox?


While using GUI.freq = 0, GUI.func = Main in a pseudo-defer manner, in my local function Main() I am rechecking all of the markers in a project (using reaper.EnumProjectMarkers3) and populating some Textboxes in the GUI. The problem is that when I want to use the Textbox to edit a marker's name, it won't let me because it's constantly updating the textbox from the pseudo-deferring.

Is there a way to get a notification when a Textbox is being edited?
__________________
"But be ye doers of the word, and not hearers only, deceiving your own selves."

Last edited by tXShooter; 11-18-2018 at 01:05 PM. Reason: Syntax correction
tXShooter is offline   Reply With Quote
Old 11-17-2018, 06:16 AM   #2
tXShooter
Human being with feelings
 
tXShooter's Avatar
 
Join Date: Aug 2017
Posts: 336
Default

Update:
I'm trying to get
Code:
function GUI.elms.Song1Title:ontype()
	EdittingTextBox = true
end
to work, but when I attempt to type inside this Textbox, all it is doing is steadily blinking the cursor as if no key was pressed.

Am I using the wrong input type to detect when a textbox has focus?


ontype
Called if this element currently has focus (was clicked, or given .focus = true) and keyboard input is detected.
__________________
"But be ye doers of the word, and not hearers only, deceiving your own selves."

Last edited by tXShooter; 11-17-2018 at 02:10 PM.
tXShooter is offline   Reply With Quote
Old 11-18-2018, 01:06 PM   #3
tXShooter
Human being with feelings
 
tXShooter's Avatar
 
Join Date: Aug 2017
Posts: 336
Default

(tiny bump)
__________________
"But be ye doers of the word, and not hearers only, deceiving your own selves."
tXShooter is offline   Reply With Quote
Old 11-21-2018, 07:47 PM   #4
tXShooter
Human being with feelings
 
tXShooter's Avatar
 
Join Date: Aug 2017
Posts: 336
Default

(Bigger bump)
__________________
"But be ye doers of the word, and not hearers only, deceiving your own selves."
tXShooter is offline   Reply With Quote
Old 11-22-2018, 05:53 AM   #5
tXShooter
Human being with feelings
 
tXShooter's Avatar
 
Join Date: Aug 2017
Posts: 336
Default Duplicated to REAPER General Discussion Forum

Moved
__________________
"But be ye doers of the word, and not hearers only, deceiving your own selves."
tXShooter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.