I would assume OnClick is when they click on the ComboBox.
I need an event for when an item of the ComboBox has been changed.
It should be OnChange but it doesn't work for item selection.
SCAR Code:
procedure TeleportUntilComboBox_Exit(senter: TObject);
begin
case TeleportUntilComboBox.Text of
'Certain Level' : begin
AchieveLabel.Caption := 'Level To Achieve:';
AchieveEdit.Text := 'Enter Level to Teleport Until';
Teleportation.Height := 200;
end;
'Certain XP' : begin
AchieveLabel.Caption := 'XP To Achieve:';
AchieveEdit.Text := 'Enter XP to Teleport Until';
Teleportation.Height := 200;
end;
'No More Runes' : begin
AchieveLabel.Caption := 'Level/XP To Achieve:';
AchieveEdit.Text := 'Enter Level/XP to Teleport Until';
Teleportation.Height := 200;
//change to 135 when figured out the OnSelect Handler problem
end
end;
end;
Teleportation is a group box.
If you want to see the form download my PowerTeleporter.
Link is in my sig.
The above code is not part of it as this is for my next version.
Basically when a user selects case 1 or 2 an additional EDIT will come on to the screen so they get enter level/xp to achieve.
If case 3, its not needed so it wont be viewable anymore.
EDIT---------------------------------
SPKY you just made my day.
OnClick works just as I want.
Thanks alot :P
Mod please closed [Resolved]