|
-
Mar 17th, 2005, 07:57 PM
#1
Thread Starter
Fanatic Member
check my CODE
i want to do as follow
when i click Command1 it has to show dropdown menu of toolbar button
** i have only 1 button and dropdown menu button is associated with it..**
VB Code:
Dim hell As MSComctlLib.Button
Private Sub Command1_Click()
'Set hell = "Hello" '''' Hello is the name of button on which drop menu is associated
Call Toolbar1_ButtonDropDown(hell)
End Sub
Private Sub Toolbar1_ButtonDropDown(ByVal Button As MSComctlLib.Button)
End Sub
Private Sub Toolbar1_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu)
Select Case ButtonMenu
Case "kOiz"
MsgBox "OK"
End Select
End Sub
-
Mar 17th, 2005, 10:29 PM
#2
Re: Shouldn't that be: "check my CODE please"
ButtonDropDown is an event which occurs when the user clicks the dropdown arrow on a toolbar button. Calling this event, as you are trying to do will not cause the dropdown menu to display (in fact it will probably cause an error).
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
-
Mar 18th, 2005, 06:53 AM
#3
Thread Starter
Fanatic Member
Re: check my CODE
So what is the solution
if I want to do it from
command1 click
-
Mar 18th, 2005, 06:56 AM
#4
Re: check my CODE
Could you use Popupmenu?
VB Code:
'something like
Private Sub Command1_Click()
PopupMenu mnuFile
End Sub
-
Mar 18th, 2005, 07:02 AM
#5
Thread Starter
Fanatic Member
Re: check my CODE
is there any genuine problem with
toolbar dropdown menu ....???
-
Mar 19th, 2005, 01:22 AM
#6
Re: check my CODE
 Originally Posted by vbPoet
is there any genuine problem with
toolbar dropdown menu ....??? 
I tried to figure out how to get the menu to drop down in code ages ago but could never get it to work at all. Maybe there's some way, through subclassing or something to send the appropriate windows message to the button, but I don't know. Why don't you try asking in the API forum.
Good luck & let us know if you figure it out.
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
-
Mar 31st, 2005, 09:21 AM
#7
Thread Starter
Fanatic Member
Re: check my CODE
because i think it is better in VB6 forum ..
-
Apr 3rd, 2005, 03:43 PM
#8
Thread Starter
Fanatic Member
Re: check my CODE
 Originally Posted by vbPoet
is there any genuine problem with
toolbar dropdown menu ....??? 
.....????
-
Apr 3rd, 2005, 03:48 PM
#9
-
Apr 3rd, 2005, 04:31 PM
#10
Thread Starter
Fanatic Member
-
Apr 4th, 2005, 04:10 PM
#11
Thread Starter
Fanatic Member
Re: check my CODE
i think
sendmessage or Releasecapture API can solve this thread...
-
Apr 4th, 2005, 05:22 PM
#12
Re: check my CODE
 Originally Posted by pnish
Why don't you try asking in the API forum.
 Originally Posted by vbPoet
because i think it is better in VB6 forum ..
 Originally Posted by vbPoet
i think sendmessage or Releasecapture API can solve this thread...
And that's why I suggested (about two weeks ago) that you try asking your question in the API forum.
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
-
Apr 4th, 2005, 05:53 PM
#13
Thread Starter
Fanatic Member
Re: check my CODE
shArp
how can i shift my thread ...?
-
Apr 4th, 2005, 06:21 PM
#14
Re: check my CODE
I'm not sure how to move the thread (other than ask a moderator). Just start a new thread in the API forum and maybe include a link back to this one.
Pete
No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|