This article will help you if you see the Delphi Start Menu mask.
Approved: Fortect
Approved: Fortect
Fortect is the world's most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, Fortect quickly finds and fixes a broad range of Windows problems - from system instability and security issues to memory management and performance bottlenecks.
Title: How to hide and show the main menu of a Delphi application
The Delphi TMainMenu component encapsulates a list of stripes and associated dropdown menus for a real form.
Delphi’s TMainMenu component does not trigger the Visible property, so you can show or hide the menu programmatically, right? It is not, but there is a way to hide any main menu of a Delphi form at runtime. Here’s how …
To assign dishes to a form, remove the associated TMainMenu (let’s say it has “MainMenu1” because of its Name property), add menu items and assign it to the Form-like Menu property.
If you absolutely want to programmatically hide the menu at runtime, just use this line of working code:
// MainForm – commercial name of the form
MainForm.Menu: = nil;
To display the menu on the TV again, simply set the menu property in the form for:
// MainForm is the name of the form
MainForm.Menu: corresponds to MainMenu1;
It’s all.
- Get inverse color on the way to color evaluation?
- Working with the WordApplication component
- Press and then the software version key.
- Eliminatedrepairing MS Visual FoxPro 8.0 database corruption
- How to send files over the Internet using FTP
- Are you getting visibility color?
- print TImage?
Title: How to deactivate and deactivate militarily the Start button and this Start menu
Procedure ShowStartButton (bvisible: boolean);
var
h: hwnd;
TaskWindow: hwnd;
start
if visible, then
For starters
h: = FindWindowEx (GetDesktopWindow, 0, Button, zero);
TaskWindow: = FindWindow (“Shell_TrayWnd”, zero);
ShowWindow (h, 1);
Windows.SetParent (h, TaskWindow);
end
Otherwise
For starters
h: = FindWindowEx (FindWindow (‘Shell_TrayWnd’, zero), 0, Button, zero);
ShowWindow (h, 0);
Windows.0);
end;
End ;
{Example setparent (h so you hide / show the start button again
Procedure TForm1.Button1Click (Sender: TObject);
start
ShowStartButton (False); Or // true to re-display
End ;
You can also create our own start button and
Replace the original with your own.
var
b: TButton; // or another type of button
â h, Window: hwnd;
start
Window: = FindWindow (‘Shell_TrayWnd’, zero);
b: matches TButton.Create (nil);
b.ParentWindow: = window;
b.Legend: = “Start”;
width-width: = 60;
b.Font.Style: = [bold];
End ;
- Get the inverse color for a color value?
- Working with the WordApplication component.
- Press keys through software and run
- Overcoming database corruption in MS Visual FoxPro 8.0
- How to upload files via FTP via a specific internet
- die Do you have a transparency color?
- Print any TImage?
First of all, let me just say that I hate this suggestion in Windows Vista and 7. Second, I want to do it. Here is a question that asks how do I do what I want here in WPF.
I want to implement the same idea, but in Delphi when using VCL inventory output, TMainMenu or Action Manager or any third party components available, even Toolbar2000 in addition to another library.
- This is not visible when the application type starts.
- If you press and release the keyAlt, it will become visible.
- If you press and release Alt, it will become invisible again.
- reproducible.
- Keyboard shortcuts work with menu items even if the menu is invisible *
(* Example of keyboard shortcuts in Windows Explorer: Ctrl + A in Microsoft Windows Explorer selects everything, even if the menus may not be visible, Alt + T = brings up the context menu of the tools if the entire menu is permanently hidden).
interviewed 24 Jun ’11 at 14:25
59.5k
Is This Usually Not The Answer You Are Looking For? Browse For Other Ideas Using The Delphi Menu Delphi-Xe Tag Or Ask Your Own Question.
Procedure TForm1.FormShow (Sender: TObject);begin Self.Menu: = no;End;
Procedure
TForm1.FormKeyDown (sender: TObject; var key: Word; Toggle: TShiftState);begin (Key if = VK_MENU) (Key = VK_F10) then Menu: = MainMenu1;End;
Procedure TForm1.WndProc (message var: TMessage);begin inherited; Autumn message. Message from WM_EXITMENULOOP: SetMenu (Knob, 0); End;End;
(Note that your current shortcuts will be handled by TActionList
, although the menu may be missing.)
decided on Jun 24 ’11 at 14:40
97.3k
Speed up your computer's performance now with this simple download.