Dislin Windows Form (.NET APPLICATION)

102 views
Skip to first unread message

Mohammed Mostafa

unread,
May 14, 2012, 3:21:09 PM5/14/12
to dislin-users

I have Three questions :

Can I change the back ground color of the legend and maybe display the
legend entries on the same line.

Can I make it so that instead of opening a DISLIN plotting Window ,
the plot graphics are dislayed in a plotting area inside a windows
form (.NET Application).

Is there any news bout a new version of DISLIN for .NET applications
that is object oriented.

Thanks alot

"Armin Rauthe-Schöch"

unread,
May 15, 2012, 2:39:47 AM5/15/12
to dislin...@googlegroups.com
Hi,


On 05/14/2012 07:21 PM, Mohammed Mostafa wrote:
>
> I have Three questions :
>
> Can I change the back ground color of the legend and maybe display the
> legend entries on the same line.
>
--> You could simply plot a filled square "AREAF" with the desired color before plotting the legend. You can use "NXLEGN" and "NYLEGN" to get the required size.


> Can I make it so that instead of opening a DISLIN plotting Window ,
> the plot graphics are dislayed in a plotting area inside a windows
> form (.NET Application).
>
--> Have a look at the "SETXID" function. Also check the mailing-list archive. There has been an extensive thread on this problem.


> Is there any news bout a new version of DISLIN for .NET applications
> that is object oriented.
>


Good luck !
Armin


--
Dr. Armin Rauthe-Schöch
Max Planck Institute for Chemistry
Department of Atmospheric Chemistry
Hahn-Meitner-Weg 1
D-55128 Mainz / GERMANY
Tel. +49-6131-305-4123
Fax. +49-6131-305-4009
Email: armin.raut...@mpic.de

Mohammed Mostafa

unread,
May 15, 2012, 4:28:56 AM5/15/12
to dislin-users
It worked . but as soon as I move the window (left or right ) outside
the screen and return it the plot would vanish.
here is a screenshot of what happed
http://s9.postimage.org/icx59l9lr/screenshot.jpg
http://postimage.org/image/r7xzk3ye3/

On May 15, 8:39 am, "Armin Rauthe-Schöch" <armin.rauthe-
> Email: armin.rauthe-scho...@mpic.de

"Armin Rauthe-Schöch"

unread,
May 15, 2012, 4:36:44 AM5/15/12
to dislin...@googlegroups.com
Hi,

if you plotwindow gets a "WM_PAINT" message from Windows, it has to repaint the window. I'm not sure whether windows also tells you which part of the plotwindow will need a redrawing.

This is something you have to implement in the main message processing loop of your .NET application.

Regards,
Armin
Email: armin.raut...@mpic.de

Mohammed Mostafa

unread,
May 15, 2012, 5:04:45 AM5/15/12
to dislin-users
I didn't get a "WM_PAINT" message from Windows. The window opens
perfectly , the graphs are perfect . but they vanish as soon as I
move the window outside the screen.

On May 15, 10:36 am, "Armin Rauthe-Schöch" <armin.rauthe-
> Email: armin.rauthe-scho...@mpic.de

"Armin Rauthe-Schöch"

unread,
May 15, 2012, 5:15:08 AM5/15/12
to dislin...@googlegroups.com
Are you sure ? Your plotwindow should also get a WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED. If your plotwindow does not get a WM_PAINT message, you could use the "UpdateWindow" function to send this message.

Note that I only know about the basic Windows API. I don't know how this is encapsulated in a .NET Forms application. But somewhere in your code, you should be able to detect these things and react appropriately.

Cheers,
Armin
Email: armin.raut...@mpic.de
Reply all
Reply to author
Forward
0 new messages