Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extra Dialog Button to change it's contents help
#1
I've been trying to figure this out for awhile and I must be missing something. I've been searching this forum for anything that may help, but not finding anything. Here's what I'd like to do... I created a dialog that contains text input fields that I populated with information. In this dialog other than the "SAVE/CANCEL" buttons that do their job, I've added a couple of other buttons like CLEAR, RECALCULATE or RANDOMIZE to change the text input fields, (eg: if I hit CLEAR, all the text fields would be emptied... if I hit RANDOM, it would populate all the fields with random data, etc) but I cannot seem to figure out how to trigger those extra buttons to do that. Any help would be appreciated!
#2
In Dialog Editor click the button and click Events in toolbar.
#3
Thanks G... Don't know how I missed that!
#4
Well at least they are clickable now but only within the subroutine within the function... I've tried returning different values but they are only triggered if the dialog is closed with OK or CANCEL. I tried making the values I wanted to change global, but that doesn't work either. I don't want to close the dialog, just change the contents of some of the dialog values when the button is pressed. Make sense?
#5
To get or set dialog control values without closing the dialog, can be used functions like DT_GetControl, DT_GetControls, DT_SetControl, DT_SetControls. More info in QM Help topic "Dialog editor".
#6
Yep... that's the ticket... thanks again G... Truly appreciate it!


Forum Jump:


Users browsing this thread: 2 Guest(s)