Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Updating increment/decrement button GUI (?)
No permission to create posts
October 2, 2017
12:48 pm
Avatar
Gwen
Member
Members
Forum Posts: 32
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

hello !

i found how adding increment decrement buttons.

for example VoiceMode, you add on your GUI: knob, text and increment decrement button (or grafical arrows, etc. ...). it works !

but the GUI is not updated !

because i added this in userinterfacechange (working), and checkupdateGUI (not working):

example using the VoiceMode (nanosynth, minisynth, digisynth, ...)

Userinterfacechange:

case 45: // using the "45" switch button. if not, change the number.

 {

if (m_uPlus == SWITCH_ON)

m_uVoiceMode = m_uVoiceMode++; // working !!! the Voices are changing (osc1->osc2->osc3,etc...) or (saw->tri->square,etc. ...)

update();

break;

}

 

but checkupdateGUI:

case 45: {

if (fValue == SWITCH_ON)

{

// ---  GUI_PARAMETER param1 = { 0 };

param1.uControlId = 0;// VoiceMode

param1.fActualValue = fValue++; // increment. <---- that's here i make mistake ! sure !!!

guiParameters.append(param1);

// --- true, because we are doing an update

return true; } }

 

So i think it's possible with the right Value.

wich one ?

 

thanks for help 🙂

 

Gwen

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online: W Pirkle
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Derek: 41

Peter: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 478

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 29

Topics: 479

Posts: 1870

Newest Members:

certvalue111, sobhana s, sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 140

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 140