Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 04-25-2009, 01:21 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: Windows XP SP3


Delphi help

I'm rly sorry to post in the wrong section but I didn't find a suitable one for my question.
I have Borland delfi7 and I need to make a small program that would help you take care of your stuff on pc. I have almost completed the program, but I need some buttons to work because they're the main buttons that will be used and I don't know how to code them.

1st. Is a button when I press it a new form pops up and should show your/mine pc specs like in steam.

2nd. This is the hardest one. Theres a RadioGroup and two radiobuttons inside and Ok button outside of the group. What I'd like to do is when I sellect 1 of them and press ok a proper Form opens. how to do that?
1 of the selection should be like search for unused icons on desktop nad the second should be like search for unused programs is that even possible.

Again I' sorry for posting in the wrong section.
aidas2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 04-25-2009, 02:22 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,879
OS: Vista, various linux distros


Re: Delphi help

1: you should just make another form, then the button's code should look like:
Code:
frmName.show();
or
Code:
frmName.showModal();
2: Again use the code above for the form, if you need to differentiate between the buttons you should do that in the code.

If you need more help on this please post your current code.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-26-2009, 12:07 AM   #3 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: Windows XP SP3


Re: Delphi help

Quote:
Originally Posted by jamiemac2005 View Post
1: you should just make another form, then the button's code should look like:
Code:
frmName.show();
or
Code:
frmName.showModal();
2: Again use the code above for the form, if you need to differentiate between the buttons you should do that in the code.

If you need more help on this please post your current code.

Cheers,
Jamey
I know how to do the forms but how to make the first button show computer information?
And the second How to do that stuff?
aidas2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-26-2009, 05:16 AM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,879
OS: Vista, various linux distros


Re: Delphi help

It would be the form showing the computer's info. And you need to be more specific with the information you want to show.

And if you're asking how to find unused icons/programs you're going to be pushed to do that in delphi.
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-27-2009, 04:35 AM   #5 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: Windows XP SP3


Re: Delphi help

OK, agian on ress of the button a new form opens and theres all your system spec like in
Steam: http://img17.imageshack.us/img17/3100/systemj.png theres like video card info, procesor winows verison all that stuff
aidas2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-27-2009, 04:47 AM   #6 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,879
OS: Vista, various linux distros


Re: Delphi help

I don't even know how i'd go about doing this in Delphi, you'll have to research some windows system DLLs because they're involved with showing you the system spec, delphi has no built in (/third party from what i can find) functions to handle this.

Sorry,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-27-2009, 06:05 AM   #7 (permalink)
Tech Hardware Team
 
Stu_computer's Avatar
 
Join Date: Jul 2005
Posts: 1,459
OS: Windows


Re: Delphi help

Quote:
Originally Posted by aidas2 View Post
OK, agian on ress of the button a new form opens and theres all your system spec like in
Steam: http://img17.imageshack.us/img17/3100/systemj.png theres like video card info, procesor winows verison all that stuff
easiest way is to do an external call to dxdiag and have it make a text file, then wait for the file to be made (since this will take several seconds may need a loop to test for the file or abort after 15~20 seconds).

next, open the file for reading and loop readline to a string and test the string for the particular data you want ie:


---------------
Display Devices
---------------
Card name: SiS 630/730

when found then write that line to textarea in the new form (or cut the string to suit your needs).


to get your sample report do Start > Run > then type: dxdiag /t c:\report.txt
then use report.txt as a template for what/where data you want is found.
__________________
Stu_computer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-28-2009, 02:14 AM   #8 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: Windows XP SP3


Re: Delphi help

Could you post the code? I understand the idea but hawe no idea how to doi it
aidas2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 10:28 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85