mIRC Home    About    Download    Register    News    Help

Print Thread
#178647 13/06/07 12:02 PM
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
i have problems with ProgressBar...
i downloaded this example but it doesnt work at all :P

dunno why:

Code:
alias tst {
  if ($dialog(tst) == $null) { dialog -mn tst tst }
}


dialog tst {
  title "progress bar"
  size -1 -1 129 44
  option dbu
  text "", 1, 31 32 57 8
  text "", 2, 1 8 126 16
}


on *:dialog:prog:init:0: {
  $dll($mircdirsystem\dlls\mdx.dll, MarkDialog, $dname)
  $dll($mircdirsystem\dlls\mdx.dll, SetMircVersion, $version)
  $dll($mircdirsystem\dlls\mdx.dll, SetControlMDX, $dname 2 ProgressBar smooth > $ctl)
  load.up 
}

;Alias to make counter work:

alias load.up {
  dialog -m tst tst
  var %dsg = 0
  while (%dsg <= 100) {
    inc %dsg
    .timer -m 1 $calc(25 * %dsg) .did -a tst 2 %dsg 0 100
  }
}




anyone can explain why dont it work or how to make it work ?


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You don't have the custom identifier for $ctl.

Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
well i dont know what it is...
as said above, i downloaded this example (searched on google)
coz noone made quality examples for mdx smirk

Last edited by WideOpenSpace; 13/06/07 12:12 PM.

The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I don't think many people use MDX anymore, I think it's more DCX.

Code:
alias ctl { return path-to-ctl/ctl_gen.mdx }


Also, take a look here.

Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
well with alias that has path to ctl still nothing happens :P
i only get blank dialog with nothing happening smirk


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Erm, try changing this line:

Code:
on *:dialog:prog:init:0: {


to

Code:
on *:dialog:tst:init:0: {

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I always had issues with the progress bar in MDX. It never would be smooth for me. You're better off using DCX instead of MDX.


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
heh thanks now it works laugh

i just have an question...
i intend to use this progress bar inside a dialog
but i dont use timer in dialog but sort of %var increasing
so i want to ask (since i saw in help file that progressbar
DOES support /did -a) how to make it (just plain short example)
like (if %var == 10) { "here comes line to set progressbar on 10% of its width" }

i have it like this (if we take that it is 100 in width)

elseif (%var <= 20) { did -a dialogname 8 20 }
elseif (%var <= 30) { did -a dialogname 8 30 }

where 8 is ID of text control that holds this progressbar

thing is it doesnt work :P


The harder I chase my dreams the more I experience the time for smiles and tears...
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Originally Posted By: WideOpenSpace

(since i saw in help file that progressbar
DOES support /did -a)


Of course, we used the did command in your previous progress bar?

Anyways, do you mean like this

Code:
/did -a dialog 8 %var 0 100


I'm not totally sure what you mean. crazy

Joined: Jun 2007
Posts: 157
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
oh im sorry...
i apologyse.

well im makeing sort of downloader dialog
so while downloading bar is moving. (and my code works)
but i have some problems with connecting to server so i though
code was malefunctioning :P

nvm now :P

anyways thanks for helping with this laugh


The harder I chase my dreams the more I experience the time for smiles and tears...

Link Copied to Clipboard