Go to content Go to navigation

G4 Button Disable

30 April 2010, 09:42 by Chad Reynoldson

Disabling a button, while maintaining it’s visibility is a good UI practice to keep the user from wondering “what happened to that button”. Using the BMF command on a G4 button makes this a piece of cake.

// Enables button #171:
SEND_COMMAND dvTP1a,'^BMF-171,0,%EN1%OP255'

// Disables button #171, but maintains opaque visibility:
SEND_COMMAND dvTP1a,'^BMF-171,0,%EN0%OP100'


Share This Article

Comments

No Current Comments

Write a comment.

Please note…

  1. Please keep comments to a thoughtful discussion on the topic.
  2. If you just want to say hello, use the contact form instead.
  3. Textile is limited to *strong*, _italics_ and "link":url .
  4. I reserve the right to edit/remove any comments.