mIRC Home    About    Download    Register    News    Help

Print Thread
#188740 29/10/07 07:09 PM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
i can't seem to get an hsbar style to work in a dialog.

Code:
dialog -l wpmain {
  title "WP MP3 Player v $+ $wp.ver"
  size -1 -1 299 150
  option dbu notheme
  icon $scriptdirwpicon.ico, 0
  button "PLAY", 2, 248 125 47 11, default
  button "STOP", 4, 248 137 40 11
  button "Refresh", 5, 3 139 30 8
  tab "MP3", 8, 3 1 242 136
  list 1, 7 17 235 117, tab 8 sort size hsbar
  scroll "mp3position", 66, 35 139 211 8, tab 8 range 0 100 horizontal
  tab "WAV", 9
  list 10, 7 17 235 117, tab 9 sort size hsbar
  check "Play channel wavs played by others if file exists in list above.", 71, 40 138 205 10, tab 9
  tab "WMA", 48
  list 49, 7 17 235 117, tab 48 sort size hsbar
  tab "ZIP", 12
  list 47, 7 17 235 117, tab 12 sort size hsbar
  tab "Channel", 3
  list 7, 7 17 235 106, tab 3 sort size extsel hsbar
  button "Remove", 21, 70 125 60 10, tab 3
  button "Clear All", 22, 217 125 26 10, tab 3
  button "Grab", 23, 7 125 60 10, tab 3
  tab "List Maker", 39
  button "Make List", 40, 6 115 150 20, tab 39
  check "Folder Names", 41, 51 22 64 8, tab 39
  check "Attach Message:", 44, 51 46 58 9, tab 39
  edit "", 45, 7 58 235 55, tab 39 multi return autovs vsbar
  check "MP3 Files", 42, 10 22 35 8, tab 39
  check "WAV Files", 43, 10 30 35 8, tab 39
  check "ZIP Files", 51, 10 38 35 8, tab 39
  button "Advertise List", 20, 157 115 86 20, tab 39
  check "File Sizes", 26, 51 30 53 8, tab 39
  check "Bitrate/Rate/Mode(Very Slow)", 27, 51 38 85 8, tab 39
  box "Include", 28, 7 15 135 42, tab 39
  edit %wp.listnick, 34, 171 29 56 10, tab 39
  text "List Nick", 36, 145 29 25 8, tab 39
  check "WMA Files", 62, 10 46 35 8, tab 39
  check "compress list for quicker sending?", 72, 145 45 95 10, tab 39
  tab "Search", 46
  list 15, 7 40 235 94, tab 46 sort size hsbar
  button "Search", 14, 8 29 115 10, tab 46
  edit "", 13, 7 17 235 10, tab 46
  button "Perform @find", 67, 126 29 115 10, tab 46
  tab "List Grabber", 54
  box "Current List Being Grabbed", 55, 8 19 232 20, tab 54
  text %wp.grablist, 56, 10 27 130 8, tab 54
  button "SelectList", 57, 145 25 30 10, tab 54
  list 58, 8 42 233 74, tab 54 size extsel hsbar
  button "Remove Line", 59, 9 119 61 15, tab 54
  button "Stop", 60, 190 119 26 15, tab 54
  text %wp.grabchan, 63, 75 124 84 8, tab 54
  button "Change", 64, 161 122 25 10, tab 54
  button "Resume", 61, 217 119 26 15, tab 54
  box "Channel", 32, 72 116 117 19, tab 54
  button "Check list for doubles", 69, 180 25 55 10, tab 54
  check "Play Messages", 16, 250 50 46 10
  check "Handle Sends", 17, 250 17 44 8
  check "Handle @find", 18, 250 2 44 8
  check "Silent Play", 35, 252 88 41 10
  link "WP", 50, 290 140 8 8
  check "Random", 6, 252 99 41 10
  check "Repeat", 11, 252 110 41 10
  edit %wp.slots, 52, 275 25 20 10
  text "Max Slots", 53, 250 25 25 10
  button "Change File", 65, 254 60 35 10
  button "Use Blank", 25, 254 70 35 10
  box "", 29, 248 46 49 38
  box "", 30, 248 84 49 38
  box "", 31, 248 12 49 34
  check "Send SLOTS", 33, 250 35 44 10
  menu "Settings", 37
  item "Folder Settings", 38, 37
  item "Set On Top", 19, 37
  item "Hide Spam", 68, 37
  item "Show in MSN Messenger", 70, 37
  item "Use OnAirNow Plugin", 73, 37
  item "Stealth", 24, 37
  item "About", 101, 37
}
menu status {
  wpmain:dialog -md test wpmain
}
on 1:dialog:test:init:0:{
  var %i 0
  while %i < 100 {
    inc %i
    did -a test 1 $str(1,%i)
  }
}


i took that code and dropped it in a clean mirc to the same result, the hsbar won't show in any of the listboxes. Can anyone else confirm? That little bit to fill the list is just to show it doesn't matter if there's data there or not.

btk


billythekid
Joined: Mar 2003
Posts: 612
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
also tried with this much smaller dialog, easier to test...
Code:
dialog new_table {
  title "test"
  size -1 -1 60 60
  option dbu
  list 1, 5 5 50 50, size hsbar
}
menu status {
  wpmain:dialog -md test new_table
}
on 1:dialog:test:init:0:{
  var %i 0
  while %i < 100 {
    inc %i
    did -a test 1 $str(1,%i)
  }
}


...thought it might be the dialog itself

Last edited by billythekid; 29/10/07 07:14 PM.

billythekid
Joined: Mar 2003
Posts: 612
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
oops, quick search for hsbar gave me this post, which shows how.

thanks, and apologies.

btk


billythekid

Link Copied to Clipboard