mIRC Homepage
Posted By: sparta Another dialog question - 05/10/04 12:19 PM
any way you can make he "tabs" in a dialog longer? cos if the dialog is bigger then the tab length, then you get an empty space after them, i have two tabs, then only cover half of the dialog lengt, but want to have them cover the whole one.. so any way you can set a value on how long the tab should be?
Posted By: greeny Re: Another dialog question - 05/10/04 05:31 PM
nope
Posted By: sparta Re: Another dialog question - 06/10/04 11:12 AM
then that should be inplanted in the next version.. wink cos i think that it looks uggly when the tabs dont go all the way over the dialog.. crazy and i supose others will agree with me on that? wink thnx for ur reply anyway.. grin
Posted By: tidy_trax Re: Another dialog question - 06/10/04 11:15 AM
Why not just make the dialog smaller if you have nothing to fill it?
Also, lots of good looking dialogs have tabs that don't fill the whole dialog.
Posted By: sparta Re: Another dialog question - 06/10/04 11:26 AM
the dialog is filled.. just the tab's on top that arent..

dialog is this long "______________________________"

tabs cover this much: "__________'__________'__________"

the red "marks" marking the tabs..
the blue part is the part i wanted the tabs to stretch over..


Posted By: Coolkill Re: Another dialog question - 06/10/04 01:27 PM
Like most things you can just fill it with $chr(160). i.e.

tab "C            ", 4

Alternatively, to save you copy/pasting them in.

alias dtabs { did -a $$1 $$2 $+($did($$1,$$2),$str($chr(160),$$3)) }

Syntax; /dtabs $dname [color:red]object-id spaces-required[/color]

i.e.

dialog test {
title "mIRC"
size -1 -1 110 100
option dbu

tab "m", 1, 5 5 100 90
tab "I", 2
tab "R", 3
tab "C", 4

button "m is for ... wink", 11, 30 50 50 24, ok tab 1
button "I is for Internet", 12, 30 50 50 24, tab 2
button "R is for Relay", 13, 30 50 50 24, tab 3
button "C is for Chat", 14, 30 50 50 24, tab 4
}

On *:Dialog:test:init:*:{
dtabs $dname 2 10
dtabs $dname 3 10
echo done.
}

/dialog -m test test

Eamonn.
© mIRC Discussion Forums