mIRC Home    About    Download    Register    News    Help

Print Thread
#83154 16/05/04 01:19 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
is there a way to move an icon in a dialog? w/o opening and then closeing it ;/ that would be annoying

#83155 16/05/04 08:34 AM
Joined: Dec 2002
Posts: 1,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
No. You cannot resize nor move a control on an open dialog. You can only alter what's displayed in that control.

#83156 16/05/04 10:49 AM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
You could do it using mdx.dll.

#83157 16/05/04 05:28 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
how would i go about of moveing it w/ mdx.... =/ thats something i didnt know _-_;

#83158 16/05/04 07:01 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
Read the "MoveControl" section of the "dialog.hlp" help file that came with it.

#83159 16/05/04 07:57 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
thank you will do

#83160 17/05/04 01:05 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
erm new problem.....

ok i now know how to get it too move..... but theres a problem..

i put in
//dll $md MoveControl <dlg> <id> <new pos>

and it does it.... but .... it doesnt move

but heres the really odd part....

it doesnt show that it moves untill u make mirc minimize it or goto a diff proggy then come back to mirc... and it shows it moved...

i have tryed 2 diffrent aproces to over come this but both have failed

1) i move the icon then hide and restore visability....
2) make the dialog inactive and return its activeness

both failed any other ideas?

#83161 17/05/04 01:22 AM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
Works fine for me, maybe you need a better pc? wink

#83162 17/05/04 02:08 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
eh no my pc is just fine

#83163 17/05/04 02:41 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
It happens to me too (XP Home)..I'll test it on 98SE later perhaps...

#83164 17/05/04 08:48 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
I haven't tried it (and I can't), so I have no idea if it works, but have you tried did -g $dname ID $did($dname,ID) after the MoveControl call?

#83165 17/05/04 09:33 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
herm that seems to work .... but like the 2 previous trys it leaves a box where the last one was ;/

#83166 17/05/04 09:39 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
Make sure you are moving the correct id.

#83167 17/05/04 09:46 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
I got the same result. Using /dialog -s to move the dialog off the screen and back again seems to work.
Code:
alias redraw {
  var %t = $dialog($dname).x $dialog($dname).y $dialog($dname).cw $dialog($dname).ch
  dialog -sb $dname -10000 -10000 0 0
  dialog -s $dname %t
}

Last edited by Collective; 17/05/04 10:07 PM.
#83168 18/05/04 12:05 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
im not trying to move the [censored] dialog, im attempting to move an icon on the dialog and it works but it leaves a small box where the old icon was _+_

#83169 18/05/04 01:02 AM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
He is saying that moving it off the screen, then back on fixes the icon problem.

#83170 18/05/04 01:07 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
ic..... srry for missunderstanding ;/


Link Copied to Clipboard