Our Blog, Filemaker only, Xojo only, Archive (older), Follow us on Twitter, Xing, LinkedIn or Facebook.


Colorspaces in MacOS with Xojo


Some of our clients love to make applications to edit photos and want to display them in the correct colorspace.

The example project used for a test shows various colorspaces and you need to look very close at them on the screen so you can spot the difference between the red in the three color spaces: screenshot For my screen left is RGB(237, 65, 36), middle is RGB(235, 51, 36) and right is RGB(255, 2, 0). So the right one is basically 1 to 1 to the screen. In that screen colorspace a SRGB or generic RGB red color is quite a difference. (more)

Sign up for MBS Newsletters


You can sign up for MBS Newsletters on our website.

We keep you informed about new plugin versions, local events, conferences and special offers. Emails are sent out in average once a month, so it shouldn't fill your mailbox.

If you provide an address, we can make sure we include you for local events in your area. Like when we attend meetings, we usually email people 100 km or miles around to let them know we are coming.

Looking for a trial license key?
You can get one here: Trial License Request Form.

MBS Xojo Plugins, version 18.0pr9


New in this prerelease of the 18.0 plugins: Download: monkeybreadsoftware.com/xojo/download/plugin/Prerelease/.
Or ask us to be added to our shared Dropbox folder.

MBS FileMaker Plugin, version 8.0pr9


New in this prerelease of version 8.0 of the MBS FileMaker Plugin: Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

DynaPDF Text Position Examples


We got a new example for Xojo on how to extract text from a page and know each position of each text chunk. We can even keep track of current state, so we have the fonts ready and can even draw the same text on top of the existing PDF with Xojo. So DynaPDF renders page with here with text in black and we draw in paint event the blue rectangles for text portions and than draw the same text with Xojo in red:



This example uses the DynaPDFParseInterfaceMBS class from DynaPDF Pro to walk over all PDF commands drawing a page, so we get all the text output as well as matrix changes, font setting and state saving & restoring. We keep track of the current matrix with DynaPDFMatrixMBS class and collect the text records with DynapdfTextRecordWMBS class for Unicode or DynapdfTextRecordAMBS for font specific encodings. In latter case we convert the characters using current font to unicode text.

The example will be included in 18.0pr9 later today and in the 18.0 release next week.
To use this code in a shipping application, you need to order the DynaPDF Pro license from us for use with the MBS Xojo DynaPDF Plugin.

Circle crop images in FileMaker with MBS Plugin


Once again a client asked for some help with image editing in FileMaker. An imported picture should be scaled to a given size and than be cropped to a round image. Of course there are no round images, just images with alpha channels to give the illusion the image may be round.

We created the following example script to first read in the image from a container field. We create a temporary image with transparent background of the source size and composite the existing image into that. Next we scale it to the requested size. 

Next we create a new image where we draw the cirlce for the mask and we apply this mask to the scaled down image. Next we compose this image into our final image to apply the mask and write it to a container as PNG image file: 

# Read in source image

Set Variable [ $SourceImage ; Value: MBS( "GMImage.NewFromContainer"; Clip Image::Input ) ] 

Set Variable [ $sourceWidth ; Value: MBS( "GMImage.GetWidth"; $SourceImage) ] 

Set Variable [ $sourceHeight ; Value: MBS( "GMImage.GetHeight"; $SourceImage) ] 

# Scale to dest size

Set Variable [ $sourceSize ; Value: If($sourceWidth > $sourceHeight; $sourceHeight; $sourceWidth) ] 

Set Variable [ $destWidth ; Value: GetAsNumber ( Clip Image::Width ) ] 

Set Variable [ $destHeight ; Value: GetAsNumber ( Clip Image::Height ) ] 

Set Variable [ $destSize ; Value: If($destWidth > $destHeight; $destHeight; $destWidth) ] 

Set Variable [ $tempImage ; Value: MBS( "GMImage.New"; $sourceSize & "x" & $sourceSize; "transparent" ) ] 

Set Variable [ $r ; Value: MBS( "GMImage.CompositeXY"; $tempImage; $sourceImage; -($sourceWidth-$sourceSize)/2; -($sourceHeight-$sourceSize)/2; 1) ] 

Set Variable [ $r ; Value: MBS( "GMImage.Scale"; $tempImage; $destSize & "x" & $destSize ) ] 

# Build mask

Set Variable [ $clipImage ; Value: MBS( "GMImage.New"; $destSize & "x" & $destSize; "transparent" ) ] 

Set Variable [ $r ; Value: MBS( "GMImage.SetFillColor"; $clipImage; "black" ) ] 

Set Variable [ $radius ; Value: $destSize/2 ] 

Set Variable [ $r ; Value: MBS( "GMImage.DrawCircle"; $clipImage; $radius; $radius; 0; $radius ) ] 

# Apply mask

Set Variable [ $r ; Value: MBS( "GMImage.CopyChannel"; $tempImage; "Opacity"; $clipImage; "Opacity") ] 

# Create destination image

Set Variable [ $destImage ; Value: MBS( "GMImage.New"; $destWidth & "x" & $destHeight; "transparent") ] 

Set Variable [ $r ; Value: MBS( "GMImage.CompositeXY"; $destImage; $tempImage; ($destWidth-$destSize)/2; ($destHeight-$destSize)/2; 1) ] 

Set Field [ Clip Image::Output ; MBS( "GMImage.WriteToPNGContainer"; $destImage) ] 

# Memory cleanup

Set Variable [ $r ; Value: MBS( "GMImage.Destroy"; $SourceImage) ] 

Set Variable [ $r ; Value: MBS( "GMImage.Destroy"; $tempImage) ] 

Set Variable [ $r ; Value: MBS( "GMImage.Destroy"; $destImage) ] 

Set Variable [ $r ; Value: MBS( "GMImage.Destroy"; $clipImage) ] 

 
As you see this is a multi step approach and looks complicated, but sometimes you need to prepare an extra image for the mask (or alpha channel) you like and compose things together as needed.

You can extend this and draw some text on top, some border around or watermark it with a logo. 

PS: Looks like MBS FileMaker Plugin has more GraphicsMagick functions than FileMaker has built-in functions for calculations.


Prices for FileMaker Developer Conference 2018


As stated in the FileMaker community, registration will open in February. The training on Monday 6th will cost $399. Keynote will start later that evening, probably at 6pm and is followed with the welcome reception.
Prices for the conference are $1299 Early Early Bird - through March 15, $1399 Early Bird - through May 31 and $1499 USD Standard.



August 6-9, 2018 | Gaylord Texan Resort | Grapevine, Texas

This is a fantastic conference hotel with 1500 rooms, 10 restaurants, several pools indoor and outdoor. And as may know this was my guess for the conference hotel.

Registration starts end of February 2018. Rooms can be reserved on the hotel website ($189 +tax per night). As you can cancel rooms and they may run out of them, you better reserve now a room and block the week in your calendar! See you there at the MBS booth.

FileMaker und Xojo Stammtisch in Passau


On my next visit to Passau, I'd love to make another FileMaker & Xojo developer meeting:

Wer hat Interesse an einem FileMaker Entwicklertreffen im März 2018 in der Nähe von Passau?

Einfach in gemütlicher Runde treffen in einem netten Restaurant und beim Abendessen was über FileMaker und/oder Xojo schnacken. Vielleicht habt ihr ja auch Fragen und Probleme, wo ich helfen kann?

Zeit wäre ca. 18 bis 22 Uhr, so dass man auch später kommen oder früher gehen kann.

Bei Interesse bitte in die Liste eintragen.

Falls sonst noch Bedarf an Schulung, vor Ort Entwicklung oder FileMaker/Xojo Hilfe besteht, bitte wegen Terminfindung bald melden.

Register for XDC 2018 in Denver soon


Xojo Inc. just announced that the Xojo Developer Conference 2018 in Denver may sell out soon as there are only 25 tickets left.

If you haven't registered yet, the time is now! Save $100 by Feb. 16, but register soon to guarantee you'll have a spot!

Hotel rooms are available here.

I am looking forward to see you all in Denver!

See also Things to do in Denver beside XDC and MBS Xojo Conference in September 2018 in Munich.

Farm Time, The Mini Movie


FileMaker Inc. started a new ad campaign #FarmTime to promote the FileMaker brand:

MBS FileMaker Plugin, version 8.0pr8


New in this prerelease of version 8.0 of the MBS FileMaker Plugin: Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

MBS Xojo Plugins, version 18.0pr8


New in this prerelease of the 18.0 plugins:
  • Fixed bug in VLCEqualizerMBS.Map setter.
  • Fixed out of bounds problem in zxingQRCodeReaderMBS.
  • Fixed problem with loading cairo library on Linux for Ubuntu 17.4.
  • Added IDN support for CURLSMBS and CURLNMBS classes on Windows Vista and newer. Does give error if you try it on older Windows XP.
  • Improved CSV split to also auto detect tab instead of just comma and semicolon.
  • Improved CSV split via SplitCommaSeparatedValuesMBS to handle multi line text values better.
Download: monkeybreadsoftware.com/xojo/download/plugin/Prerelease/.
Or ask us to be added to our shared Dropbox folder.

FileMaker Stammtisch in Hamburg


On my next visit to Hamburg, I'd love to make another FileMaker developer meeting:

Wer hat Interesse an einem FileMaker Entwicklertreffen am 27. oder 28. Juni 2018 in Hamburg?

Einfach in gemütlicher Runde treffen in einem netten Restaurant und beim Abendessen was über FileMaker schnacken. Vielleicht habt ihr ja auch Fragen und Probleme, wo ich helfen kann?

Zeit wäre ca. 18 bis 22 Uhr, so dass man auch später kommen oder früher gehen kann.

Bei Interesse bitte in die Liste eintragen.

Falls sonst noch Bedarf an Schulung, vor Ort Entwicklung oder FileMaker/Xojo Hilfe besteht, bitte wegen Terminfindung bald melden.

Xojo Stammtisch in Hamburg


On my next visit to Hamburg, I'd love to make another Xojo developer meeting:

Wer hat Interesse an einem Xojo Entwicklertreffen am 27. oder 28. Juni 2018 in Hamburg?

Einfach in gemütlicher Runde treffen in einem netten Restaurant und beim Abendessen was über Xojo schnacken. Vielleicht habt ihr ja auch Fragen und Probleme, wo ich helfen kann?

Zeit wäre ca. 18 bis 22 Uhr, so dass man auch später kommen oder früher gehen kann.

Bei Interesse bitte in die Liste eintragen.

Falls sonst noch Bedarf an Schulung, vor Ort Entwicklung oder FileMaker/Xojo Hilfe besteht, bitte wegen Terminfindung bald melden.

PS: Für die Xojo Konferenz und Schulung in München sind noch Plätze frei.

MBS FileMaker Plugin, version 8.0pr7


New in this prerelease of version 8.0 of the MBS FileMaker Plugin: Download at monkeybreadsoftware.de/filemaker/files/Prerelease/ or ask for being added to the dropbox shared folder.

MBS Xojo Plugins, version 18.0pr7


New in this prerelease of the 18.0 plugins:
  • Added NSViewTooltipMBS class and NSViewMBS.addToolTipRect method.
  • Updated DynaPDF to version 4.0.15.42.
  • Fixed problem with VerifyEmailMBS function and some DNS servers.
  • Added Multiply and Unmultiply to PictureMBS class.
  • Added PictureMBS.CopyPictureWithAlpha function.
  • Fixed bug in Picture handling for setting alpha channel for Cocoa picture.
  • Added ClipperMBS module to use clipper library.
  • Added OpenSSLMBS PKCS7SignData function.
  • Fixed problem in SystemInformationMBS.ProcessorCount with logical/physical CPUs in wrong order on Windows.
  • Added example to sign PDF with 2048bit PKCS#12 certificate file.
  • Changed WinUserNotificationMBS to better handle empty texts.
  • Changed SystemInformationMBS.HardDiscSerial on Mac to prefer serial from internal disk.
  • Fixed bug in CURL SetupAWS when wrong date was used.
Download: monkeybreadsoftware.com/xojo/download/plugin/Prerelease/.
Or ask us to be added to our shared Dropbox folder.

FileMaker Developer Meeting for Denver


Due to the Xojo Developer Conference, we will come to Denver, Colorado in April 2018.
So let's organize a FileMaker developer meeting!
Anyone interested?

Currently we'd like to know if there is interest for a dinner meeting or more?

Please fill the survey.
Dates is around 20th to 28th April 2018 on one of the evenings.

For a dinner, we would just meet in a restaurant and chat. If we get a bigger group, maybe get a separate room and with a screen and projector, so you an show something if you like.

If you are interested in some private consulting or training, let me know and we can arrange an appointment.

Xojo Developer Meeting for Dallas


Due to the FileMaker DevCon, we will come to Grapevine, Texas in August.
So let's organize a Xojo developer meeting! Anyone interested?

Currently we'd like to know if there is interest for a dinner meeting or more?

Please fill the survey.
Dates is around 1st to 11th August 2018 on one of the evenings.

For a dinner, we would just meet in a restaurant and chat. If we get a bigger group, maybe get a separate room and with a screen and projector, so you an show something if you like.

If you are interested in some private consulting or training, let me know and we can arrange an appointment.

PS: I'll also attend the FileMaker Dallas meeting on 3rd August 2018.

Disclosure Triangle in Button Setup dialog


The normal button setup panel in FileMaker 16 looks like the left picture here:



With MBS Plugin we optionally change the colors to be more black/white and make the panel resizable. This looks like this for version 7.5 in the right panel.

The disclosure triangle for the panel is difficult to see, so for the upcoming version 8.0, we color it light gray:



We highlighted the triangle in the right screenshot. Enjoy!

The dialog is localized and may look different depending on your language. But as we know the plugin function work independent of the texts, so it should work fine in any language.

Sign PDF with DynaPDF and your custom signature


With the MBS Xojo DynaPDF Plugin, you can digitally sign PDF files. This works with 1024bit keys from PKCS#7 certificates. But DynaPDF does currently not support longer keys.

But well, we do have a MBS Xojo Encryption Plugin with an OpenSSLMBS module including signature functions. With the PKeyMBS and X509MBS classes we can read the PKCS#12 files, get certificates and private key and sign the SHA1 hash from the PDF data.

Here is an example to show you how we can do it:

// In this example we load a PFX certificate file const password = "123456" // read from file dim filePath as FolderItem = SpecialFolder.Desktop.Child("test.pfx") dim b as BinaryStream = BinaryStream.Open(filePath) dim certificateData as string = b.Read(b.Length) // load PKCS12 file to get private key dim cert as X509MBS dim certs() as X509MBS dim pkey as PKeyMBS if X509MBS.ReadFromPkcs12(certificateData, password, pkey, cert, certs) then // get private key as text dim PrivateKey as string = pkey.PrivateKeyData // sign something so we know length dim DummySignature as string = OpenSSLMBS.PKCS7SignData(cert, pkey, certs, SHA1MBS.Hash("test"), 0) // sign parameters dim p as new DynaPDFSigParmsMBS p.ContactInfo = "Call MBS for help." p.Reason = "Signed for demo purpose" p.Signer = "TestApp" p.HashType = DynaPDFMBS.khtSHA1 p.PKCS7ObjLen = lenb(DummySignature) // now assemble PDF and leave room for signature if pdf.CloseAndSignFileExt(p) then // sign the Hash dim Signature as string = OpenSSLMBS.PKCS7SignData(cert, pkey, certs, p.Range1, 0) // add hash to file and launch in PDF reader if pdf.FinishSignature(Signature) then f.Launch end if end if end if

Older blog entries:

2018-01-05 FileMaker Developer Meeting for Stockholm
2018-01-05 Xojo Developer Meeting for Stockholm
2018-01-04 The 2018 Xojo Design Awards
2018-01-04 MBS Booth for FileMaker Developer Conference 2018
2018-01-03 Very early bird offer to expire for European MBS Xojo Conference in Munich
2018-01-02 xDev Magazine Issue 16.1 Issue
2018-01-01 MBS FileMaker Plugin, version 8.0pr6
2018-01-01 MBS Xojo Plugins, version 18.0pr6
2017-12-31 Happy new year 2018
2017-12-31 FileMaker Version used
2017-12-31 Xojo Versions used
2017-12-28 Three days left for DynaPDF Christmas Sale
2017-12-27 LogicalDOC Webservice
2017-12-24 Merry Christmas
2017-12-22 Search in FileMaker Calculations and Custom Functions
2017-12-22 MBS Xojo Plugins, version 17.6pr5
2017-12-22 MBS FileMaker Plugin, version 7.6pr5
2017-12-21 Execute defaults command with Shell functions
2017-12-20 Load RAW image on MacOS with options
2017-12-20 QR Codes for Invoices in Switzerland

Archives

Jan 2018
Sep 2017
Aug 2017
Jul 2017
Jun 2017
May 2017
Apr 2017
Mar 2017
Feb 2017
Jan 2017
Dec 2016
Nov 2016
Oct 2016
Sep 2016
Aug 2016
Jul 2016
Jun 2016
May 2016
Apr 2016
Mar 2016
Feb 2016
Jan 2016
Dec 2015
Nov 2015
Oct 2015
Sep 2015
Aug 2015
Jul 2015
Jun 2015
May 2015
Apr 2015
Mar 2015
Feb 2015
Jan 2015
Dec 2014
Nov 2014
Oct 2014
Sep 2014
Aug 2014
Jul 2014
Jun 2014
May 2014
Apr 2014
Mar 2014
Feb 2014
Jan 2014
Dec 2013
Nov 2013
Oct 2013
Sep 2013
Aug 2013
Jul 2013
Jun 2013
May 2013
Apr 2013
Mar 2013
Feb 2013
Jan 2013
Dec 2012
Nov 2012
Oct 2012
Sep 2012
Aug 2012
Jul 2012
Jun 2012
May 2012
Apr 2012
Mar 2012
Feb 2012
Jan 2012
Dec 2011
Nov 2011
Oct 2011
Sep 2011
Aug 2011
Jul 2011
Jun 2011
May 2011
Apr 2011
Mar 2011
Feb 2011
Jan 2011
Dec 2010
Nov 2010
Oct 2010
Sep 2010
Aug 2010
Jul 2010
Jun 2010
May 2010
Apr 2010
Mar 2010
Feb 2010
Jan 2010
Dec 2009
Nov 2009
Oct 2009
Sep 2009
Aug 2009
Jul 2009
Apr 2009
Mar 2009
Feb 2009
Dec 2008
Nov 2008
Oct 2008
Aug 2008
May 2008
Apr 2008
Mar 2008
Feb 2008
XML: RSS Feed XML: Atom Feed