Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] PDF stuff, continued. (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] nilObjectException. Please help
Next thread: [MBS] AXUIelementMBS and setattributevalue


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] PDF stuff, continued.   -   Matt J.
   Re: [MBS] PDF stuff, continued.   -   Christian Schmitz

[MBS] PDF stuff, continued.
Date: 23.07.06 21:44 (Sun, 23 Jul 2006 16:44:43 -0400)
From: Matt J.
Thanks for the help on the importing and drawing of the PDF. I got it
to work, and it works well. I notice one strange thing, it seems to
draw the PDF on my main window and looking at the code, I dont see
why.

Here is my PDF button import:

dim p as CGPDFDocumentMBS
dim f as folderitem

f = getOpenFolderItem("")

if f<>Nil then
pÀOpenPDFDocumentMBS(F)

if p<>nil then
pdf=p
Refresh
else
MsgBox "The PDF cant be opened."
end if

end if

In a method elsewhere that does drawing, I have:

dim stuff as stuff
dim r as CGRectMBS

if pdf<>nil then
r=pdf.MediaBox(1)
g.DrawCGPDFDocumentMBS pdf,r,1
end if

draw some text and stuff
print out

Do you know how to prevent the PDF from being drawn into the actual window?

Matthew

PS - Thanks for making such a great plugin. I'll be registering once
mactel RB is released.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
http://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PDF stuff, continued.
Date: 23.07.06 23:39 (Mon, 24 Jul 2006 00:39:36 +0200)
From: Christian Schmitz
Matt J. <<email address removed>> wrote:

> Do you know how to prevent the PDF from being drawn into the actual window?

What is this g from?

As always, you can help me much more by sending me a very small example
project which shows the bug included with all needed files.

> PS - Thanks for making such a great plugin. I'll be registering once
> mactel RB is released.

Do you really want to let me wait so long?

Gruß
Christian

-