Results 1 to 13 of 13

Thread: Changing display message in Task Bar

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Changing display message in Task Bar

    Hi,

    Is it possible at all to be able to change the message in the sys tray of my program but not the caption of program title bar?

    thanks

    EDIT: Oh I forgot. I doubt this is possible but it doesn't hurt to ask. Is there some way I can make text scroll across the sys tray caption like a marquee in HTML? That's be awesome
    Last edited by paralinx; Jan 3rd, 2006 at 09:40 PM.

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Changing display message in Sys Tray

    Check out the examples in the link in my signature, you should modify that a little to fit your needs.

  3. #3

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing display message in Sys Tray

    That is more or less of changing the icon of the system tray. Or am I not reading your codebank submission correctly?

  4. #4

  5. #5
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Changing display message in Sys Tray

    guys he means with a different caption in each
    Attached Images Attached Images  

  6. #6

  7. #7

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing display message in Sys Tray

    Is there any other way of doing it? Also, is there ANY possible way to make the caption scroll across the title bar and the sys tray caption?

  8. #8

  9. #9

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing display message in Sys Tray

    oh hmm. I meant the cation of this.


    Taskbar that's what I need. Sorry about that
    Attached Images Attached Images  

  10. #10

  11. #11

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing display message in Task Bar

    Yes I tried it. But the only thing that I don't like is when you minimize the form it shows two forms minimizing, and that can be annoying. Thanks though it's a lot of help!

  12. #12

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Changing display message in Task Bar

    Alright one more question. I tried to figure out a way to make text scroll across the title bar caption. I got as far as the code below, but i can't figure out how to make the right edge connect to the left edge, so its a continuous loop.

    VB Code:
    1. 'code in timer
    2. Me.Caption = " " & Me.Caption

    Any suggestions?

  13. #13
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Changing display message in Task Bar

    Hey I think I'm getting closer..


    Change Rhinos code to this:

    FrmMain:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.     Load frmHidden
    5.     frmHidden.Show
    6.     frmHidden.Move -1000, -1000
    7. End Sub
    8.  
    9. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    10.     Unload frmHidden
    11. End Sub
    12.  
    13. Private Sub Form_Resize()
    14.     If Me.WindowState = vbMinimized Then
    15.         Me.Visible = False
    16.     Else
    17.         Me.Visible = True
    18.     End If
    19. End Sub

    FrmHidden:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Activate()
    4.     LockWindowUpdate (frmHidden.hWnd)
    5. End Sub
    6.  
    7. Private Sub Form_Resize()
    8.     frmMain.WindowState = Me.WindowState
    9.     If Me.WindowState = vbMinimized Then
    10.         frmMain.Visible = False
    11.     Else
    12.         frmMain.Visible = True
    13.     End If
    14. End Sub

    Module:
    VB Code:
    1. Option Explicit
    2. Public Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

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