|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
I'd like to see the -C switch to center dialog when first opened.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Why not just set the location to centered?
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
May be helpful I suppose. In case you're not aware though, this is already scriptable: on *:dialog:moo:init:0:{
dialog -s $dname $calc(($window(-1).w / 2) - ($dialog($dname).w / 2)) $&
$calc(($window(-1).h / 2) - ($dialog($dname).h / 2)) -1 -1
} Not to mention of course you can use the size line in the table definition to make it centred by default: dialog moo {
...
size -1 -1 height width
...
}
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
Well you might use the same dialog table for more than one dialog, with each needing different positioning. Or I guess you might want the dialog to be positioned based on a setting somewhere or depending on the situation, but this is all still settable using existing methods as noted in my other post (just a little more code required).
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Apr 2004
Posts: 759
Hoopy frood
|
Hoopy frood
Joined: Apr 2004
Posts: 759 |
dialog -r $dname works too 
$maybe
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
Oh yeah, and that. * starbucks_mafia goes back to versions.txt to see when that was added.Hmm... added in v5.61 back in 1999, you'd think I'd have found that switch by now!
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
OP
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Thanks for your feedback. I was aware it could be scripted. I just figured it could be useful because it's used in @windows even though you can specify the xywh etc.
|
|
|
|
|
|