Page 1 of 1

startbutton open, create or something like...

PostPosted: Sat Jun 12, 2004 3:39 pm
by ipuiuna
I use startbutton.Close to close start button :wink: , I want to create button again with they normal features,
to do this i close explorer app and reopen manaly in XP, in 98 they restart automactically.
There's other a way?

sorry by my english.

Ipuiuna.

PostPosted: Sun Jun 13, 2004 7:43 am
by madshi
Why don't you use StartButton.Hide and StartButton.Show instead? Then you don't need to restart the explorer at all!

this solve only partial problem.

PostPosted: Mon Jun 14, 2004 5:02 pm
by ipuiuna
madshi wrote:Why don't you use StartButton.Hide and StartButton.Show instead? Then you don't need to restart the explorer at all!


Hello Madshi, is a pleasure to talk to you.

This is the problem: I use StartButton.Close becouse with this i disable "Win" button for Start Menu with StartButton.Hide they don't disable the key.
There's others ways to do this:
1) With a hook but I don't know how do this. I try some example from Torry's Delphi TIPS but they slow down system, while I use Game for example. I need another example.
2) I can disable WIN key in registry for win 2k/XP this solve the problem and I can use in combination with the StartButton.Hide but this requires to restart Computer and only works in 2k/XP and I need compatibility to win9X.

thank's.

PostPosted: Mon Jun 14, 2004 5:58 pm
by madshi
Ok, in order to close the explorer use this:

PostMessage(FindWindow('Progman', 'Program Manager'), WM_QUIT, 0, 0);

In order to restart it call ShellExecute. Or probably WinExec should also do the job.