# SDKs

**URL:** https://forum.xojo.com/c/sdks/13.md?page=3

[Latest](https://forum.xojo.com/latest.md) · [Categories](https://forum.xojo.com/categories.md)

**Page:** 4

---

## [Graphics.DrawPicture cropping image in DrawControlInLayout SDK](https://forum.xojo.com/t/graphics-drawpicture-cropping-image-in-drawcontrolinlayout-sdk/66429)

<div class="topic-metadata">

**Author:** [@Sam\_Lawler](https://forum.xojo.com/u/Sam_Lawler)\
**Replies:** 8\
**Last updated:** [November 9, 2021, 10:01pm UTC](https://forum.xojo.com/t/graphics-drawpicture-cropping-image-in-drawcontrolinlayout-sdk/66429 "2021-11-09T22:01:15Z")

</div>

In 2021r2.1, I have a PNG image that I am loading into the IDE using Graphics.DrawPicture within DrawControlInLayout. My code for doing this: Dim Pic As Picture = PictureProperty("ImagePNG") g.DrawPicture(Pic, 0, 0, g.W…

---

## [New control WebSDKUIControl](https://forum.xojo.com/t/new-control-websdkuicontrol/66511)

<div class="topic-metadata">

**Author:** [@Stefano\_Basile](https://forum.xojo.com/u/Stefano_Basile)\
**Replies:** 9\
**Last updated:** [November 6, 2021, 8:40pm UTC](https://forum.xojo.com/t/new-control-websdkuicontrol/66511 "2021-11-06T20:40:33Z")

</div>

I’m creating a small control with an example div where clicking on the div should return the event to xojo but it doesn’t work. I am attaching the example file someone can explain to me why. sample project:

---

## [Sdkcontrols inside a page or tabpanel are not available with webpage.controls iterator](https://forum.xojo.com/t/sdkcontrols-inside-a-page-or-tabpanel-are-not-available-with-webpage-controls-iterator/66300)

<div class="topic-metadata">

**Author:** [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Replies:** 2\
**Last updated:** [October 28, 2021, 5:53pm UTC](https://forum.xojo.com/t/sdkcontrols-inside-a-page-or-tabpanel-are-not-available-with-webpage-controls-iterator/66300 "2021-10-28T17:53:29Z")

</div>

see \<https://xojo.com/issue/66350\> and attached project the visualcontrol (sdk) inside the tabpanel is not listed.

---

## [WebSDK2: how to get the actual width or height of a control?](https://forum.xojo.com/t/websdk2-how-to-get-the-actual-width-or-height-of-a-control/66235)

<div class="topic-metadata">

**Author:** [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 6:19pm UTC](https://forum.xojo.com/t/websdk2-how-to-get-the-actual-width-or-height-of-a-control/66235 "2021-10-26T18:19:05Z")

</div>

Hi @Greg\_O\_Lone , or @Anthony\_G\_Cyphers when using a websdkuicontrol, how can I get the actual width (or height) of a control ? if I use the locks top,left,right or bottom of the control, the control size on the client…

---

## [Xojo badly escape an apostrophe in a json item (for websdkcontrol ?)](https://forum.xojo.com/t/xojo-badly-escape-an-apostrophe-in-a-json-item-for-websdkcontrol/66233)

<div class="topic-metadata">

**Author:** [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Replies:** 20\
**Last updated:** [October 25, 2021, 1:29pm UTC](https://forum.xojo.com/t/xojo-badly-escape-an-apostrophe-in-a-json-item-for-websdkcontrol/66233 "2021-10-25T13:29:37Z")

</div>

stuck with that bug today. if you add some string containing an apostrophe in a json like “it’s me” xojo doesn’t add an escape char \\ before it if you add the escape yourself, “it’s me” then xojo adds two \\ !!! \<h…

---

## [TextInputCanvas Bug?](https://forum.xojo.com/t/textinputcanvas-bug/66154)

<div class="topic-metadata">

**Author:** [@GarryPettet](https://forum.xojo.com/u/GarryPettet)\
**Replies:** 6\
**Last updated:** [October 20, 2021, 6:11pm UTC](https://forum.xojo.com/t/textinputcanvas-bug/66154 "2021-10-20T18:11:59Z")

</div>

This may have to be answered by either @Björn\_Eiríksson , @Christian\_Schmitz or one of the Xojo engineers but please chime in if you have a suggestion. I’m using @Björn\_Eiríksson’s latest build (1.1.2) of the TextInputC…

---

## [Websdk.serialize: can the jsonitem be a multidimensionnal array?](https://forum.xojo.com/t/websdk-serialize-can-the-jsonitem-be-a-multidimensionnal-array/66113)

<div class="topic-metadata">

**Author:** [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Replies:** 18\
**Last updated:** [October 16, 2021, 9:46pm UTC](https://forum.xojo.com/t/websdk-serialize-can-the-jsonitem-be-a-multidimensionnal-array/66113 "2021-10-16T21:46:19Z")

</div>

I’m trying to send a jsonitem to the browser, and it contains a multidimensionnal array it seems that a single array is ok, but the multidimensionnal array does not go to the browser side… is it a bug or a feature ? s…

---

## [SocketCAN](https://forum.xojo.com/t/socketcan/66106)

<div class="topic-metadata">

**Author:** [@Jaap\_Cammeraat](https://forum.xojo.com/u/Jaap_Cammeraat)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 7:16am UTC](https://forum.xojo.com/t/socketcan/66106 "2021-10-15T07:16:33Z")

</div>

Hi, Is there already a plugin for using SocketCAN within a Linux app? https://www.kernel.org/doc/html/v4.17/networking/can.html I’n searching for a robust way to send/receive data on a CAN bus network.

---

## [MercadoPago (web 2.0)](https://forum.xojo.com/t/mercadopago-web-2-0/66104)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tanco](https://forum.xojo.com/u/Mauricio_Tanco)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 3:26am UTC](https://forum.xojo.com/t/mercadopago-web-2-0/66104 "2021-10-15T03:26:14Z")

</div>

Estimados, alguien ha podido agregar Mercado Pago a sus procesos web 2.0 ? https://beta.mercadopago.com.uy/developers/es/guides/online-payments/checkout-pro/introduction https://beta.mercadopago.com.uy/developers/es/gu…

---

## [FolderItem with REALLoadObjectMethod crashing plugin](https://forum.xojo.com/t/folderitem-with-realloadobjectmethod-crashing-plugin/65781)

<div class="topic-metadata">

**Author:** [@Sam\_Lawler](https://forum.xojo.com/u/Sam_Lawler)\
**Replies:** 7\
**Last updated:** [October 6, 2021, 12:49am UTC](https://forum.xojo.com/t/folderitem-with-realloadobjectmethod-crashing-plugin/65781 "2021-10-06T00:49:51Z")

</div>

I’m trying to use REALLoadObjectMethod to call FolderItem inside of a plugin. I have been referencing the PluginSDK examples to create this. My code is the same as the examples apart from the change to a FolderItem, but …

---

## [Dynamic load module method](https://forum.xojo.com/t/dynamic-load-module-method/65414)

<div class="topic-metadata">

**Author:** [@Hans-Jürgen\_Weisheit](https://forum.xojo.com/u/Hans-J%C3%BCrgen_Weisheit)\
**Replies:** 11\
**Last updated:** [September 17, 2021, 6:34pm UTC](https://forum.xojo.com/t/dynamic-load-module-method/65414 "2021-09-17T18:34:51Z")

</div>

Is there a way to load a method of a module? I found a question from Björn Eiríksson in the year 2016: Encodings\_DOSThai = (REALobject (\*)()) REALLoadGlobalMethod(“Encodings.DOSThai() as TextEncoding”); This is some ti…

---

## [Plugin not accepting non-static char arrays?](https://forum.xojo.com/t/plugin-not-accepting-non-static-char-arrays/65409)

<div class="topic-metadata">

**Author:** [@Sam\_Lawler](https://forum.xojo.com/u/Sam_Lawler)\
**Replies:** 8\
**Last updated:** [September 8, 2021, 3:29am UTC](https://forum.xojo.com/t/plugin-not-accepting-non-static-char-arrays/65409 "2021-09-08T03:29:21Z")

</div>

I’m trying to create a plugin to create an inspector properties drop-down menu from a char array. I can do this with a static array. For example: const char\* charArray\[\] { "a", "b", "c", "d", "e" }; static REALpropert…

---

## [Add a function to query thread status](https://forum.xojo.com/t/add-a-function-to-query-thread-status/65148)

<div class="topic-metadata">

**Author:** [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Replies:** 4\
**Last updated:** [August 23, 2021, 4:25pm UTC](https://forum.xojo.com/t/add-a-function-to-query-thread-status/65148 "2021-08-23T16:25:55Z")

</div>

Hello, there is a long ongoing problem in Xojo, that we see StackOverflowExceptions when a callback is coming on some thread not known to Xojo. Three years ago I filled a feedback case: 53201 - StackOverflowChecking sh…

---

## [SceneKit Changing Center of Rotation and Camera](https://forum.xojo.com/t/scenekit-changing-center-of-rotation-and-camera/65096)

<div class="topic-metadata">

**Author:** [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Replies:** 3\
**Last updated:** [August 18, 2021, 7:37pm UTC](https://forum.xojo.com/t/scenekit-changing-center-of-rotation-and-camera/65096 "2021-08-18T19:37:32Z")

</div>

I am using MBS SceneKit quire successfully for a current project, but I’ve run into something I think should be simple, but it’s escaping me. Generally I have an object that I the tap and drag rotates in the center of t…

---

## [MapKit read-only](https://forum.xojo.com/t/mapkit-read-only/65070)

<div class="topic-metadata">

**Author:** [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Replies:** 5\
**Last updated:** [August 17, 2021, 9:44am UTC](https://forum.xojo.com/t/mapkit-read-only/65070 "2021-08-17T09:44:57Z")

</div>

Using MBS I’d like to have a map view NOT be movable by the user’s touch, pinch, etc. Is this possible?

---

## [DateTime.Now issue](https://forum.xojo.com/t/datetime-now-issue/64986)

<div class="topic-metadata">

**Author:** [@Pierre\_Vareilles](https://forum.xojo.com/u/Pierre_Vareilles)\
**Replies:** 2\
**Last updated:** [August 12, 2021, 5:12am UTC](https://forum.xojo.com/t/datetime-now-issue/64986 "2021-08-12T05:12:20Z")

</div>

I need to timestamp an object created within my plugin. I try to get this timestamp with the method described by @William Yu here in order to populate a property. Unfortunately dateTimeNowFunc is always null. I use Xojo …

---

## [Arrays with objects created with a plug-in will be never released from Xojo](https://forum.xojo.com/t/arrays-with-objects-created-with-a-plug-in-will-be-never-released-from-xojo/64926)

<div class="topic-metadata">

**Author:** [@Hans-Jürgen\_Weisheit](https://forum.xojo.com/u/Hans-J%C3%BCrgen_Weisheit)\
**Replies:** 10\
**Last updated:** [August 8, 2021, 5:40pm UTC](https://forum.xojo.com/t/arrays-with-objects-created-with-a-plug-in-will-be-never-released-from-xojo/64926 "2021-08-08T17:40:58Z")

</div>

I have a simple class that have a constructor, a destructor and one property. If I use the following code in Xojo: Dim a(-1) As MyClass a.Append(new MyClass) a.Remove(0) The constructor of the class will be called on…

---

## [Peek & poke from/to a MemoryBlock](https://forum.xojo.com/t/peek-poke-from-to-a-memoryblock/64815)

<div class="topic-metadata">

**Author:** [@Pierre\_Vareilles](https://forum.xojo.com/u/Pierre_Vareilles)\
**Replies:** 2\
**Last updated:** [July 31, 2021, 11:32am UTC](https://forum.xojo.com/t/peek-poke-from-to-a-memoryblock/64815 "2021-07-31T11:32:34Z")

</div>

Can anyone tell me why I can’t get function pointer to get/set values of a MemoryBlock. Thanks REALobject mb = NULL; mb = REALnewInstanceWithClass(memoryblockRef); if (!mb) return NULL; typedef void (\*setByte)(RE…

---

## [Plugin SDK: Getting the width, followed by the height of a graphics instance nullifies the width](https://forum.xojo.com/t/plugin-sdk-getting-the-width-followed-by-the-height-of-a-graphics-instance-nullifies-the-width/64565)

<div class="topic-metadata">

**Author:** [@Alfred\_Van\_Hoek](https://forum.xojo.com/u/Alfred_Van_Hoek)\
**Replies:** 6\
**Last updated:** [July 28, 2021, 3:22am UTC](https://forum.xojo.com/t/plugin-sdk-getting-the-width-followed-by-the-height-of-a-graphics-instance-nullifies-the-width/64565 "2021-07-28T03:22:26Z")

</div>

OMG: int32\_t contextWidth; REALGetPropValueInt32((REALobject)rbContext, "Width", &contextWidth); NSLog(@" StateChanged: contextWidth %d", contextWidth); int32\_t contextHeight; REALGetPropValueInt…

---

## [Can plugin use and define the new Binary enum type?](https://forum.xojo.com/t/can-plugin-use-and-define-the-new-binary-enum-type/64621)

<div class="topic-metadata">

**Author:** [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 1:50pm UTC](https://forum.xojo.com/t/can-plugin-use-and-define-the-new-binary-enum-type/64621 "2021-07-22T13:50:11Z")

</div>

Can plugin use and define the new Binary enum type?

---

## [Getting Color class properties](https://forum.xojo.com/t/getting-color-class-properties/64555)

<div class="topic-metadata">

**Author:** [@Pierre\_Vareilles](https://forum.xojo.com/u/Pierre_Vareilles)\
**Replies:** 2\
**Last updated:** [July 18, 2021, 4:13pm UTC](https://forum.xojo.com/t/getting-color-class-properties/64555 "2021-07-18T16:13:04Z")

</div>

I try to retrieve the values of the red, green and blue properties of a Color class but that leads to a hard crash. I’m probably wrong somewhere but where ? In the same plugin retrieving properties value of Rect and othe…

---

## [WebView2ControlMBS Runtime Exception](https://forum.xojo.com/t/webview2controlmbs-runtime-exception/64535)

<div class="topic-metadata">

**Author:** [@John\_Goecken](https://forum.xojo.com/u/John_Goecken)\
**Replies:** 6\
**Last updated:** [July 16, 2021, 9:14pm UTC](https://forum.xojo.com/t/webview2controlmbs-runtime-exception/64535 "2021-07-16T21:14:04Z")

</div>

I have a windows app that has 2 WebView2ControlMBS controls (web1, web2). web1 has a webpage loaded but I’m not doing anything with it. web2 loads a site, grabs the source, parses the data and prints something. This all …

---

## [Native IOS widgets created in a plugin are badly supported](https://forum.xojo.com/t/native-ios-widgets-created-in-a-plugin-are-badly-supported/64158)

<div class="topic-metadata">

**Author:** [@Alfred\_Van\_Hoek](https://forum.xojo.com/u/Alfred_Van_Hoek)\
**Replies:** 7\
**Last updated:** [July 6, 2021, 2:57pm UTC](https://forum.xojo.com/t/native-ios-widgets-created-in-a-plugin-are-badly-supported/64158 "2021-07-06T14:57:07Z")

</div>

There are two ways to create a plugin using a subclass of an UIView (or a NSView on the Mac). Either you provide a valid id to the handle-getter (the behavior callback) or you implement the offscreen callback (REALcontro…

---

## [Strange behavior with setter](https://forum.xojo.com/t/strange-behavior-with-setter/64071)

<div class="topic-metadata">

**Author:** [@Pierre\_Vareilles](https://forum.xojo.com/u/Pierre_Vareilles)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 11:26am UTC](https://forum.xojo.com/t/strange-behavior-with-setter/64071 "2021-06-22T11:26:48Z")

</div>

I’m still working on my plugin and again I’m facing to something I can’t understand. I’ve defined setter and getter for some properties. When I try to populate these properties Xojo calls the setters with an empty string…

---

## [Plugin Structure influence on loading and precompiling?](https://forum.xojo.com/t/plugin-structure-influence-on-loading-and-precompiling/64047)

<div class="topic-metadata">

**Author:** [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Replies:** 9\
**Last updated:** [June 21, 2021, 6:58pm UTC](https://forum.xojo.com/t/plugin-structure-influence-on-loading-and-precompiling/64047 "2021-06-21T18:58:26Z")

</div>

Does something know how the plugin structure influences the load and precompile time? We have seen times change if we split or join plugins. Not sure where the sweet spot is. @William\_Yu, could some time be saved, if …

---

## [Read Only PDF DynaDPFMBS](https://forum.xojo.com/t/read-only-pdf-dynadpfmbs/64025)

<div class="topic-metadata">

**Author:** [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 8:05pm UTC](https://forum.xojo.com/t/read-only-pdf-dynadpfmbs/64025 "2021-06-19T20:05:16Z")

</div>

Does anyone know what the parameters are for saving a PDF in read-only format using DynaPDF? (The only help file I can find is in ‘C’ conventions…) So Im looking for something like call pdf.closefileex(nil, nil,40,dyn…

---

## [Registering classes in a module](https://forum.xojo.com/t/registering-classes-in-a-module/63964)

<div class="topic-metadata">

**Author:** [@Pierre\_Vareilles](https://forum.xojo.com/u/Pierre_Vareilles)\
**Replies:** 7\
**Last updated:** [June 17, 2021, 10:22am UTC](https://forum.xojo.com/t/registering-classes-in-a-module/63964 "2021-06-17T10:22:17Z")

</div>

Is there somewhere an example on how to include classes in a module ? All my attempt fail. This is what I actually do based on code found. REALclassDefinition Class1\_Definition = { kCurrentREALControlVersion, …

---

## [Sample code for Touch events on iOS?](https://forum.xojo.com/t/sample-code-for-touch-events-on-ios/63922)

<div class="topic-metadata">

**Author:** [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Replies:** 7\
**Last updated:** [June 14, 2021, 6:03pm UTC](https://forum.xojo.com/t/sample-code-for-touch-events-on-ios/63922 "2021-06-14T18:03:45Z")

</div>

Seems like a Xojo control on iOS doesn’t get PointerDown/PointerUp events for the plugin controls automatically. Is there sample code on how to do them?

---

## [Lock or not to lock?](https://forum.xojo.com/t/lock-or-not-to-lock/63850)

<div class="topic-metadata">

**Author:** [@Pierre\_Vareilles](https://forum.xojo.com/u/Pierre_Vareilles)\
**Replies:** 2\
**Last updated:** [June 10, 2021, 3:38pm UTC](https://forum.xojo.com/t/lock-or-not-to-lock/63850 "2021-06-10T15:38:51Z")

</div>

I’m still scratching my head about whether or not to lock an object. I am working on a plugin that creates class instances and stores them in a dynamic array. This plugin has a function to retrieve these instances. Befor…

---

## [Are there any simple examples for web 2.0 custom controls?](https://forum.xojo.com/t/are-there-any-simple-examples-for-web-2-0-custom-controls/63758)

<div class="topic-metadata">

**Author:** [@RomanV](https://forum.xojo.com/u/RomanV)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 9:02pm UTC](https://forum.xojo.com/t/are-there-any-simple-examples-for-web-2-0-custom-controls/63758 "2021-06-04T21:02:46Z")

</div>

I’m having trouble understanding how to create a simple table or button (or any html object) from the web 2.0 sdk ? I read the sdk docs but being used to 1.0 version of the SDK it was unclear how to create anything othe…

[Previous page](https://forum.xojo.com/c/sdks/13.md?page=2)

[Next page](https://forum.xojo.com/c/sdks/13.md?page=4)
