Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
How to get the contents displayed inside MAC Native Dialog into a Java componet/Image
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vijay.kachhawal" data-source="post: 951020" data-attributes="member: 133267"><p>Hi All,</p><p></p><p>I am working on a java application which communicates with C++ dynamic </p><p>library. The library returns the output (in the form of textual & Picture information) </p><p>on a native MAC dialog (DialogPtr -- An opaque type that represents a dialog in MAC) which I am creating using "Resorcerer" software for </p><p>MAC. The library is purely developed using C++.</p><p></p><p>My requirement is to get the native dialog output on any of the Java </p><p>component (JPanel or JFrame etc).</p><p></p><p>The similar C++ library also exists in my project for Windows OS. We are using VC++ for reading the DLL. The library is written in the similar fashion for Windows OS also. For Windows, we are passing </p><p> </p><p>CImage.getDC() : CImage is an Image class similar as BufferedImage for java. "getDC()" method returns the Handler for Device Contenxt (HDC).</p><p> </p><p>By passing the above value, we are able to get the whole information of Native Dialog onto the CImage object and then we are displaying the CImage on a MFC dialog. </p><p> </p><p>This is the reason, I am looking for similar solution for MAC C++ Library. This library is also drawing the information using HDC (representing CGraphPtr for MAC) on the Native Dialog. </p><p></p><p>Is there any way to get that information on any of the java component/image object?</p><p></p><p>Is there any way to map the native dialog to any of the Java AWT/swing </p><p>component directly on MAC?</p><p></p><p>Or is it possible to get the information which is displaying inside the </p><p>native dialog to be directly displayed on JPanel?</p><p></p><p>Or can we import the content of native dialog on some java Image object so </p><p>that I can draw that image on a JPanel?</p><p></p><p>Any workaround/help in this regard will be of great help for me.</p><p></p><p>Provide me any links/URLs which I can go through to solve this issue.</p><p></p><p>Thanks & Regards,</p><p>Vijay</p></blockquote><p></p>
[QUOTE="vijay.kachhawal, post: 951020, member: 133267"] Hi All, I am working on a java application which communicates with C++ dynamic library. The library returns the output (in the form of textual & Picture information) on a native MAC dialog (DialogPtr -- An opaque type that represents a dialog in MAC) which I am creating using "Resorcerer" software for MAC. The library is purely developed using C++. My requirement is to get the native dialog output on any of the Java component (JPanel or JFrame etc). The similar C++ library also exists in my project for Windows OS. We are using VC++ for reading the DLL. The library is written in the similar fashion for Windows OS also. For Windows, we are passing CImage.getDC() : CImage is an Image class similar as BufferedImage for java. "getDC()" method returns the Handler for Device Contenxt (HDC). By passing the above value, we are able to get the whole information of Native Dialog onto the CImage object and then we are displaying the CImage on a MFC dialog. This is the reason, I am looking for similar solution for MAC C++ Library. This library is also drawing the information using HDC (representing CGraphPtr for MAC) on the Native Dialog. Is there any way to get that information on any of the java component/image object? Is there any way to map the native dialog to any of the Java AWT/swing component directly on MAC? Or is it possible to get the information which is displaying inside the native dialog to be directly displayed on JPanel? Or can we import the content of native dialog on some java Image object so that I can draw that image on a JPanel? Any workaround/help in this regard will be of great help for me. Provide me any links/URLs which I can go through to solve this issue. Thanks & Regards, Vijay [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
How to get the contents displayed inside MAC Native Dialog into a Java componet/Image
Top