Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


i need "if" command to make it....

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
alumavivmjr
How do I cheat?
Reputation: 0

Joined: 13 Jul 2008
Posts: 0

PostPosted: Wed Jul 16, 2008 8:03 pm    Post subject: i need "if" command to make it.... Reply with quote

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
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Thu Jul 17, 2008 6:45 am    Post subject: Reply with quote

1)Wrong section
2)Wtf did you just said?
3)www.Delphibasics.co.uk
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Jul 20, 2008 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sun Jul 20, 2008 12:31 pm    Post subject: Reply with quote

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;
}

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sun Jul 20, 2008 2:45 pm    Post subject: Reply with quote

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 Wink.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Jul 20, 2008 2:47 pm    Post subject: Reply with quote

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 Wink.
wiccaan made sense. you don't.
_________________
Back to top
View user's profile Send private message
Hieroglyphics
I post too much
Reputation: 0

Joined: 06 Dec 2007
Posts: 2007
Location: Your bedroom

PostPosted: Tue Jul 22, 2008 5:32 pm    Post subject: Reply with quote

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 Wink.


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
View user's profile Send private message AIM Address MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Jul 22, 2008 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jul 22, 2008 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Wed Jul 23, 2008 10:48 am    Post subject: Reply with quote

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
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Jul 23, 2008 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Wed Jul 23, 2008 12:01 pm    Post subject: Reply with quote

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 Wink
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Jul 23, 2008 12:04 pm    Post subject: Reply with quote

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 Wink


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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Wed Jul 23, 2008 1:20 pm    Post subject: Reply with quote

Code:
CheckBox2.visible:=not CheckBox1.checked;
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Wed Jul 23, 2008 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites