Articles   Members Online:
-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 position The Start-Button Anywhere On Your Taskbar 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
Position The Start-Button Anywhere On Your Taskbar 29-Oct-02
Category
System
Language
Delphi 4.x
Views
105
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Abu Zant Ruslan 

Hiding/displaying/enabling and disabling the start button seems an old trick, try 
this new one
Start moving the start button on the taskbar !!

Answer:

Well, Start A New Project, And Give The Form The Next Properties 

Align = top;
width = screen.width;

and then, OnMouseMove exent place the following code .... 
1   
2   procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
3     Y: Integer);
4   var
5     p: tpoint;
6   begin
7     getcursorpos(p);
8     movewindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil), 0, 'Button', nil), x, y,
9       25, 25, true);
10  end;


Run your application, when moving your mouse on your form, you will notice that the 
start button is minimized and is moving along with your mouse, with some more work, 
you can make this invisible to make the statr button move on a pre-schedueled event 
!! 


Some More Information.... 

If you do the following, you will start to smile of what will happen on your 
desktop 
11  
12  procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
13    Y: Integer);
14  var
15    p: tpoint;
16  begin
17    getcursorpos(p);
18    movewindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil), 0, 'ReBarWindow32', 
19  nil),
20      x, y, 25, 25, true);
21  end;



Have Fun !!

			
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