Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Lobo on April 24, 2003, 12:30 AM

Title: menupopup on listview item click
Post by: Lobo on April 24, 2003, 12:30 AM
how can I make a little menu to pop up when I say right click a username on the listview
Title: Re:menupopup on listview item click
Post by: Tazo on April 24, 2003, 05:44 AM
I believe you would add a menu, but make the menu invisible. Add all the submenus you want to, but make those visible. Say your listview is named listview1..In ListView1.MouseUp, put
Me.PopupMenu WhateverTheMenuWasCalled
And there ya go.
Title: Re:menupopup on listview item click
Post by: Lobo on April 24, 2003, 12:27 PM
stuck again I wanna do a ban command but how do I tell the bot to send who to ban like how do I say the person thats highlighted I wanna send there name.
Title: Re:menupopup on listview item click
Post by: Mesiah / haiseM on April 24, 2003, 12:52 PM
i beleive there is an api call to dynamicly create popup windows, i cant recall it though...
Title: Re:menupopup on listview item click
Post by: Fpa on April 24, 2003, 01:53 PM
hrm lets see...

Private Sub ListView1.MouseUp(obviously your vars go here)
'Add a If Statement For Checking If It Was Right Clicked (Button 2)
'In The Statement Put The Following Code
'Your_Ban_Menu_Item Is The Name Of Your Ban Menu Item
Me.PopupMenu Your_Ban_Menu_Item
End Sub

Private Sub Ban_Click()
CleanSlateBot1.Send "/ban " & ListView1.SeletedItem
End Sub

Title: Re:menupopup on listview item click
Post by: Banana fanna fo fanna on April 24, 2003, 07:53 PM
Quote from: MesiaH on April 24, 2003, 12:52 PM
i beleive there is an api call to dynamicly create popup windows, i cant recall it though...

OVERKILL.
Title: Re:menupopup on listview item click
Post by: Lobo on April 25, 2003, 11:07 AM
can you save whats in a list box? if so how
Title: Re:menupopup on listview item click
Post by: Yoni on April 25, 2003, 02:04 PM
Quote from: Lobo.id on April 25, 2003, 11:07 AM
can you save whats in a list box? if so how
Try writing the contents to a file