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
How to create an Horizontal Switch with KnobMan
No permission to create posts
June 13, 2016
2:06 am
Avatar
clau_ste
Member
Members
Forum Posts: 39
Member Since:
April 5, 2016
sp_UserOfflineSmall Offline

Amazed on how the explanation and creation of this feature

I've tried to create a custom Horizontal Switch but i've founded some difficulties, i've made a layout with 10 x 10 grid (let's call it like that) and i've founded that it probably divides the image size for 6, so the click's doesn't correspond to the buttons created, i wonder if there's a possibility to setup the number of divisions of the grid that gets created when I insert my custom graphic image.

I think that this object work dividing for 6 because i've tried with an images with 6x6 grid and it seem to works

Claudio

June 13, 2016
5:08 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

The number of image rows must match the number of enumerated variables that the control is linked with. If there are 6 enumerations e.g. {enum1, enum2, enum3, enum4,enum5,enum6} then there must be 6 rows and 6 columns in the graphic.

I did not use knobman to create the final graphic; I used it to create the single buttons in their on/off states, and then put them together in Photoshop into the rows and columns of the final graphic.

- will

June 13, 2016
5:28 pm
Avatar
clau_ste
Member
Members
Forum Posts: 39
Member Since:
April 5, 2016
sp_UserOfflineSmall Offline

Thanks for this clarifiying answer, so if i add 10 controls the image will be divided in a matrix/table of 10x10 clickable parts?

June 13, 2016
5:47 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

It is not the number of controls, but the number of enumerated values when you use the enumerated UINT control type. Typically, this is done with the RackAFX radio buttons (which have a maximum of 8 enumerated values) but it can also be done with the sliders as well (which have a maximum of 256 enumerated values).

- Will

June 14, 2016
12:22 pm
Avatar
clau_ste
Member
Members
Forum Posts: 39
Member Since:
April 5, 2016
sp_UserOfflineSmall Offline

Perfect, i've got it and finally i've done it, by the way there's the possibility to make the image show 2 rows of buttons instead of one, for example if i want always to see 6x2 buttons? Or maybe there's the possibility to link two horizontal switches?
I ask this because i would have two rows of buttons to be clickable and have just one button always selected

June 14, 2016
7:22 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

You can link controls or update controls from within your plugin using sendUpdateGUI()

See the thread here:

http://www.willpirkle.com/foru.....updategui/

- Will

June 15, 2016
12:49 am
Avatar
clau_ste
Member
Members
Forum Posts: 39
Member Since:
April 5, 2016
sp_UserOfflineSmall Offline

And where can i found the variabile in the css file? How can i find the variable TAB_CTRL_0?

June 15, 2016
11:59 am
Avatar
clau_ste
Member
Members
Forum Posts: 39
Member Since:
April 5, 2016
sp_UserOfflineSmall Offline

Ok, i've got it, I've added two control parameters (int from 0 to 10) and called the userInterfaceChange with their controlIndex, now i need to hide/show one of the two CViewContainer based on if it's clicked the first or the second HorizontalSwitch, i've seen documentation about this and if i will have a problem i'll ask or i'll try again to read ­čśÇ thanks by the way

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Peter: 41

Derek: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msalda├▒a: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 476

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 30

Topics: 482

Posts: 1876

Newest Members:

sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 143

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