-
In the window title bar of my app, there is a minimize, maximize and close buttons. I saw another app (leechftp, getright) and it had a "minimize to tray" button, also in the window titlebar.
Does anyone know how to add that button to the title bar and how to know if it was clicked?
Gerco.
-
-
I guess noone knows...
Defend your honor Matthew Gates and other guru's!
-
1 Attachment(s)
Matthew's not on at the moment but try this don't know where I got it from but it worked in one of mine
-
That looks fine, but I already know how to place an icon in the system tray...
What I need is a button next to the minimize button to activate the minimize to tray function.
Gerco.
-
I've seen apps using this, I would also like to know how to add an extra button to the control box of a form.
-
Code:
Private Sub Form_Resize()
If Me.WindowState = vbMaximized Then
Me.WindowState = vbNormal
'Put your minimize to tray code here
End If
End Sub
Does that help?
-
That code seems good, you could replace the max button with your min to tray button, but again.. how do you get your button onto the control box?
-
I don't WANT to replace any button with a minimise to tray button. What I mean is this: http://members.rott.chello.nl/gdries1/min2tray.jpg
-
Matthew Gates posted an example he made that allows you to do this, but I can't find it. Maybe you can ask him if he still has it, or the post number, so you can download it. It was pretty cool.
-
1 Attachment(s)
Attached is the code that Matthew Gates wrote.. i dont remember the thread i got this on..
I like what he did here, but i dont like the way it looks
-
Why don't you just set the form border style to zero
add a label backgroung color=dark blue then add your own buttons. The form can still be moved if you use the api trick to move a form without title bar. :D
-
I tried, it, but I don't like it... so many programs have an extra button, there MUST be some 'standard' way of doing it...