|
-
Sep 1st, 2000, 04:05 PM
#1
Thread Starter
Member
How Do you get the kewl menu that IE has the one where it is a menu but beside of that there is that animation second question:
How do you change another programs caption say if I had calculator open I could change the caption of it to say like Adding machine
---~^ Absalom ^~---
There is nobody in the world who knows everything there is no one his/her workforce who knows everything what really makes the person smart is that he/she is not affraid to ask for help.
-
Sep 1st, 2000, 04:13 PM
#2
Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Sub Command1_Click()
Dim hCalc As Long
'find Calculator's hWnd
hCalc = FindWindow("SciCalc", vbNullString)
'use SetWindowText to set the caption
Call SetWindowText(hCalc, "Adding Machine")
End Sub
-
Sep 1st, 2000, 04:57 PM
#3
Thread Starter
Member
No one has answered my first question yet come on I 'm sure one of ya's knows
---~^ Absalom ^~---
There is nobody in the world who knows everything there is no one his/her workforce who knows everything what really makes the person smart is that he/she is not affraid to ask for help.
-
Sep 1st, 2000, 05:29 PM
#4
IE uses a ToolBar for it's menu.
-
Sep 2nd, 2000, 03:02 PM
#5
Thread Starter
Member
Then How do they get the video and menu on the toolbar
---~^ Absalom ^~---
There is nobody in the world who knows everything there is no one his/her workforce who knows everything what really makes the person smart is that he/she is not affraid to ask for help.
-
Sep 2nd, 2000, 04:02 PM
#6
The video is not on the ToolBar, rather it's beside it. For this you can use a simple Animation Control.
-
Sep 2nd, 2000, 05:00 PM
#7
Thread Starter
Member
Yes but how do you get the menu in the toolbar
---~^ Absalom ^~---
There is nobody in the world who knows everything there is no one his/her workforce who knows everything what really makes the person smart is that he/she is not affraid to ask for help.
-
Sep 2nd, 2000, 05:12 PM
#8
Monday Morning Lunatic
IE uses a Rebar control for it's toolbars, which allows it to use menus in that way. It's way too complex for me to understand so I won't try and explain. V(ery) had some groovy code to do stuff like that, though.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 6th, 2000, 01:14 PM
#9
Lively Member
You could use the toolbar ButtonMenus to do this very easily as it's part of the standard functionality.
Code:
Private Sub Form_Load()
Dim i As Integer
Dim btn As Button
' Add five Button objects to the Toolbar control.
For i = 1 To 5
Set btn = tb1.Buttons.Add(Caption:="button " & i, Style:=tbrDropdown)
' Add two ButtonMenu objects to each Button.
btn.ButtonMenus.Add Text:="Help"
btn.ButtonMenus.Add Text:="Options"
Next i
End Sub
Beyond that I would suggest checking the MSDN site http://search.microsoft.com/us/dev/default.asp for the
original toolbar control http://msdn.microsoft.com/library/de...appearance.htm
and see if it doesn't have more functionality than what's avail. in VB. 
C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
-
Sep 6th, 2000, 01:21 PM
#10
Lively Member
You could use the toolbar ButtonMenus to do this very easily as it's part of the standard functionality.
Code:
Private Sub Form_Load()
Dim i As Integer
Dim btn As Button
' Add five Button objects to the Toolbar control.
For i = 1 To 5
Set btn = tb1.Buttons.Add(Caption:="button " & i, Style:=tbrDropdown)
' Add two ButtonMenu objects to each Button.
btn.ButtonMenus.Add Text:="Help"
btn.ButtonMenus.Add Text:="Options"
Next i
End Sub
Beyond that I would suggest checking the MSDN site http://search.microsoft.com/us/dev/default.asp for the
original toolbar control http://msdn.microsoft.com/library/de...appearance.htm

C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
-
Sep 6th, 2000, 01:34 PM
#11
Lively Member
You could use the toolbar ButtonMenus to do this very easily as it's part of the standard functionality.
Code:
Private Sub Form_Load()
Dim i As Integer
Dim btn As Button
' Add five Button objects to the Toolbar control.
For i = 1 To 5
Set btn = tb1.Buttons.Add(Caption:="button " & i, Style:=tbrDropdown)
' Add two ButtonMenu objects to each Button.
btn.ButtonMenus.Add Text:="Help"
btn.ButtonMenus.Add Text:="Options"
Next i
End Sub
Beyond that I would suggest checking the MSDN site http://search.microsoft.com/us/dev/default.asp for the
original toolbar control http://msdn.microsoft.com/library/de...appearance.htm

C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
-
Sep 6th, 2000, 01:45 PM
#12
Lively Member
You could use the toolbar ButtonMenus to do this very easily as it's part of the standard functionality.
Code:
Private Sub Form_Load()
Dim i As Integer
Dim btn As Button
' Add five Button objects to the Toolbar control.
For i = 1 To 5
Set btn = tb1.Buttons.Add(Caption:="button " & i, Style:=tbrDropdown)
' Add two ButtonMenu objects to each Button.
btn.ButtonMenus.Add Text:="Help"
btn.ButtonMenus.Add Text:="Options"
Next i
End Sub
Beyond that I would suggest checking the MSDN site http://search.microsoft.com/us/dev/default.asp for the
original toolbar control http://msdn.microsoft.com/library/de...appearance.htm

C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
-
Sep 6th, 2000, 02:00 PM
#13
Lively Member
You could use the toolbar ButtonMenus to do this very easily as it's part of the standard functionality.
Code:
Private Sub Form_Load()
Dim i As Integer
Dim btn As Button
' Add five Button objects to the Toolbar control.
For i = 1 To 5
Set btn = tb1.Buttons.Add(Caption:="button " & i, Style:=tbrDropdown)
' Add two ButtonMenu objects to each Button.
btn.ButtonMenus.Add Text:="Help"
btn.ButtonMenus.Add Text:="Options"
Next i
End Sub
Beyond that I would suggest checking the MSDN site http://search.microsoft.com/us/dev/default.asp for the
original toolbar control http://msdn.microsoft.com/library/de...appearance.htm

C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
-
Sep 6th, 2000, 02:17 PM
#14
Monday Morning Lunatic
Yes...we get the point!!!!
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 6th, 2000, 02:26 PM
#15
Fanatic Member
All four of them in fact 
Originally posted by parksie
IE uses a Rebar control for it's toolbars, which allows it to use menus in that way. It's way too complex for me to understand so I won't try and explain. V(ery) had some groovy code to do stuff like that, though.
Thanks. Cash or cheque? Or an all-expenses paid with Alyssa?
PS (so that ppl don't call this post useless) I can post you some code. Any code. It's like the IE thing with Kick-ass menus. You can modify the code a little to make space for a little animation control in d corner.
-
Sep 6th, 2000, 02:28 PM
#16
Monday Morning Lunatic
Cash or cheque? Or an all-expenses paid with Alyssa?
Hmmm...who's Alyssa? Blonde or brunette?
PS: Anti-useless post thingie: Could you send me that?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 7th, 2000, 08:03 AM
#17
Lively Member
Sorry guys. I remember only posting that thing ONCE!
Search me why it showed up thrice??
C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
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
|