Mar 27th, 2001, 12:43 PM
#1
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.
Mar 27th, 2001, 01:17 PM
#2
Mar 27th, 2001, 03:16 PM
#3
I guess noone knows...
Defend your honor Matthew Gates and other guru's!
Mar 27th, 2001, 04:20 PM
#4
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
Attached Files
Mar 27th, 2001, 04:48 PM
#5
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.
Mar 27th, 2001, 09:39 PM
#6
Fanatic Member
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.
Apr 12th, 2001, 11:53 PM
#7
PowerPoster
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?
Apr 13th, 2001, 01:47 AM
#8
Hyperactive Member
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?
[vbcode]
'*****************************
MsgBox "MCD ::
[email protected] ", vbInformation + vbOKOnly, "User"
'*****************************
[/vbcode]
Apr 13th, 2001, 03:52 AM
#9
I don't WANT to replace any button with a minimise to tray button. What I mean is this:
Apr 13th, 2001, 10:36 AM
#10
PowerPoster
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.
Apr 13th, 2001, 11:56 AM
#11
Hyperactive Member
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
Attached Files
[vbcode]
'*****************************
MsgBox "MCD ::
[email protected] ", vbInformation + vbOKOnly, "User"
'*****************************
[/vbcode]
Apr 13th, 2001, 12:06 PM
#12
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.
Apr 13th, 2001, 12:12 PM
#13
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...
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