Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

4 Questions

Status
Not open for further replies.

SLider3

Programmer
Jun 17, 2003
56
PT
Hello, please help me with this doubts


How can I give to my bcb programmes a look more Windows XP? All the buttons had a look like Win98 and i dont like it :(

What can I do to a TEdit box don't accept numbers bigers then 60??? If I had a 9 in there it will only accept a 5 (foe exemple) if the cursor was in the the left side of the 9. How can I do this?

How can I run a programme by clicking in a button of my bcb programme?

And at lest, how can I put a link to a web site in the text of a programme? and a link for email?

Thanks for your help ;)
 
1) You can use a TBitBtn and skin it.

2) Change MaxLength to 2 and then write code into OnKeyPress Event to limit the value to numeric and 60

3) ShellExecute(Handle,"OPEN","C:\myprogram.exe,"","",SW_SHOW);

4) Put a TLabel on your form and set the color to blue and the cursor to pointing hand and then program into the OnClick Event: ShellExecute(Handle,"OPEN","
Hope this helps you.
Chi Happens
 
In first place thanks for your reply :D


1) I´m not only talking about buttons but also about CheckBox, RadioButton, etc. I want that my program have a Windowns XP style in every objects.
Look to this pictures:
gknot027.jpg
gknot028.jpg

I can do something like the left picture but i want to add to my programme objects like the ones you see in the right picture.
(i´m using Borland C++ Builder 6 Enterpride edition)

2) My difficulty is writing the code to limit the value to 60. Can you help?

4)And for a e-mail?

PS: Can you recomend me a web page were I can learn more about coding with Borland C++ Builder?
 
PS: Can you recomend me a web page were I can learn more about coding with Borland C++ Builder?

Since it sounds like you are from the UK, try Also see faq101-913.

James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Since it sounds like you are from the UK, try Also see FAQ101-913.
No, i´m not from UK, i´m from Portugal but thanks for the links. :)

Can anyone please answer to the the questions i made above ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top