mIRC Homepage
Posted By: sparta dialog / menu question - 11/06/07 09:10 AM
Can you hide a menu in a dialog? like use the -h switch dosent work, any ideas?
Code:
alias test {
  if (!$dialog(test)) { dialog -m test test }
}
dialog test {
  title "Just a test dialog"
  size -1 -1 180 93
  option dbu

  menu "Test", 1
}

on *:dialog:test:*:*: {
  if ($devent == init) {
  did -h $dname 1 <- hide the ID
 }
  if ($devent == sclick) {
  if ($did == 1) { did -v $dname 1 } <- show the ID
}

any ideas on this one? i hope it can be done?
Posted By: SladeKraven Re: dialog / menu question - 11/06/07 11:24 AM
Change sclick to menu, but it triggers on the item, not the menu itself.

/help Dialogs
Posted By: sparta Re: dialog / menu question - 11/06/07 07:57 PM
I know about menu, i just took 1 as the button since i dont have any other in the dialog, how ever can you hide a menu id? or is it impossible, dosent work on init..
Posted By: RusselB Re: dialog / menu question - 11/06/07 10:01 PM
I did some testing on this, and it appears that you can't hide a menu ID, just like you can't hide a dialog Tab.
Posted By: SladeKraven Re: dialog / menu question - 11/06/07 10:32 PM
The only thing I can suggest is instead of hiding the menu, is to try and disable it instead.

Code:
/did -b test 1
© mIRC Discussion Forums