OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to obtain a long for a XWindow?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
manuguy
General User
General User


Joined: 25 Nov 2004
Posts: 38
Location: Massy - FRANCE

PostPosted: Fri Jan 07, 2005 9:17 am    Post subject: How to obtain a long for a XWindow? Reply with quote

Hello,

For the X11DropTarget, the API says that :
"a long that contains a XWindow window" must be used as a second parameter
for XInitialization.

Does anybody know how to obtain this long?

Thanks in advance.
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Sat Jan 08, 2005 10:10 am    Post subject: Reply with quote

I don't know if this will answer your question. I don't know what you are trying to do. I don't know how much you already understand OOo.

See this in the developer's guide....

Using the Window Handle
http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.htm#1+1+7+2+1+A+Hack

See the XSystemDependentWindowPeer in the API reference.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
manuguy
General User
General User


Joined: 25 Nov 2004
Posts: 38
Location: Massy - FRANCE

PostPosted: Mon Jan 10, 2005 2:10 am    Post subject: Reply with quote

Hi,

Thanks for your help.
I already looked at your links in the API. The problem is that
SYSTEMDEPENDENT is deprecated and when I use it,
it crashes my program.

I work with Linux, in C++.

My goal is to use Drag and Drop in C++ (see my other posts).
I want to use a X11DropTarget to add a drop listener, and in the API,
it seems that I need a long for a XWindow to initialize it.

Regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group