braitsch / ofxDatGui

Simple to use, fully customizable, high-resolution graphical user interface for openFrameworks

Home Page:https://braitsch.github.io/ofxDatGui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Visual feedback for Matrix GUI without clicking onto it

iamterryclark opened this issue · comments

Hey there,

I am trying to implement a few different ways that a user could change a state via an int variable, which is linked to the individual buttons on the Matrix GUI.

  1. A simple mouse click to press individual the matrix buttons switching off all over buttons not selected works perfectly via setRadioButton(true), thanks for doing this! 👍.

  2. Using a timer to increment the state (which is an int variable) to then be shown on the matrix as (Visual Feedback) that the current button index is now selected. I currently do this with: getMatrix("State")->getChildAt(currentIndex)->setSelected(true);. I then set all other buttons as setSelected(false) to only show the currentIndex only. This only shows to me when I click onto the GUI.

Is there a fix or something I am not setting in the GUI to be able to fake an event so that it will show without me having to click on the GUI itself?

It's not clear to me what you're asking. Your question sounds more related to your programming logic than an issue with the ofxDatGui API.