• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

system menu

How can I disable all the buttons on the right hand side and enable the system menu on the left hand side of a form ?

How can I use a new system menu ?

Andrew
0
andrewyu
Asked:
andrewyu
1 Solution
 
subrekCommented:
For a new system menu you can simply use a popup-menu which is definded as a default
popup menu or a system menu for your form ....

To disable the buttons you have to use the BorderIcons property of the Form ....
But how to move them to the left hand side ?
Create a new component (a TWinControl or TCustomGraphic or something like that ....)

    Subrek .....
0
 
BoRiSCommented:
andrewyu

subrek is correct on the borderIcons side of things...but to change the system menu items etc... use the GetSystemMenu, GetMenuItemId etc and then the SetMenu etc...API calls, just check it up in the Win32.hlp file...

if you need some help I have writen my own system menu component that allows you to add items etc to the system menu...(just leave your mail address)

Later
BoRiS
0
 
andrewyuAuthor Commented:
I want to visible the left hand side menu and invisible all the other buttons !

Anyway, thank you very much !

Andrew
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ZifNabCommented:
are you talking of the bordericons of a form?
0
 
andrewyuAuthor Commented:
I think so as I only know that it is the icon !
0
 
viktornetCommented:
andrewyu
First remove form's captionbar. Then place a panel on the top of the form. panel's color should be blue. Set the panel's layout to show where you want the caption of the panel(in this case fomr's caption). Then call an API to move the form when the mouse is down on the panel. Put a TImage control on the caption which will be the icon of the form, and then connect a popup menu to the image. enter the values of the popup, and almost everything is done...If you like a simple source code I've tried to make this just E-mail me at viktor@megsinet.net  and mention what is your question because there are many e-mails and I won't remmember what it is about. C'ya
0
 
andrewyuAuthor Commented:
Thank you very much !

But, can I achieve easier through the APIs instead of using this method ?

Andrew
0
 
MatveyCommented:
http://bes.trendline.co.il/torry/vcl/system/sysmdemo.zip

"Component that alows you to add your own system menu items with some properties like bitmap for checked and unchecked state, caption and others."

Good luck, Matvey
0
 
MatveyCommented:
Sorry, forgot to say: there is no need to make a fake caption, a fake icon and a fake menu. It's possible to edit the original one.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now