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 Topic RSS sp_TopicIcon
Updating increment/decrement button GUI (?)
Avatar
Gwen
Member
Members
October 2, 2017 - 12:48 pm
Member Since: November 1, 2016
Forum Posts: 32
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: 152

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 684

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 747

Posts: 2853

Newest Members:

duo.dirtykidz, Paul, Reakenzo, jflo, dan_1, phlub, josh, bmarx, Tom Helvey, Ludovic

Moderators: W Pirkle: 555

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 555, VariableCook: 3