| View previous topic :: View next topic |
| Author |
Message |
alumavivmjr How do I cheat?
Reputation: 0
Joined: 13 Jul 2008 Posts: 0
|
Posted: Wed Jul 16, 2008 8:03 pm Post subject: i need "if" command to make it.... |
|
|
hi ladies and gentlemen!!! ;o)
i need know IF command to make 1 checkbox in delphi7 to choose it and when i click that ll b show me diferent options.
for exemple: if i click in twin city map ll b show monsters name to chek and auto click ll b on in that mde, if i stop boot and click in desert map ll b show me your moinsters too and check all monsters to atack there and start boot again.
some1 can help me to make it i dont know it s my 1st time in delphi4 now ty and cya all ;o).
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Thu Jul 17, 2008 6:45 am Post subject: |
|
|
1)Wrong section
2)Wtf did you just said?
3)www.Delphibasics.co.uk
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Jul 20, 2008 10:35 am Post subject: |
|
|
| Rot1 wrote: | 1)Wrong section
2)Wtf did you just said?
3)www.Delphibasics.co.uk |
How can you say wrong section if you then say you don't know what they said. Seriously, don't post if you aren't going to help.
The person wants to make a checkbox display additional options when it is checked, and hide them when it is unchecked.
_________________
- Retired. |
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sun Jul 20, 2008 12:31 pm Post subject: |
|
|
In C# it would be something like
| Code: |
private void MyCheckbox_CheckChanged(object sender, EventArgs e) //don't worry about that
{
Something.Visible = true;
SomethingElse.Visible = true;
}
|
_________________
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sun Jul 20, 2008 2:45 pm Post subject: |
|
|
| Wiccaan wrote: | | Rot1 wrote: | 1)Wrong section
2)Wtf did you just said?
3)www.Delphibasics.co.uk |
How can you say wrong section if you then say you don't know what they said. Seriously, don't post if you aren't going to help.
The person wants to make a checkbox display additional options when it is checked, and hide them when it is unchecked. |
He used the word Delphi7, so STFU you moron, don't stick your huge nose in every thing, before it gets bigger .
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Jul 20, 2008 2:47 pm Post subject: |
|
|
| Rot1 wrote: | | Wiccaan wrote: | | Rot1 wrote: | 1)Wrong section
2)Wtf did you just said?
3)www.Delphibasics.co.uk |
How can you say wrong section if you then say you don't know what they said. Seriously, don't post if you aren't going to help.
The person wants to make a checkbox display additional options when it is checked, and hide them when it is unchecked. |
He used the word Delphi7, so STFU you moron, don't stick your huge nose in every thing, before it gets bigger . | wiccaan made sense. you don't.
_________________
|
|
| Back to top |
|
 |
Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Tue Jul 22, 2008 5:32 pm Post subject: |
|
|
| Rot1 wrote: | | Wiccaan wrote: | | Rot1 wrote: | 1)Wrong section
2)Wtf did you just said?
3)www.Delphibasics.co.uk |
How can you say wrong section if you then say you don't know what they said. Seriously, don't post if you aren't going to help.
The person wants to make a checkbox display additional options when it is checked, and hide them when it is unchecked. |
He used the word Delphi7, so STFU you moron, don't stick your huge nose in every thing, before it gets bigger . |
Wiccan made sense as sponge said I don't get what you mean this IS the general programming section :\
Off-Topic: Aren't you jewish? Sort of hypocritical to say he has a big nose isn't it?
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Jul 22, 2008 6:26 pm Post subject: |
|
|
Back on topic guys. The person is looking for some code to toggle the visibility of controls based on a check box in Delphi. Their post was clear enough to understand the basics of what he wants.
_________________
- Retired. |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Tue Jul 22, 2008 7:58 pm Post subject: |
|
|
Create them on the form (I know it will be clustered as hell), and set all of them to visible: off. When they select the checkbox set visible: true.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Wed Jul 23, 2008 10:48 am Post subject: |
|
|
Something like this?
| Code: | procedure CheckBox1.click(Sender: TObject);
begin
if CheckBox1.checked = true then
begin
CheckBox1.checked:= false;
CheckBox2.visible:= false;
end
else
begin
CheckBox1.checked:= true;
CheckBox2.visible:= true;
end;
end; |
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jul 23, 2008 11:38 am Post subject: |
|
|
I don't code in delphi that much, but that looks about right.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Wed Jul 23, 2008 12:01 pm Post subject: |
|
|
Omg woot roflol! Rot1 got banned!
The code that i posted above, will show CheckBox2 when CheckBox1 is checked, and hide it if CheckBox1 gets un-ticked
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jul 23, 2008 12:04 pm Post subject: |
|
|
| Anden100 wrote: | Omg woot roflol! Rot1 got banned!
The code that i posted above, will show CheckBox2 when CheckBox1 is checked, and hide it if CheckBox1 gets un-ticked  |
Yea I got that.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Wed Jul 23, 2008 1:20 pm Post subject: |
|
|
| Code: | | CheckBox2.visible:=not CheckBox1.checked; |
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Wed Jul 23, 2008 2:51 pm Post subject: |
|
|
| HolyBlah wrote: | | Code: | | CheckBox2.visible:=not CheckBox1.checked; |
|
corrected:
| Code: | | CheckBox2.visible:=not CheckBox1.checked; |
and yea, i didnt think about that O.o
|
|
| Back to top |
|
 |
|