realbasic-plugins
[Top] [All Lists]

Printing graphics oddness?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Printing graphics oddness?
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Sun, 21 May 2006 14:58:41 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Given the following code it will give a graphics that is different
from the window1.graphics, However if the Grafport or CGContext is
obtained:

  dim ps as new PrinterSetup

  if ps.PageSetupDialog then
     dim g as graphics = OpenPrinterDialog

    if g.handle(5) = self.Graphics.handle(5) then
      MsgBox "the same graphics handle?"
    else
      MsgBox "not the same graphics handle"
    end if

//or

    if g.handle(2) = self.Graphics.handle(2) then
      MsgBox "the same graphics handle?"
    else
      MsgBox "not the same graphics handle"
    end if


    end if

then it appears that the graphics object handle from the OpenPrinterDialog is identical to the handle obtained from the window graphics object. Printing then result in the window.

This is unfortunate because a plugin cannot take advantage of using the printer graphics grafport or context to print. Haven't tried it on windows..

This is a bug, right?
_______________________________________________
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>