|
Joined: Oct 2004
Posts: 20
Ameglian cow
|
OP
Ameglian cow
Joined: Oct 2004
Posts: 20 |
I'm just wondering if there is a way to have multiple columns for list boxes in dialogs. And if there isnt then maybe some way of linkin two together so if one scrolls down then the other does too and then visa-versa with up.
Thanx
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Do you mean something like..
|
|
|
|
Joined: Oct 2004
Posts: 20
Ameglian cow
|
OP
Ameglian cow
Joined: Oct 2004
Posts: 20 |
|
|
|
|
Joined: Feb 2003
Posts: 67
Babel fish
|
Babel fish
Joined: Feb 2003
Posts: 67 |
That is done with MDX.dll which you can get from http://www.dim-bulb.net/~dragonzap/dlls/
Those who live by the sword get shot by those who don't.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Yeah sorry, I fell asleep at the computer, well I actually woke up in bed 2 hours from now, but I came to that conclusion because I have an imprint of the keyboards numpad on my forehead. It's done with MDX correct. This is what I used.
dialog List1 {
title "List1"
size -1 -1 214 107
option dbu
list 1,3 3 206 88,extsel size
button "OK", 2, 89 94 36 10, ok
}
on *:dialog:List1:init:0: {
dll mdx.dll SetMircVersion $version
dll mdx.dll MarkDialog $dname
dll mdx.dll SetControlMDX $dname 1 Listview report Rowselect grid showsel sortascending droptarget editlabels> views.mdx
did -i $dname 1 1 headerdims 120 280
did -i $dname 1 1 headertext $tab(List 1,List 2)
}
alias -l tab {
if (!$0) return $chr(9)
var %tabs = $1, %i = 2
while ( $ [ $+ [ %i ] ] ) { inc %i | set %tabs $+(%tabs,$chr(9),$ifmatch) }
return %tabs
}
|
|
|
|
Joined: Oct 2004
Posts: 20
Ameglian cow
|
OP
Ameglian cow
Joined: Oct 2004
Posts: 20 |
Okay....well...im usin the mdx and i need to use the information in the listbox for the script...whenever i save the info to a file it comes up with: 0 +f 0 0 0 <text> + 0 0 0 for every line....im just wondering if there is any way i can get rid of that
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
$gettok($gettok(0 +f 0 0 0 <text> + 0 0 0,4,48),1,32)
Where 0 +f 0 0 0 <text> + 0 0 0 is...you'd need to use the $read identifier.
|
|
|
|
Joined: Oct 2004
Posts: 20
Ameglian cow
|
OP
Ameglian cow
Joined: Oct 2004
Posts: 20 |
well....that would work, cept for when the string has a space in it...eg. C:\Mp3\Soundtrack - Gladiator\01 Progeny.mp3
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Damn. What about..
$gettok($gettok(0 +f 0 0 0 C:\Mp3\Soundtrack - Gladiator\01 Progeny.mp3 + 0 0 0,4,48),1-,32)
Returns C:\Mp3\Soundtrack - Gladiator\
Last edited by SladeKraven; 09/01/05 03:55 AM.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
var %x = 0 +f 0 0 0 <text> + 0 0 0
$deltok($deltok(%x,1-5,32),-4-,32)
$deltok(%x,1-5,32) deletes front 5 $deltok( ^^^ ,-4-,32) deletes last 4
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Wompie added me on MSN and then she thought of..
alias removemdxstuff {
set -n %mdxstuff $left($1-,$calc($len($1-) - 8))
set -n %mdxstuff $right(%mdxstuff, $calc($len(%mdxstuff) - 10))
return %mdxstuff
}
Nice suggestion though buddy.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
i had assumed the 0 represented a number i didnt know it was hardtext, else i would have used
var %x = 0 +f 0 0 0 <text> + 0 0 0 $left($mid(%x,12),-8)
although since this well collapse if a extra space is here or there, i would stick with the deltoks
|
|
|
|
|