Skip to content
MSN

drop down not working

A TG007 community discussion started by sugarboy.

Discussion 8 posts
Page 1 of 1
Open
Topic #5054 · 8 published posts · 970 views

I am working on a toolbar have just redoing it and I want it to have connect and then disconnect as a dropdown option of the toolbar this is what i got but its not working

 

  did -a $dname 1 +a 1 $chr(9) Connect.
 did -a $dname 1 +v 2 $chr(9) Disconnect.

*Insert interesting signature here*

try:

;using /didtok
didtok $dname 1 44 Connect,Disconnect

;or using /did
did -a $dname 1 Connect
did -a $dname 1 Disconnect

People are like slinkies; they're generally boring until you push them down stairs

neither of those work, I want it to drop down, those are side by side.

 

This is what is looks like right now.

 

IPB Image

Edited Oct 25, 2005 11:23 PM by sugarboy

*Insert interesting signature here*

this is what is commonly known as a dropdown.

 

this is what you need using popups.dll:

;in the dialog
did -a $dname 1 +av 1 Connection

;as a dialog event
on *:dialog:mydialog:sclick:1:{
 if ($did($dname,1).sel == 1) { popup }
}

;as an alias
popup {
dll popups.dll New popup 16 16
dll popups.dll SetStyle popup bordericon
dll popups.dll LoadImg popup icon small $shortfn($scriptdir) $+ images\connect.ico
dll popups.dll LoadImg popup icon small $shortfn($scriptdir) $+ images\disconnect.ico
dll popups.dll AddItem popup end + Connect $cr server irc.myserver.com
dll popups.dll AddItem popup end + 0 0
dll popups.dll AddItem popup end + 3 3 Disconnect $cr disconnect
dll popups.dll popup popup $mouse.dx $mouse.dy
}
;edit to suit the directories

 

if you're not releasing you're script you could use this file

 

hope this helps ^_^

Edited Oct 26, 2005 1:20 AM by Angelia

People are like slinkies; they're generally boring until you push them down stairs

this is what is commonly known as a dropdown.

 

this is what you need using popups.dll:

;in the dialog
did -a $dname 1 +av 1 Connection

;as a dialog event
on *:dialog:mydialog:sclick:1:{
 if ($did($dname,1).sel == 1) { popup }
}

;as an alias
popup {
dll popups.dll New popup 16 16
dll popups.dll SetStyle popup bordericon
dll popups.dll LoadImg popup icon small $shortfn($scriptdir) $+ images\connect.ico
dll popups.dll LoadImg popup icon small $shortfn($scriptdir) $+ images\disconnect.ico
dll popups.dll AddItem popup end + Connect $cr server irc.myserver.com
dll popups.dll AddItem popup end + 0 0
dll popups.dll AddItem popup end + 3 3 Disconnect $cr disconnect
dll popups.dll popup popup $mouse.dx $mouse.dy
}
;edit to suit the directories

 

if you're not releasing you're script you could use this file

 

hope this helps ^_^

 

The link that you included does not work, Instead it just takes me to the index page of mircscripts.org. I don't have the popups.dll file and I looked on that site and all i could find it xpopups.dll Do they work the same or do I need to keep searching for popups.dll? Thank you for the assistance that you have provided so far. I really do appreciate all of your help.

*Insert interesting signature here*

popups.dll is on tg HERE

 

its the new version called xpopups.dll

My code does NOT have bugs. It just develops random features.

Alrighty I did just as you instructed and now my toolbar is not showing up at all. I mean, The bar itself is there, however none of the icons or text is there.

 

Here is muh current code if it helps you.

 

on *:start: {
 /dialog -m toolbar toolbar
}
dialog toolbar {
 title "Toolbar"
 size -1 -1 1000 11
 option dbu
 list 1, 1 0 1000 14, size
}
on *:dialog:toolbar:init:0:{ 
 dll dlls\ultradock.dll Dock -1 $dialog($dname).hwnd top toolbar
 dll dlls\mdx.dll SetMircVersion $version 
 dll dlls\mdx.dll MarkDialog $dname
 dll dlls\mdx.dll SetControlMDX $dname 1 ToolBar list arrows flat wrap nodivider > dlls\bars.mdx
 dll dlls\mdx.dll SetDialog $dname style
 dll dlls\mdx.dll SetBorderStyle 1
 did -a $dname 1 +av 1 Connect
}

on *:dialog:toolbar:sclick:1:{
 if ($did($dname,1).sel == 1) { popup }
}

and this is what is in muh alias

popup {
 dll dlls\popups.dll New popup 16 16
 dll dlls\popups.dll SetStyle popup bordericon
 dll dlls\popups.dll LoadImg popup icon small images\connect.ico
 dll dlls\popups.dll LoadImg popup icon small images\disconnect.ico
 dll dlls\popups.dll AddItem popup end + Connect $cr server irc.myserver.com
 dll dlls\popups.dll AddItem popup end + 0 0
 dll dlls\popups.dll AddItem popup end + 3 3 Disconnect $cr disconnect
 dll dlls\popups.dll popup popup $mouse.dx $mouse.dy
}

*Insert interesting signature here*

the popup needs to be an alias so put alias infront of popup

when you click the arrow a dclick event is triggered not an sclick

and $did($dname,1).sel should equal 2 cos line 1 is the control line

"the important thing was, that i had an onion on my belt, which was the style at the time"