Results 1 to 17 of 17

Thread: 2 Simple Questions

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Ontario, Canada
    Posts
    61

    Talking

    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.

  2. #2
    Guest
    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

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Ontario, Canada
    Posts
    61
    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.

  4. #4
    Guest
    IE uses a ToolBar for it's menu.

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Ontario, Canada
    Posts
    61
    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.

  6. #6
    Guest
    The video is not on the ToolBar, rather it's beside it. For this you can use a simple Animation Control.

  7. #7

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Ontario, Canada
    Posts
    61
    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.

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  9. #9
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Talking

    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

  10. #10
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Talking

    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

  11. #11
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Talking

    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

  12. #12
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Talking

    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

  13. #13
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81

    Talking

    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

  14. #14
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  15. #15
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    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.
    Courgettes.

  16. #16
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  17. #17
    Lively Member
    Join Date
    Aug 2000
    Location
    quebec
    Posts
    81
    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
  •  



Click Here to Expand Forum to Full Width