Hi,

On Tuesday 23 January 2007 14:00, eric b wrote:

> For Aqua version ( on Mac OS X) , we have no cursor available yet
> ( e.g. in Writer) , and we need more infos, tips and / or instructions.

Just to be sure - do you mean the mouse pointer, or the text cursor?

> What +I found is located in Windows implementations, but this is not
> well documented, and if someone could provide us tips, ..etc, it
> would be great.
>
> After some tries, I think we'll have to implement some methods in
> AquaSalFrame ( vcl/aqua/source/window/salframe.cxx ) , like :
>
> AquaSalFrame:SetPointerPos()

This is for mouse pointer.

> AquaSalFrame:SetCursorPos()

This is for text cursor, and most probably you don't want to change that.

> AquaSalFrame:SetInputContext()

This is for input methods if I'm not mistaken.

> My current infos are about use (from Apple Carbon API )
>
>   http://developer.apple.com/documentation/UserExperience/Conceptual/
> OSXHIGuidelines/XHIGCursors/chapter_15_section_2.html

But it looks like you are interested just in the mouse pointer - then I would 
start with AquaSalFrame::SetPointer(), and then continue with 
AquaSalFrame::SetPointerPos().

> A very good begining would be to see kThemeIBeamCursor in a white
> Writer page ..
>
> After some investigations, the probably helpfull functions are :
>
> SetThemeCursor  ( SetCCursor() and GetCcursor are deprecated for 10.4)
> ControlSetCursor()
> HandleControlSetCursor()

Yes, SetThemeCursor() 
[http://developer.apple.com/documentation/macos8/HumanInterfaceToolbox/AppManager/ProgWithAppearanceMgr/Appearance.3f.html]
 
seems to be what you want for the implementation of 
AquaSalFrame::SetPointer().

> ... maybe other, of course, but this is not completely clear yet.
>
> Other relevant infos I found come from vcl/source/window/cursor.cxx
> ( + corresponding header )
>
> What we need, are infos concerning the logical behind the
> implementation :
>
> - do we need to install a Handler  ?
> - do we need to install specific events ?
> - do we need .. anything else ?

Why?  I would just try to map the PointerStyle constants to ThemeCursor 
constants.

Hopefully I'm not too wrong ;-)

Regards,
Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to