|
Joined: Apr 2003
Posts: 426
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 426 |
This is so damn annoying.
When you click an item in a listbox, it selects it. That's all good and dandy, but what really sucks, is that you can't deselect an item without having to actually muck around with a little bit of scripting.
And what really sucks, is that you usually have to make it a dclick dialog event, because if you bung it in with an sclick event, it will stuff around with the selecting of an item.
So why can't we have listbox's automatically deselect the currently selected item, when we click on a blankspot within a listbox? This is, after all, what Windows allows you to do.
-------- mIRC - fun for all the family (except grandma and grandpa)
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
To deselect --> CTRL + left-click
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
That doesn't work in a listbox, watchdog neophyte, You could try
on 1:DIALOG:[color:Red]Dialog[/color]:SCLICK:[color:blue]id[/color]: {
if (!%lastClick) || (%selClick != $did($did).sel) /set %lastClick $did($did).sel
else if (%lastClick == $did($did).sel) /did -u $dname $did $%lastClick
}
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
It works in my Channel Central dialogue's listbox. I don't know why it does, it just does, and no I am not using any fancy DLL's, just mIRC scripting (not including the above).
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
I have an mp3 player with a listbox (untouched) and it doesn't work.. >:D
Added NotE: Might be the relevance of it being "multi" my playlist is single-select, and the channel central is mutli-- might have to do with the ability to select more than one option, and discard more then one option.
-KingTomato
|
|
|
|
Joined: Apr 2003
Posts: 426
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 426 |
I don't want to have to CTRL+Left click, or wave a cup of virgin's blood under a full moon while chanting verse and rhyme.
I want to be able to do exactly what I can do in Windows listboxes.
Just a normal left click on whitespace within a listbox to deselect an entry.
And as I stated, I've already figured out (thanks to the team in #scripting on austnet) how to do it using code, so that's all fine and dandy.
I just want to be able to not have to use code to do so. Or any other fancy mouse combination.
-------- mIRC - fun for all the family (except grandma and grandpa)
|
|
|
|
Joined: Apr 2003
Posts: 426
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 426 |
KingTomato: Just an update, I've re-tweaked your code a bit... This is what I've used.
on *:dialog:dialog:dclick:id:{
if $did($dname,$did).sel { did -u $dname $did $did($did).sel }
}
The reason I've used a dclick event, is because I CBF making it work with a single click.
-------- mIRC - fun for all the family (except grandma and grandpa)
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
I don't mean the channel central, I mean my own one. neophyte: I'm glad you got it sorted, might borrow that code if I may?
|
|
|
|
Joined: Apr 2003
Posts: 426
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2003
Posts: 426 |
I don't really care :P I mean, these forums are all about learning, and so forth, so whatever I post here, if it helps someone out, then I'm happy However, you won't see me posting all my scripts here :P *screenshot of the clonescanner script in action*
Last edited by neophyte; 23/06/03 03:49 AM.
-------- mIRC - fun for all the family (except grandma and grandpa)
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
hehe I won't be posting the code for that dialogue here, it's about 60kb.
|
|
|
|
|