Results 1 to 17 of 17

Thread: Graphical Toolbars in MDI Forms

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321

    Question Graphical Toolbars in MDI Forms

    Hi, Taking AOL as an example, how do they have that cool graphical Toolbar at the top of there MDI Form, and also how do they have a text box etc.

    For those of u who dont use aol, attached is a screenshot of what i mean.

    Thanks for any help.

    (Image has lsot some of its colour as i had to change it to gif!)

  2. #2
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    Just put everything in picture box and if you want the graphics that change on rollover search this forum for 'on mouse out'.
    Please don't call anything AOL cool, i really don't like it as I've had it for 5 years.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    well ive had it for 5/6 years also, and the UK version of its great (And ive had no problems with it).

    Anyway, i mean, i dont want to load it as an image. AS i assume u know:

    U cant put labels, or anything onto an MDI Form (I dont think anyway).

    I tried using another form and resizing it automatically so it looked like a toolbar, but it didn't work correctly.

    Basically i need the same idea as AOL's toolbar, but in my app.

    Thanks again

  4. #4
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    Yes i realize you dont want one big image you still put everything in a picture box, it's a container. The only controls you can put directly on mdi forms are one's with an align property like toolbar and picture box. Trust me, try putting a picutre box on the mdi form and then you can put more things inside of if. if you don't want the inset border set its borderstyle to 0.

  5. #5
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    LOL. yeah. AOL is awful. It's so easy, no wonder stupid people buy it.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    ok, now i get u, thanks

    And IM NOT STUPID. I use it because for £15 a month I get 24 hours 7 days a week access without paying a telephone bill. which for us in the UK is very rare!

  7. #7
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    I knew someone would get offended. Ha ha ha.

    I've got a cable modem at home, that runs circles around AOL's infrastructure. But I guess if you say AOL has a monolopy on you then there's nothing you can do.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    Yep, it basically has, plus to get cable modem here, costs £150 a year, plus u need to pay £100 installation for them to dig up your garden / drill a hole through your wall

    And im only 16, which kinda leaves me screwed.

    (And by the way: Yes I would switch to cable instantly, but AOL isn't that bad )

  9. #9
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    Aren't you using the Euro?

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    nope the UK doesn't participate in the single european currancy, as its crap and aint metric!!

    By the way: How do i change the back ground colour of a command button, when the mouse goes over it? (Not click)

  11. #11
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    What's the coversion?

    Cause I only pay about $40 USD for mine monthly. I got it on a promotional offer with $0 setup fee.

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    $40 = £30 (Approx)

  13. #13
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    You have to change one of it's STYLE property from STANDARD to GRAPHICAL. Then in the MouseMove Event do this.

    Code:
    Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Command1.BackColor = vbRed
    End Sub

  14. #14

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    how do i change it back to original, when mouse is moved off (Soz about this, but i dont normally play around with mouse over things)

  15. #15
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    How'd I figure you were going to ask that.

    Code:
    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
        Command1.BackColor = -2147483633
    End Sub
    Just flip it back to gray when the FORM get's the mousemove event, because the mouse move event is self-contained. So each control will have it, and if it's not on a control the container of the control will have it, and so forth.

  16. #16

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    thanks for all your help.

  17. #17
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    Not a problem.

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