Jump to content
FHannes

SCAR Divi 3.35 Pre-Alpha (Unstable!!!)

Recommended Posts

Integer(Bitmap)

 

O yeah there's that way too.

 

What is happening with TSCARWindowClient(GetClient);?

 

Can types have parameters? Or is this shorthand for creating the object.

 

[sCAR]

var

A: TSCARWindowClient;

begin

A := TSCARWindowClient(GetClient);

end.

 

[/sCAR]

Link to comment
Share on other sites

It is neither. It is casting the active client, stored as a TSCARClient object to a TSCARWindowClient object. This is possible because the object stored as a TSCARClient is actually a TSCARWindowClient object. Note that you can only cast and use as the casted object when the object is in fact an object of that type. At the moment, the only available clienttype is a TSCARWindowClient, but TSCARClient is just it's global parent class, from which all client types will be derived.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
  • Create New...