LordJashin Posted July 13, 2012 Share Posted July 13, 2012 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] Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 13, 2012 Author Share Posted July 13, 2012 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. Quote Link to comment Share on other sites More sharing options...