Home › Forums › Macros › Matrix – personnaliser l’affichage des boutons › Reply To: Matrix – personnaliser l’affichage des boutons
Salut,
Oui, c’est possible en mettant le code ci-dessous en entête de macro
Philippe
Declare Local Once boolean $firstTime$ = true
Declare Local int $itemID$ = 1
Declare Local int $itemSize$ = 56
If { $firstTime$ }
$firstTime$ = false
SendData thispatcher itemamount 0
SendData mainWindow setsize 463 {30 + ($itemSize$ * 2)}
SendData thispatcher itemamount 16
WaitDuration 100
$itemID$ = 5
DoRepeat
SendData thispatcher itemtype $itemID$ dial
SendData thispatcher itemtype {$itemID$ + 8} dial
SendData item dial $itemID$ name $itemID$
$itemID$ = {$itemID$ + 1}
WaitDuration 10
While {$itemID$ < 9}
SendData item button 0 fontface regular
SendData item button 0 bgcolor 0. 0. 0. 1.
SendData item button 0 bgoncolor 0.773 0.145 0.196 1.
SendData item button 0 bordercolor 0.251 0.533 0.643 1.
SendData item button 0 borderoncolor 0.2 0.2 0.2 1.
SendData item button 0 textcolor 0.827 0.827 0.824 1.
SendData item button 0 textoncolor 0.827 0.827 0.824 1.
SendData item dial defaultSettings
SendData thispatcher basicdisposition
SendData MacroInitialized
MacroStop
EndIf
// Which Case is it ?
Message { “Button or Dial number ” + currentCaseValueString() + ” : ” + currentCaseOptionValueFloat(0)}