692065227f9b0f987144c4608ffd6c31ce2af35d
kate
  Mon Jul 29 17:45:05 2019 -0700
Add support for styling submit buttons to indicate if they have been pressed (in modal mode).  Do this for reverse and multi-region buttons on hgTracks. refs #23922

diff --git src/hg/inc/hPrint.h src/hg/inc/hPrint.h
index 242ceb5..c08e7c8 100644
--- src/hg/inc/hPrint.h
+++ src/hg/inc/hPrint.h
@@ -47,30 +47,35 @@
 void hWrites(char *string);
 /* Write string with no '\n' if not suppressed. */
 
 void hButton(char *name, char *label);
 /* Write out button if not suppressed. */
 
 void hButtonWithMsg(char *name, char *label, char *msg);
 /* Write out button with msg if not suppressed. */
 
 void hButtonWithOnClick(char *name, char *label, char *msg, char *onClick);
 /* Write out button with onclick javascript if not suppressed. */
 
 void hOnClickButton(char *id, char *command, char *label);
 /* Write out push button if not suppressed. */
 
+void hButtonMaybePressed(char *name, char *label, char *msg, char *onClick, boolean pressed);
+/* If not suppresed, write out button optionally with onclick javascript, message and 
+   styled to indicate modal state (button pressed)
+ */
+
 void hTextVar(char *varName, char *initialVal, int charSize);
 /* Write out text entry field if not suppressed. */
 
 void hIntVar(char *varName, int initialVal, int maxDigits);
 /* Write out numerical entry field if not supressed. */
 
 void hDoubleVar(char *varName, double initialVal, int maxDigits);
 /* Write out numerical entry field if not supressed. */
 
 void hCheckBox(char *varName, boolean checked);
 /* Make check box if not suppressed. */
 
 void hDropList(char *name, char *menu[], int menuSize, char *checked);
 /* Make a drop-down list with names if not suppressed. */