Re: [MBS] [ANN] 14.2pr11

2014-06-16 Thread Christian Schmitz

Am 17.06.2014 um 00:23 schrieb Marnaud :

> What is the preferred way, under Cocoa, to show a custom “NavigationDialog”

NSSavePanel/NSOpenPanel are the classes.

> (I mean, for example, for hiding the navigation popup menu, showing a custom 
> controls area or otherwise having events while the list is filtered (in other 
> words, what NavigationDialog did in your plugin))?

I expect those Cocoa classes to do all the things you need.

> And, if we continue to use a RB version like 2011, where Cocoa is in beta, 
> will your plugin stop supporting this version (since you deprecate Carbon 
> classes)?

Well, I will continue to include those things, but not put much work into them.

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] OverlayMBS and 32-bit pictures on Win32?

2014-06-16 Thread Michael Diehr
Hi Christian,

When I try to use OverlayMBS with 32-bit pictures on Win32 builds with GDI+ 
enabled, nothing is showing.  Could you see about fixing that?  Thanks,
-mike
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] [ANN] 14.2pr11

2014-06-16 Thread Marnaud
Le 16 juin 2014 à 23:20, Christian Schmitz a écrit:

> * Marked NavigationDialogMBS, HIViewMBS, MenubarMBS, MenuMBS and 
> StandardAlertMBS classes as deprecated. Those are only for Carbon and should 
> be replaced when you move projects to Cocoa.

Hello,

What is the preferred way, under Cocoa, to show a custom “NavigationDialog” (I 
mean, for example, for hiding the navigation popup menu, showing a custom 
controls area or otherwise having events while the list is filtered (in other 
words, what NavigationDialog did in your plugin))?

And, if we continue to use a RB version like 2011, where Cocoa is in beta, will 
your plugin stop supporting this version (since you deprecate Carbon classes)?
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] How to Print NSTextStorageMBS to a printer

2014-06-16 Thread Jim Pitchford
Christian

Why not simply use NSViewMBS of Textarea?

Because I am trying to print a combination of graphics and text from multiple 
objects over multiple pages. I can’t do that within TextArea.

Essentially I have a database of RTF fields, that need printing in a prescribed 
layout combined with graphics.

Jim

Message: 8
Date: Mon, 16 Jun 2014 23:16:08 +0200
From: Christian Schmitz 
Subject: Re: [MBS] Re: How to Print NSTextStorageMBS into a printer
graphic object?
To: MBS-Plugin-Liste Plugin List 
Message-ID:
<162eff1b-6250-4fb4-b4be-49ecf0b9d...@monkeybreadsoftware.de>
Content-Type: text/plain; charset=windows-1252


Am 16.06.2014 um 22:57 schrieb Jim Pitchford :

> Christian
> 
> I tried this but it sticks where indicated:
> 
> //create a new view
> dim v as new NSViewMBS (0,0, 400, 600)

here you create a dummy NSViewMBS. It doesn't so much.

> //create the graphics associated with the view
> dim nsg as NSGraphicsMBS = NSGraphicsMBS.graphicsContextWithNSView(v) //<< 
> Routine stops here and returns

This causes exception as view is not part of a window.
You see messages in Console.

I'll fix it to raise NSException.

> Am I missing something in creating the NSView or NSGraphics?

Why not simply use NSViewMBS of Textarea?

Sincerely
Christian
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] [ANN] 14.2pr11

2014-06-16 Thread Christian Schmitz
Hi,

* Updated adaptor.appendPicture to work with transparency.
* Marked NavigationDialogMBS, HIViewMBS, MenubarMBS, MenuMBS and 
StandardAlertMBS classes as deprecated. Those are only for Carbon and should be 
replaced when you move projects to Cocoa.
* Fixed bug in CTParagraphStyleSettingMBS class.
* Most deprecated things in plugin now list replacement.
* Upgraded OS Version query on Mac to work better on Mac OS X 10.10
* Updated DynaPDF library to version 3.0.33.95.


Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Re: How to Print NSTextStorageMBS into a printer graphic object?

2014-06-16 Thread Christian Schmitz

Am 16.06.2014 um 22:57 schrieb Jim Pitchford :

> Christian
> 
> I tried this but it sticks where indicated:
> 
>  //create a new view
>  dim v as new NSViewMBS (0,0, 400, 600)

here you create a dummy NSViewMBS. It doesn't so much.

>  //create the graphics associated with the view
>  dim nsg as NSGraphicsMBS = NSGraphicsMBS.graphicsContextWithNSView(v) //<< 
> Routine stops here and returns

This causes exception as view is not part of a window.
You see messages in Console.

I'll fix it to raise NSException.

> Am I missing something in creating the NSView or NSGraphics?

Why not simply use NSViewMBS of Textarea?

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2014-06-16 Thread Christian Schmitz

Am 16.06.2014 um 19:52 schrieb Michael Diehr :

> Hi Christian,
> 
> It would be great if you could get this working... any ideas?  if this is a 
> Xojo bug, has it been reported to them yet?

The problem is that calls to GdipBitmapLockBits fails.

I ask on forum if someone has an idea:
https://forum.xojo.com/13040-gdipbitmaplockbits

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Re: How to Print NSTextStorageMBS into a printer graphic object?

2014-06-16 Thread Jim Pitchford
Christian

I tried this but it sticks where indicated:

  //create a new view
  dim v as new NSViewMBS (0,0, 400, 600)
  
  //create the graphics associated with the view
  dim nsg as NSGraphicsMBS = NSGraphicsMBS.graphicsContextWithNSView(v) //<< 
Routine stops here and returns
  
  if nsg = nil then break //<< routine doesn’t get this far.
  
  //get the text
  dim t as NSTextStorageMBS = textView.textStorage
  
  //put the text into the graphics
  nsg.drawInRect( t, new NSRectMBS(0,0, 200, 100) )
  
  //print out
  dim o as NSPrintOperationMBS = NSPrintOperationMBS.printOperationWithView(v)
  
  o.showsPrintPanel = true
  o.runOperationModalForWindow(self)
  o = nil

Am I missing something in creating the NSView or NSGraphics?

Regards

Jim


On 16 Jun 2014, at 11:07, Christian Schmitz  
wrote:

> 
> Am 16.06.2014 um 17:44 schrieb Jim Pitchford :
> 
>> Christian
>> 
>> Thank you for this.
>> 
>> I don’t fully understand it all yet but I note the following things from 
>> testing inside your NSTextViewMBS example.
>> 
> 
> Sorry. Maybe better let the view print itself.
> 
> Sincerely
> Christian
> 
> -- 
> Read our blog about news on our plugins:
> 
> http://www.mbsplugins.de/
> 

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2014-06-16 Thread Christian Schmitz

Am 16.06.2014 um 19:52 schrieb Michael Diehr :

> Hi Christian,
> 
> Any update on PictureMBS with 32-bit pictures under Win32?   

No. Nothing changed there.

> It would be great if you could get this working... any ideas?  if this is a 
> Xojo bug, has it been reported to them yet?

Let me check...

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] PictureMBS.ScaleMT on Win32 with New-Style pictures?

2014-06-16 Thread Michael Diehr
Hi Christian,

Any update on PictureMBS with 32-bit pictures under Win32?   

I'm testing the latest Xojo beta with 14.2 pr10 and seeing this:

dim p as new picture(256,256)
dim pmbs as new PictureMBS(p,p.hasAlphaChannel)

// on Cocoa, pmbs.valid = true
// on Win32, pmbs.valid = false

It would be great if you could get this working... any ideas?  if this is a 
Xojo bug, has it been reported to them yet?



On Sep 27, 2013, at 10:08 AM, Christian Schmitz 
 wrote:

> 
> Am 27.09.2013 um 19:05 schrieb Michael Diehr :
> 
>> You are testing with GDI+ enabled in the application, right?  I wonder if in 
>> multi-threaded code, you might need to call  GdiplusStartup(&gdiplusToken, 
>> &gdiplusStartupInput, NULL) in each thread?
> 
> Well, I would expect GdiplusStartup is called by Xojo before they create GDI+ 
> pictures.
> 
>> Or is the problem that it doesn't even work in the main thread at all?
> 
> 
> Yes. Main thread is the problem.
> 
> Greetings
> Christian
> 
> -- 
> Read our blog about news on our plugins:
> 
> http://www.mbsplugins.de/
> 
> ___
> Mbsplugins_monkeybreadsoftware.info mailing list
> mbsplugins@monkeybreadsoftware.info
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] PDF display mode

2014-06-16 Thread Jean-Luc Arnaud
Le 16/06/2014 17:24, Christian Schmitz a écrit :
> Am 16.06.2014 um 17:19 schrieb Jean-Luc Arnaud :
>
>> Nobody has just a little piece of answer?
> Ups. Missed it.
Don't worry!
>
>>> Using DynaPDF (or eventually another MBS command), is there a way to
>>> get the PDF "Display Page Mode" setting, that is, one page or two
>>> pages or two pages with scrolling, and so on.
> you can use GetPageLayout function.
>
Seems to be what I need. Will try that ASAP.

Thanks!

Jean-Luc

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] PDF display mode

2014-06-16 Thread Christian Schmitz

Am 16.06.2014 um 17:19 schrieb Jean-Luc Arnaud :

> Nobody has just a little piece of answer?

Ups. Missed it.

>> Using DynaPDF (or eventually another MBS command), is there a way to 
>> get the PDF "Display Page Mode" setting, that is, one page or two 
>> pages or two pages with scrolling, and so on.

you can use GetPageLayout function. 

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Re: PDF display mode

2014-06-16 Thread Jean-Luc Arnaud
Nobody has just a little piece of answer?

Jean-Luc Arnaud

Le 13/06/2014 16:59, Jean-Luc Arnaud a écrit :
> Hi all,
>
> Using DynaPDF (or eventually another MBS command), is there a way to 
> get the PDF "Display Page Mode" setting, that is, one page or two 
> pages or two pages with scrolling, and so on.
>
> TIA
>


___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info