| View previous topic :: View next topic |
| Author |
Message |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Wed Sep 05, 2007 9:22 pm Post subject: How to change button style? [Delphi] |
|
|
Ok forget the other problem. Lol -.-
I need to know how to change the buttons from -
This
To This -
Thanks.
Last edited by Never Again on Fri Sep 07, 2007 9:37 pm; edited 1 time in total |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Wed Sep 05, 2007 10:31 pm Post subject: |
|
|
| Code: |
if ((checkbox1.checked) and (radiobutton1.checked) and (checkbox4.checked)) then
begin
//...
end;
|
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
Posted: Thu Sep 06, 2007 1:34 am Post subject: |
|
|
| appalsap wrote: | | Code: |
if ((checkbox1.checked) and (radiobutton1.checked) and (checkbox4.checked)) then
begin
//...
end;
|
|
ifd if this work but it should =D
btw here is another way
IF Checkbox1.checked=true then
If RadioButton2.checked=true Then
If Checkbox4.checked=true THEN
form3.visible:=true
else
showmessage('Wrong, Try Again.'); _________________
dont complain about my english...
1*1 = 2?
Last edited by ups2000ups on Thu Sep 06, 2007 5:41 am; edited 1 time in total |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Thu Sep 06, 2007 4:11 am Post subject: |
|
|
youneed begin / ends after every then.
well the begins are after, ends aren't
do it appals way, its simpler
also noticed in your image in your sig you spelled "your" wrong
if you make a program(those are program dots >.>) and you say ur, you will look like a teenage boy who spends all his time on game forums and looking at porn.....oh wait XP _________________
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
Posted: Thu Sep 06, 2007 5:38 am Post subject: |
|
|
| blankrider wrote: | youneed begin / ends after every then.
well the begins are after, ends aren't
do it appals way, its simpler
also noticed in your image in your sig you spelled "your" wrong
if you make a program(those are program dots >.>) and you say ur, you will look like a teenage boy who spends all his time on game forums and looking at porn.....oh wait XP |
the script i posted work fine oO
stop telling befor you know anything noobass
and what have my sign to do with the thread lol ?
and befor you say something about me you should think about what ur saying lol ... show me ur best thing you ever made oO no need lol leeching others work xD
| Quote: |
IF Checkbox1.checked=true then //<<<< if checkbox = checked then look next sting
If RadioButton2.checked=true Then //<<<< if checkbox = checked then look next sting
If Checkbox4.checked=true THEN //<<<< if checkbox = checked then look next sting
form3.visible:=true // you dosent need begin if you only use 1 string after "then"
else // if you used more then 1 string you need to use "end else"
showmessage('Wrong, Try Again.');
|
_________________
dont complain about my english...
1*1 = 2? |
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Fri Sep 07, 2007 3:12 pm Post subject: |
|
|
| Thx guys, I appreaciate it =D. +Rep for Ups. |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Fri Sep 07, 2007 4:51 pm Post subject: |
|
|
i made a ipod lookalike mp3 player(function ipod button wheel and such), and snapshot editor before i got bored with delphi
c++ is more fun, delphi is no challenge
too bad i just deleted the partition on my laptop to try and fix my harddrive :S
so i cant really post anything  _________________
|
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Fri Sep 07, 2007 9:37 pm Post subject: |
|
|
| Alright... I changed the question... |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Sep 07, 2007 11:13 pm Post subject: |
|
|
Idk, in delphi, I think that the different versions have different button styles. I mean like in my first delphi (2007 trial) it was cool buttons like yours. And now in delphi 7 SE its like the very ugly one. It just depends on version I think. But Ill be real glad if anyone shares the another way. I'd love to use it on my buttons in C++... _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Fri Sep 07, 2007 11:44 pm Post subject: |
|
|
put an xp manifest (TXPManifest control) anywhere on the form
@oib111: to do it with C you need to embed an xp manifest (google) in a resource file and call InitCommonControlsEx. |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Fri Sep 07, 2007 11:50 pm Post subject: |
|
|
Ok...or I can use like wxDev-Cpp with all its shiny buttons =) _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
ups2000ups I post too much
Reputation: 0
Joined: 31 Jul 2006 Posts: 2471
|
Posted: Sat Sep 08, 2007 12:59 am Post subject: |
|
|
well instead of buttons you can use images =/ _________________
dont complain about my english...
1*1 = 2? |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sat Sep 08, 2007 5:09 am Post subject: |
|
|
I thought he meant manifesting...
google InitCommonControls (M$ says it's obsolete, but works) and InitCommonControlsEx. _________________
Get kidnapped often. |
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Sat Sep 08, 2007 7:06 am Post subject: |
|
|
Thanks appal  |
|
| Back to top |
|
 |
|