Welcome to %s forums

BrainModular Users Forum

Login Register

set background color

Create your own modules in C++
Post Reply
User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 15 Sep 2018, 22:15

Hi !
How to set the background color of a module ? I notice that it is in the global settings of the module, but how to set it to a value at init ?

thank you !

Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 16 Sep 2018, 07:14

might be wrong but think it can only be set in onGetmoduleinfo

void MY_MODULE::onGetModuleInfo(MasterInfo* pMasterInfo, ModuleInfo* pModuleInfo)
{
pModuleInfo->BackColor = xxxxx;
}

User avatar
oli_lab
Member
Posts: 1261
Location: Brittany, France
Contact:

Unread post by oli_lab » 16 Sep 2018, 08:27

23fx23 wrote:might be wrong}
You were right !

thank you

Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests