Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caption buttons and system menus

Status
Not open for further replies.

imagenetics

Programmer
Dec 8, 2003
66
PL
1. Is there any way to hide Maximize button but keep the Minimize button visible and functional? If you simply disable it, it stays visible.

2. How to add a button to form's caption bar which minimizes the window to tray (you can see such thing, for example, on GetRight windows - a button with little dot in the corner)?

3. How to add custom items to system menus (the one you get by right-clicking on taskbar buttons)? For example an "About..." item which displays a window.

4. Suppose I want to create a window which function as a message box (with additional "Don't show this again" checkbox). In Windows when you get a prompt with only OK button available, the Close (X) caption button is grayed and inactive. How can I do this on my custom message box?

Thanks!
 
Close button on message boxes is grayed when there are more than one buttons and user has to choose an action. My mistake.
 
I know this probably isn't what you want to hear, but there's a great component by that gives you the ability to add a button in the caption. From there, making the button have the form close to the system tray is incredibly easy. I use it in EVERY one of my Borland created programs.
I've got some code to create the button yourself that some people and I wrote up, but I can peronally tell you that it took 3 of us to make and modify, it's not perfect and it was a HUGE pain to do. I can say I've done both the nonpaying and the paying and shelling out the $20 on this component was well worth it.



Cyprus
 
Thanks, but I've tried the AppControls thing. It doesn't support Windows XP visual styles which is not good.
 
Mine does? I've been programming with it the past 3 days on my XP machine. In fact, I was using it 30 seconds ago, it worked fine. You may want to download an updated version or talk to the guys at AppControls. They're good people, they'd help. I vaguely recall mine doing that years ago when XP came out but now it works like a charm, so I dunno.




Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top