House Form

This page is about TRSHouse dedicated TLazForm utilities.

This is meant to be used with TScriptForm with TScriptForm.CreateHouseTab and will setup a a TLazTabSheet on it with several controls to configure your TRSHouse:

_images/houseform.png

THouseFormHelper

The THouseFormHelper type is, as it’s name implies a helper type for the House Form.

It has a lot of methods and callbacks that are hidden by default and won’t be mentioned on this page because they are internal methods you shouldn’t touch.

Do feel free to read the source code though if you so desire.


HouseForm variable

Global THouseFormHelper variable.


ScriptForm CreateHouseTab

function TScriptForm.CreateHouseTab(): TLazTabSheet;

Sets up a TLazTabSheet on your TScriptForm to configure your TRSHouse.

Example:

{$I WaspLib/osrs.simba}
var
  form: TScriptForm;
begin
  form.Setup();
  form.CreateHouseTab();
  form.Run();
end.
_images/houseform.gif