realbasic-plugins
[Top] [All Lists]

Re: System.Cursors.ArrowAllDirections in Dynamic API

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: System.Cursors.ArrowAllDirections in Dynamic API
From: Björn Eiríksson <bjorn at einhugur dot com>
Date: Mon, 19 Dec 2005 01:38:46 +0000
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <D5F1353E-3DAD-45A2-934B-D28EDF51ADCD at einhugur dot com> <3ecb6445c07f8eae1964ccd778d6b11a at mac dot com>
I get true and true from the bellow, indicating success, but yet there is no success with it, not sure if the REALGetPropValue could be returning a bogus "true"

REALobject system = SystemObject();
REALobject cursors = NULL;
REALobject cursor  = NULL;

if(REALGetPropValue(system, "Cursors", &cursors))
{
    DebugStr("\pLoaded Property");
}
else
{
    DebugStr("\pFailed to Load Property");
}

if(REALGetPropValue(cursors, "ArrowNorthSouth", &cursor))
{
    DebugStr("\pLoaded 2nd Property");
    RectControl_SetMouseCursor((REALobject)instance,cursor);
}
else
{
    DebugStr("\pFailed to Load 2nd Property");
}


On 19.12.2005, at 00:57 AM, Alfred Van Hoek wrote:


On Dec 18, 2005, at 4:48 PM, Björn Eiríksson wrote:


How would I access object like the one bellow with the dynamic API ?:

myCursor = System.Cursors.ArrowAllDirections

Seems that its longer namespace than we are used to, the docs say that Cursors is a module, but yet it is on the System object ?



Cursors is a property of the SystemClass and I don't believe Cursors is a module, but is a class. In addition it is often difficult if we need to call REALLoadObjectMethod or REALGetProperty because of an additional ambiguity. For example System.Pentype is listed as a method in the language ref, but "elsewhere" it is listed as a property....

We always have to ask:

Is it a module or a class?
Is it a property or a method"
If a method, are there optional parameters?

The so called Cursors Module tells explicitly it does not define methods or properties, while providing a library of cursors to be accessed by name. It therefore seems as if we cannot use REALgetProperty or REALLoadObjectMethod but then what?

Did you figure finally?

Alfred
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>