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 !!
|