Articles   Members Online: 3
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to Show/Hide the "Start" button Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
Show/Hide the "Start" button 15-Sep-02
Category
System
Language
Delphi 2.x
Views
109
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: William Gerbert 

Show/Hide the "Start" button

Answer:

Solve 1:
1   
2   The following procedure hides or shows the start button:
3   
4   procedure hideStartbutton(visi: boolean);
5   var
6     Tray,Child: HWnd;
7     c: array[0..127] of Char;
8     s: string;
9   begin { hideStartButton }
10    Tray := FindWindow('Shell_TrayWnd', nil);
11    Child := GetWindow(Tray, GW_CHILD);
12    while Child <> 0 do
13    begin
14      if GetClassName(Child, c, SizeOf(c)) > 0 then
15      begin
16        s := StrPas(c);
17        if UpperCase(s) = 'BUTTON' then
18        begin
19          // IsWindowVisible(Child)
20          startbutton_handle := Child;
21          if visi then
22            ShowWindow(Child, 1)
23          else
24            ShowWindow(Child, 0)
25        end
26      end;
27      Child := GetWindow(Child, GW_HWNDNEXT)
28    end
29  end; { hideStartButton }



Solve 2:

To show: 
30  
31  EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil), 0, 'Button', nil), 
32  TRUE);
33  
34  to hide: 
35  
36  EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil), 0, 'Button', nil), 
37  FALSE);


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC