sanook
Feb 19 2005, 09:29 AM
How to change your start button caption using Delphi!
(By the way, the start button will be renamed back to "start" after you restart your computer)
Here we go!
1. Create a new project in Delphi
2. Add a Button and an Edit box to your form, place them where you want.
3. Double click the button to enter the code editor so we can type code for our OnClick event.
4. The code for the OnClick event of our button should look like this:
CODE
procedure TForm1.Button1Click(Sender: TObject);
var Handle1,Handle2:hwnd;
begin
Handle1:=FindWindow('Shell_TrayWnd',nil); //get the handle of the taskbar
Handle2:=FindWindowEx(Handle1,0,'Button',nil); //get the handle of the start button from the taskbar
SetWindowText(Handle2,PAnsiChar(Edit1.Text)); //set the text
SendMessage(Handle2,Messages.WM_MOUSEMOVE,0,0); //used to refresh the caption of the start button
end;
5. Alright, run the program (F9) and enjoy!
The finished program should look something like this:
Just type a new caption in the text box and click on the button.
Piece of cake!
Reply
Recent Queries:--
delphi sendmessage settext - 1388.58 hr back.
Similar Topics
Keywords : delphi, change, start, button, caption
- My Domain Is A Subdomain, But A Domain Regardless
It's from dyndns.com and it doesn't start with www (2)
Change Out Free Subdomain
(2) Can we change out free subdomain provied by the Qupsis to our own domain name after registration.
Is this allowed. Or i should delete the account and apply for a fresh one on qupsis.....
Delaying The Time Until A Flash Button Can Be Pressed
using actionscript (3) Can anyone tell me how can i make in flash a button that can not be pressed until an amount of time
has past? let's say... about 5 mins i need this because i want to hold my visitors looking at
the content on the page before they can advance further.....
Your Love Can Change Your Enemies!
(0) A Christian is under an obligation to love God, and also to love others. Why should he love God?
Because God first loved him, even when he was still a sinner! Yes, God’s love came
unconditionally, without expecting anything in return. However, this is the most important reason
why we should love God always. Loving God is also closely linked to loving others. The Bible says,
QUOTE "If anyone says, "I love God", yet hates his brother, he is a liar. For anyone who does
not love his brother, whom he has seen, cannot love God, whom he has not seen. And he has given ....
Change To The Way Hosting Credits Work?
Was something changed when I wasn't looking? (8) I was just wondering if something changed in the way that the hosting credits work here... because
I'm pretty sure that I had enough credits to last a few more days, cause I built up a bunch the
last time I was here... but since I noticed that I haven't gotten many hits today, I checked my
site to see if it was still up and running. That tends to be how I see if I need to get back over
here and posting. Well, I can understand if I ran out of points, cause it certainly wouldn't be
the first time... but what's getting me is that my site has been down less ....
How Do I Change The Default Windows Font Size?
Without changing DPI, of course. (2) I know there's an option in Ubuntu to change all the font sizes of the general system, the
windows, and etc. Now I'm trying to do this in Windows. I've changed everything about
the windows except for the general system size. How do I do this?....
Download Files Off Esnips.com
even now that the download button is gone! (0) hey everyone, i am sure that many of you may have heard of esnips , which is basically online file
storage/sharing. you can now find almost any file imaginable on esnips, and in many ways it is
better than rapidshare. previously, once you are signed in to esnips, you were able to download any
esnips file via a button only viewable to members. back then, there was a method to download any
file without even signing in. then, probably due to legal issues, users were able to choose whether
or not people could download their files. the hack mentioned above, though, still....
Need Help To Start A Chicken Hatchery
We are new in business, please help us (3) Me and my few friends want to start a new business, a small chicken hatchery in our country
(Bangladesh). We have some basic idea to start a chicken hatchery. We also have technical know how
to operate a chicken hatchery. A hatchery manager of one of the largest hatchery company in our
country will help us to manage hatchery operation. We are also able to provide technical support to
our customer in farm level as one of our friend is a veterinarian and have few years experience in
the field of technical support for chicks (broiler and layer) in farm level. We have no pro....
Changing Dns Records
How to change my DNS records? (5) I need to change my DNS records, that is, to add several CNAME records... Now, I registered my top
level domain (.net) through my ISP, and they in turn registered my domain at some other registrar...
Now, my ISP doesn't give me CPanel to update my DNS info, if I don't buy their hosting plan
(which is pathetic compared to Trap17 free account)... I had them change my nameservers to Trap17
servers, and now, they tell me I need to edit CNAME records on Trap17 nameservers... I must admit
I'm not really familiar with how all that DNS administration works, so I want....
Start Multiple Programs With One Shortcut
Windows XP (14) Welcome to my turoial on how to start multiple programs using one shortcut. You may probably be
wondering how this is possible. Well this tutorial will use a language from MS-DOS called batch. I
am not sure whether it is "language", but I do know that it is a way to program for MS-DOS. Batch is
simply a way to run several MS-DOS commands with just one command. All batch files are run through
Command Prompt, but they can be accessed with shortcuts also. Here are a few requirements for this
tutorial. Requirements Windows XP (I tested this on XP, but it should work on m....
Colors/styles For Text?
How do we change colors? (2) How do i change colors or styles of text in c++? like for colors eg. : hello world for styles:
Hello World ....
Free Email Service
I am looking to start a free Email service (4) So i find my self sitting at my server, looking at whats been going on lately. Then i notice that at
one point in time i was offering Email and i thought to myself "You know what? I could really
attract some people if i started that again!", but there was one problem in my way! I dont
want to host this service on my server, i want it to be hosted remotely. I also want it to be free.
So here is what im looking for: A website that offers user@mydomainname.com email service At least
1GB per mail box guaranteed 24/7 access $0.00 price If anyone knows of such a s....
What Does Smoking Cause?
it's a bad idea to start! (17) Men:affects teeth to 30% in color heart attcaks blood diseases impotence
Female: hurts pregnancy ....
How To Start An Online Business
(19) Starting an online business is not rocket science, but it's very easy to fail if you are not
careful either. Below I will try to outline some of the steps you can to increase your chances of
success. Decide what you want to do. it is very important that you do someting you enjoy doing. I
suggest evaluating your interests first. Carry out keyword research. Register a domain. Create
your web site. Market it. ....
Help Start A Business
(30) Hi to all of you guys, Here is my first post i hope you will help me. i wanted to start up a small
business of any kind but I don’t have an idea where to start. Will please help me or email me coz
I’m willing to invest. Thank you and I would appreciate your reply. ....
I Want To Make Graphics And Flash.
Were do I start? (8) I have been designing websites for a long time and something that I have always been interested in
is flash and graphics. I have looked around a bit at some software but I'm not sure what I need
and I don't want to make the mistake of buying the wrong software considering how expensive it
can be. So what is the best way to start and what software should I get? Any help would be greatly
appreciated.....
Change My Ip
how? (25) hey, can anyone please tell me a easy way to change my ip? if this helps my internet is cable
so...can anyone please tell me how? /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
alt="smile.gif" />....
How To Change Windows Xp Language ?
(16) my mate bought me a laptop from Paris .... now the problem is i dont know how can i get windows in
an english version... currently its french. I have tried all the possible ways... its not even
letting me boot from my own cd. Any help would be great....
Sentences In Certain Books Which Change Your Life
whats yours... (6) here are some sentences which i think may be very philosophic. from some books iv read. 1. if
there's a person who you think worths you protecting life long,happy what he/she happies,sad
what he/she sads,worry what he/she worries,then the life gets no regrets. 2. where make your heart
calm,is your home. 3. making faults once,twice,third times etc has no relates with the destiny,the
space and the time.it just because we have a certain weakness in the character. 4. people differ
from each other.the day's going to rain so the birdss going to fly.some things we c....
Quake 3 Clan
someone want to start a clan (5) Hey im a pretty good QUAKE3 player /biggrin.gif" style="vertical-align:middle" emoid=":D"
border="0" alt="biggrin.gif" /> But mos of the clans are pretty lame ideas (not lame players), but
lame names, lame website, all that stuff so if anyone wants and know how to start a clan well, join
me and we can think in a cool name and cool ideas. iTS EXCITING to start a new clan....
Multiple Drop Down Menus W/ Submit Button
(6) I am building a page that will have 2 drop down menus and a submit button. The first menu will have
one set of options, say colors (red, blue, green, yellow). The second menu will have another set of
options, say sizes (small, medium, large). What I want to be able do is select a color and a size,
click submit and have it go to the page for those options. So if a user picks 'Red' and
'Small' and clicks submit they will be linked to page1.html. If they pick 'Blue' and
'Large', they will be linked to page2.html, and so on. Any ideas how to ....
Refresh Page After Back Button Hit
(4) Hi. I have a page that is dynamically build through DOM manipulation. So, when I browse outside the
page, and then click back, those dynamically created DOM objects are gone. Since I am also using JSP
/ Servlet technology, I can rebuild this page easily, which I have done. Here is my dilemma. If
the user leaves the dynamic page, then clicks back on their browser, I need the page they are going
back to to refresh. I can't figure out how to do this. I've tried using the META tag, but it
won't do it. Help would be appreciated. Thanks. ....
What Eye Colour Would You Prefer?
If you could change it? (92) Oooh! Oooh! I like.... I DUNNO!!!! /blink.gif' border='0'
style='vertical-align:middle' alt='blink.gif' /> /blink.gif' border='0'
style='vertical-align:middle' alt='blink.gif' /> /blink.gif' border='0'
style='vertical-align:middle' alt='blink.gif' /> I JUZ DUNNO!!!! /ohmy.gif'
border='0' style='vertical-align:middle' alt='ohmy.gif' />
AHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!
;!!! /ohmy.gif' border='0' style='vertical-align:middle' alt=....
Operating System Not Found
Error Displayed On Start Up (12) So I've been having some difficulties with my Laptop computer. Not the least significant of
them was this problem of not being able to find the O/S. What to do about it? How does the
computer not find the Operating System? I know that it is in there someplace, I had just
re-installed it, but the BIOS was not able to locate it. On the phone to the Manufacturer's
Help Centre. Explain the problem. Real nice guy. Had the answer right handy. Send me an email right
away. Good thing I had another machine available,huh? On startup, the powering on of the machine
tri....
How To Create Java Button Or Frame
to be customized (10) hi to all!!!! just like to ask if it would be possible if i could make a custom
button or frame in java. i got tired of using the build infeatures in java. i would like to create
my own dessign of button or frame.. can it be possible!!! /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> thank!!!! /laugh.gif'
border='0' style='vertical-align:middle' alt='laugh.gif' /> New Help In! is NOT a descriptive
topic title. Next time you decide not to follow the posting rules, you will be issued a w....
Nuclear War Scenarios
...who will start it? (18) I know, some time ago someone else started a debate on the same topic but somehow (I suppose it was
not intentionally) twisted the facts so that the message was "China threatened the USA". This
statement is _not_ true but the issue is interesting even without a current threat. So what
happened that makes me bring this topic onto the agenda? According to the Financial Times, the
chinese General Zhu Chenghu told a group of forein journalists that China might start a nuclear war
if the USA decide to attack China in order to protect Taiwan, which is considered chinese terr....
Rss Builder V2, Create And Download Rss Feeds For Your Websites
Start building your website rss material, completely free! (14) QUOTE RSS Builder ** free ** RSS Builder is an easy to use program to create RSS feeds for your
web site. It provides a simple interface that lets you add topics, links and content, and then
publish the RSS (v2.0) feed to your web server, using the built-in FTP client. What is RSS? RSS is
an abbreviation of either Really Simple Syndication or Rich Site Summary; it depends who you talk
to. RSS is the new standard for distributing news and information via the Internet. The information
is published via RSS News Feeds. What is an RSS News Feed? An RSS news feed is a li....
Read-only Folders In Xp
Can't change Read-Only attribute in XP (9) Hi, I am working with a firma. We use WinCvs which is a software similar to perforce. I downloaded
the developement to C: (eg. c:/development) The folder c:/development and the folders under it have
Read-Only permisions. I need to remove that restriction. I press right-button, i unchecked the
read-only check-box and i apply to this folder and folders under it. Whe it finisehd i click ok. Whe
i press the right button again i discovered that the folder has still the read-only attribute. So it
seems nothing changed. something similar happen to you? How can i uncheck the ....
Change Font Size On Taskbar Buttons
(3) Would you like larger fonts on your taskbar buttons? Maybe you're a little short sighted, or
just want to mess about a bit:) Here's how to do it... 1. Right click anywhere on your Desktop
(not on an icon) and the context menu appears. 2. From the context menu, select Properties, and the
Display Properties window appears. 3. Select the "Appearance" tab by clicking on it once. 4.
Select the "Active Title Bar" from the "Item:" drop down list. 5. Adjust the font size, color,
bold, or italics using the selectors to the right of the font box. 6. Click Apply to ....
Delphi Tutorial - Change Your Start Button Caption
(4) How to change your start button caption using Delphi! (By the way, the start button will be
renamed back to "start" after you restart your computer) Here we go! 1. Create a new project
in Delphi 2. Add a Button and an Edit box to your form, place them where you want. 3. Double click
the button to enter the code editor so we can type code for our OnClick event. 4. The code for the
OnClick event of our button should look like this: CODE procedure
TForm1.Button1Click(Sender: TObject); var Handle1,Handle2:hwnd; begin
Handle1:=FindWindo....
Looking for delphi, change, start, button, caption
|
|
Searching Video's for delphi, change, start, button, caption
|
advertisement
|
|