# Code Sharing

**URL:** https://forum.xojo.com/c/code-sharing/62.md

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

---

## [About the Code Sharing category](https://forum.xojo.com/t/about-the-code-sharing-category/60732)

<div class="topic-metadata">

**Author:** [@Dana\_Brown](https://forum.xojo.com/u/Dana_Brown)\
**Replies:** 0

</div>

Here is a place to share code snippets, links to template files, links to your open-source git repositories and more. This category is a discussion-free resource. Any discussion about code shared here should not be made…

---

## [USB Serial on Android](https://forum.xojo.com/t/usb-serial-on-android/88970)

<div class="topic-metadata">

**Author:** [@Didier\_Barbas](https://forum.xojo.com/u/Didier_Barbas)\
**Replies:** 0\
**Last updated:** [October 6, 2026, 1:50pm UTC](https://forum.xojo.com/t/usb-serial-on-android/88970 "2026-10-06T13:50:33Z")

</div>

I needed a USB Serial port for a couple of projects of mine, so Claude and I went all in and managed to produce something that works (on my phone and tablet anyway). It should be quite easy to re-use in other projects. B…

---

## [Relative FolderItem Path Resolution](https://forum.xojo.com/t/relative-folderitem-path-resolution/88855)

<div class="topic-metadata">

**Author:** [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Replies:** 0\
**Last updated:** [September 8, 2026, 11:39am UTC](https://forum.xojo.com/t/relative-folderitem-path-resolution/88855 "2026-09-08T11:39:33Z")

</div>

There have been a number of posts about the changes to FolderItems, both from an API1 to API2 perspective, and in regards to the recent change to macOS behavior. In some of my apps I store relative paths for resolution d…

---

## [Better Xojo Help — browse every installed Xojo doc set from one window (open source)](https://forum.xojo.com/t/better-xojo-help-browse-every-installed-xojo-doc-set-from-one-window-open-source/88681)

<div class="topic-metadata">

**Author:** [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Replies:** 37\
**Last updated:** [August 3, 2026, 8:31pm UTC](https://forum.xojo.com/t/better-xojo-help-browse-every-installed-xojo-doc-set-from-one-window-open-source/88681 "2026-08-03T20:31:27Z")

</div>

I kept running into the same annoyance: the IDE’s help only reaches the documentation of the version it belongs to. I have 30 Xojo releases installed, and the docs for the older ones may as well not exist — the pre-201…

---

## [3D Graphing](https://forum.xojo.com/t/3d-graphing/88703)

<div class="topic-metadata">

**Author:** [@Kevin\_Cary-Grimm](https://forum.xojo.com/u/Kevin_Cary-Grimm)\
**Replies:** 1\
**Last updated:** [August 3, 2026, 12:18pm UTC](https://forum.xojo.com/t/3d-graphing/88703 "2026-08-03T12:18:06Z")

</div>

I was needing some 3D Graphs that Xojo does not do with it’s built in graphing tool. I also wanted it to be open source. Plotly.js in the DesktopHtmlViewer was a good fit and fully cross platform. I could not find any ex…

---

## [Screen shot on Windows](https://forum.xojo.com/t/screen-shot-on-windows/85121)

<div class="topic-metadata">

**Author:** [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Replies:** 3\
**Last updated:** [July 1, 2026, 3:53pm UTC](https://forum.xojo.com/t/screen-shot-on-windows/85121 "2026-07-01T15:53:29Z")

</div>

Not really a code sharing, but usefull too. Description to make screen shots on windows '10-11):

---

## [Warning while dealing int’l](https://forum.xojo.com/t/warning-while-dealing-int-l/88337)

<div class="topic-metadata">

**Author:** [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Replies:** 6\
**Last updated:** [June 1, 2026, 6:21pm UTC](https://forum.xojo.com/t/warning-while-dealing-int-l/88337 "2026-06-01T18:21:20Z")

</div>

This is not a code sharing, but does not go to other channels too. I think this is the appropriate one. I searched for a map to add to a text talking to that region. I found it but was dubious about the part below: …

---

## [Create a .db file (SQLite) with a .csv and from the Terminal](https://forum.xojo.com/t/create-a-db-file-sqlite-with-a-csv-and-from-the-terminal/88192)

<div class="topic-metadata">

**Author:** [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Replies:** 2\
**Last updated:** [May 3, 2026, 9:22am UTC](https://forum.xojo.com/t/create-a-db-file-sqlite-with-a-csv-and-from-the-terminal/88192 "2026-05-03T09:22:55Z")

</div>

Hi, I wanted to explore, failed with xojo, but win with sqlite.org (sorry, no link). So, with a MacBook Pro 13" m1 I have done this: The .csv file (zipped): Mickey\_Daily\_Strips\_List.csv.zip (1.6 KB) The first entrie…

---

## [Pasting Code/Event/whatever in the Navigation Pane](https://forum.xojo.com/t/pasting-code-event-whatever-in-the-navigation-pane/88066)

<div class="topic-metadata">

**Author:** [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Replies:** 0\
**Last updated:** [April 12, 2026, 4:32pm UTC](https://forum.xojo.com/t/pasting-code-event-whatever-in-the-navigation-pane/88066 "2026-04-12T16:32:36Z")

</div>

More Tip than Code Sharing. I recall some times ago someone talking about Pasting a Function (with code) was not really working. Today (minutes ago), I started to add code to a MenuItem, and realized my error: not the …

---

## [Adding an icon to your running in the IDE Project](https://forum.xojo.com/t/adding-an-icon-to-your-running-in-the-ide-project/87953)

<div class="topic-metadata">

**Author:** [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Replies:** 2\
**Last updated:** [March 27, 2026, 11:25pm UTC](https://forum.xojo.com/t/adding-an-icon-to-your-running-in-the-ide-project/87953 "2026-03-27T23:25:11Z")

</div>

Hi, when I run a project I do not have an icon in the App Selection Window nor in the Dock, etc. Of course (I think), adding an Icon in the App entry of the Navigator is (certainly) the solution, but I do not wanted to…

---

## [Paste a Method (Function)](https://forum.xojo.com/t/paste-a-method-function/87927)

<div class="topic-metadata">

**Author:** [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Replies:** 2\
**Last updated:** [March 23, 2026, 8:35pm UTC](https://forum.xojo.com/t/paste-a-method-function/87927 "2026-03-23T20:35:43Z")

</div>

This was discussed recently, and I had to do just that today. I recall to need to press the Option key (long time ago), but I do not checked that… I add a Method, press Cmd-P: nothing. I selected (green background) th…

---

## [Method Mover - Easily add those AI-generated methods to the IDE](https://forum.xojo.com/t/method-mover-easily-add-those-ai-generated-methods-to-the-ide/87763)

<div class="topic-metadata">

**Author:** [@Clifford\_Antrim](https://forum.xojo.com/u/Clifford_Antrim)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 5:17pm UTC](https://forum.xojo.com/t/method-mover-easily-add-those-ai-generated-methods-to-the-ide/87763 "2026-02-24T17:17:15Z")

</div>

Method Mover (https://github.com/cliffantrim/method-mover.git) is for those who are already using AI to generate methods, but aren’t yet ready to fully submit to our new AI overlords by letting Codex or Claude Code loose…

---

## [Publish/Subscribe for Xojo](https://forum.xojo.com/t/publish-subscribe-for-xojo/87307)

<div class="topic-metadata">

**Author:** [@Stam\_Kapetanakis](https://forum.xojo.com/u/Stam_Kapetanakis)\
**Replies:** 6\
**Last updated:** [December 23, 2025, 9:36pm UTC](https://forum.xojo.com/t/publish-subscribe-for-xojo/87307 "2025-12-23T21:36:16Z")

</div>

PubSub is a very simple module to facilitate the Pub/Sub pattern in Xojo: GitHub - stam66/PubSubXojo: Module that implements a simple publish/subscribe model in Xojo.. The publish/subscribe model is a direct way to avoi…

---

## [Customizable Button with fine tune caption and icon/image placement](https://forum.xojo.com/t/customizable-button-with-fine-tune-caption-and-icon-image-placement/87136)

<div class="topic-metadata">

**Author:** [@Daniel\_G](https://forum.xojo.com/u/Daniel_G)\
**Replies:** 1\
**Last updated:** [December 3, 2025, 12:52pm UTC](https://forum.xojo.com/t/customizable-button-with-fine-tune-caption-and-icon-image-placement/87136 "2025-12-03T12:52:10Z")

</div>

Hello all! I’ve been using Xojo to develop a cross-platform messaging app, and while BevelButton works, it’s missing some options I like in my buttons and having been spoiled by CSS, I first attempted to render my app’s …

---

## [Small utility to prepare wood cutting plan](https://forum.xojo.com/t/small-utility-to-prepare-wood-cutting-plan/87014)

<div class="topic-metadata">

**Author:** [@Serge\_Louvet1](https://forum.xojo.com/u/Serge_Louvet1)\
**Replies:** 6\
**Last updated:** [November 26, 2025, 9:18pm UTC](https://forum.xojo.com/t/small-utility-to-prepare-wood-cutting-plan/87014 "2025-11-26T21:18:12Z")

</div>

Hi. I had to cut around 40 pieces of wood (I guess you call them rafter), out of standard pieces available at the closest shop. Did not want to define cutting plan by hand, so I fire my Xojo IDE for help. The resulting …

---

## [Accessing Home Assistant from Xojo on a Mac](https://forum.xojo.com/t/accessing-home-assistant-from-xojo-on-a-mac/86738)

<div class="topic-metadata">

**Author:** [@Richard\_Dixon](https://forum.xojo.com/u/Richard_Dixon)\
**Replies:** 4\
**Last updated:** [October 19, 2025, 5:41pm UTC](https://forum.xojo.com/t/accessing-home-assistant-from-xojo-on-a-mac/86738 "2025-10-19T17:41:23Z")

</div>

I have Home Assistant running on a Raspberry Pi 4 and wanted an app on my Mac desktop on the same local network to be able to command lights to turn on and off etc. You can give Home Assistant instructions with curl cal…

---

## [Reports: variable height text and body workaround](https://forum.xojo.com/t/reports-variable-height-text-and-body-workaround/86395)

<div class="topic-metadata">

**Author:** [@Keith\_Culotta](https://forum.xojo.com/u/Keith_Culotta)\
**Replies:** 1\
**Last updated:** [September 6, 2025, 4:08pm UTC](https://forum.xojo.com/t/reports-variable-height-text-and-body-workaround/86395 "2025-09-06T16:08:09Z")

</div>

The module, ReportML, in the attached demo is a native code workaround for printing variable height columns in a report. It takes a RowSet and some Report information, and returns a RowSet that looks like an expandable …

---

## [Simple open-source library to get and put objects in Amazon S3 buckets](https://forum.xojo.com/t/simple-open-source-library-to-get-and-put-objects-in-amazon-s3-buckets/86393)

<div class="topic-metadata">

**Author:** [@Serge\_Louvet1](https://forum.xojo.com/u/Serge_Louvet1)\
**Replies:** 0\
**Last updated:** [August 30, 2025, 1:02pm UTC](https://forum.xojo.com/t/simple-open-source-library-to-get-and-put-objects-in-amazon-s3-buckets/86393 "2025-08-30T13:02:08Z")

</div>

Just fixed a long standing bug in a simple (open sourced) library to list, get and put objects in an Amazon S3 bucket. You need to manage the buckets from AMZ UI. The provider (amazon) is defined in the ‘credentials’ fi…

---

## [Machine Learning in XOJO](https://forum.xojo.com/t/machine-learning-in-xojo/78753)

<div class="topic-metadata">

**Author:** [@Alexander\_Kostyak](https://forum.xojo.com/u/Alexander_Kostyak)\
**Replies:** 69\
**Last updated:** [August 8, 2025, 2:49am UTC](https://forum.xojo.com/t/machine-learning-in-xojo/78753 "2025-08-08T02:49:19Z")

</div>

Here is a closed topic on machine learning in XOJO from a few years ago: I decided to make a video comparing the native speed of XOJO and C++ with a machine learning algorithm. Here is the link: https://youtu.be/na4l…

---

## [Running Xojo in Headless Linux CI/CD environments](https://forum.xojo.com/t/running-xojo-in-headless-linux-ci-cd-environments/85816)

<div class="topic-metadata">

**Author:** [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Replies:** 10\
**Last updated:** [July 6, 2025, 10:58pm UTC](https://forum.xojo.com/t/running-xojo-in-headless-linux-ci-cd-environments/85816 "2025-07-06T22:58:13Z")

</div>

Hey everyone, During a recent post, I got talking about how one could run the Linux Xojo IDE on a headless linux server setup. For clarity, In this case, I’m talking about an AWS EC2 Instance running Ubuntu 24.04 LTS wi…

---

## [Introducing SupportEngineKit for Xojo](https://forum.xojo.com/t/introducing-supportenginekit-for-xojo/85724)

<div class="topic-metadata">

**Author:** [@Patrice\_C](https://forum.xojo.com/u/Patrice_C)\
**Replies:** 7\
**Last updated:** [June 25, 2025, 3:09pm UTC](https://forum.xojo.com/t/introducing-supportenginekit-for-xojo/85724 "2025-06-25T15:09:49Z")

</div>

Framework for Xojo developers - Integrate SupportEngine features in your apps. With the SupportEngineKit framework for Xojo, you can seamlessly integrate support ticket functionality into your Xojo apps. Users can creat…

---

## [A simple GUI for GitHub](https://forum.xojo.com/t/a-simple-gui-for-github/85375)

<div class="topic-metadata">

**Author:** [@Kevin\_Cary-Grimm](https://forum.xojo.com/u/Kevin_Cary-Grimm)\
**Replies:** 2\
**Last updated:** [May 27, 2025, 10:38am UTC](https://forum.xojo.com/t/a-simple-gui-for-github/85375 "2025-05-27T10:38:26Z")

</div>

I first started using GitHub from the web and command line. I quickly got tired of trying to remember and type in the Git commands on the command line. I looked at several GUI’s for GitHub and they were more complex than…

---

## [Encryption Module](https://forum.xojo.com/t/encryption-module/85395)

<div class="topic-metadata">

**Author:** [@Kevin\_Cary-Grimm](https://forum.xojo.com/u/Kevin_Cary-Grimm)\
**Replies:** 2\
**Last updated:** [May 21, 2025, 12:49pm UTC](https://forum.xojo.com/t/encryption-module/85395 "2025-05-21T12:49:09Z")

</div>

I have updated my KCG Encryption module out on GitHub again. It is still all XOJO API 2.0 native code and now contains: Base64 AES-256 RSA-2048 Hash256 Hash512 TwoFish Blowfish (CBC) RC4 (ARC4) Quantum Resistant…

---

## [Introducing the CRUD SQLite Xojo Project – Built for Beginners!](https://forum.xojo.com/t/introducing-the-crud-sqlite-xojo-project-built-for-beginners/84691)

<div class="topic-metadata">

**Author:** [@FABRICE\_GARCIA](https://forum.xojo.com/u/FABRICE_GARCIA)\
**Replies:** 5\
**Last updated:** [May 18, 2025, 1:31pm UTC](https://forum.xojo.com/t/introducing-the-crud-sqlite-xojo-project-built-for-beginners/84691 "2025-05-18T13:31:13Z")

</div>

Hello everyone, I’m excited to share with you my recent project: the CRUD SQLite Xojo Example—an educational application I’ve specifically designed for beginners learning Xojo programming. This simple yet structured app…

---

## [Xojo is able to send texts directly via BulkSMS.com](https://forum.xojo.com/t/xojo-is-able-to-send-texts-directly-via-bulksms-com/85277)

<div class="topic-metadata">

**Author:** [@David\_Cox](https://forum.xojo.com/u/David_Cox)\
**Replies:** 2\
**Last updated:** [May 8, 2025, 11:45am UTC](https://forum.xojo.com/t/xojo-is-able-to-send-texts-directly-via-bulksms-com/85277 "2025-05-08T11:45:02Z")

</div>

Should you need to send SMS texts from your Xojo app, I have been able to send them successfully with BulkSMS.com. I plan to support other services in the future. If you’re interested I have added the code below: I hav…

---

## [Proportional Scrollbar Handles Demo](https://forum.xojo.com/t/proportional-scrollbar-handles-demo/75979)

<div class="topic-metadata">

**Author:** [@John\_Balestrieri](https://forum.xojo.com/u/John_Balestrieri)\
**Replies:** 6\
**Last updated:** [May 1, 2025, 11:36pm UTC](https://forum.xojo.com/t/proportional-scrollbar-handles-demo/75979 "2025-05-01T23:36:29Z")

</div>

I admit that I’ve struggled with scrollbars since the Crossbasic days: Specifically, how to get the scrollbar handle to be proportional to the content height. Facing the problem again, I didn’t find the ideal solution in…

---

## [Best Practice for Currency Input in a TextField?](https://forum.xojo.com/t/best-practice-for-currency-input-in-a-textfield/85192)

<div class="topic-metadata">

**Author:** [@FABRICE\_GARCIA](https://forum.xojo.com/u/FABRICE_GARCIA)\
**Replies:** 7\
**Last updated:** [May 1, 2025, 4:25pm UTC](https://forum.xojo.com/t/best-practice-for-currency-input-in-a-textfield/85192 "2025-05-01T16:25:29Z")

</div>

Hi everyone, I’m exploring the most reliable way to handle currency input in a TextField. I’ve built a custom solution that filters keystrokes and formats the number as you type. However, I’m not convinced by using For…

---

## [Kaleidoscope - My first open source on Github](https://forum.xojo.com/t/kaleidoscope-my-first-open-source-on-github/85175)

<div class="topic-metadata">

**Author:** [@Kevin\_Cary-Grimm](https://forum.xojo.com/u/Kevin_Cary-Grimm)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 3:57am UTC](https://forum.xojo.com/t/kaleidoscope-my-first-open-source-on-github/85175 "2025-04-30T03:57:08Z")

</div>

I had an Javascript / Html page that did an interactive Kaleidescape. For fun I built it as pure Xojo code and published it as open source on Github. The KCG Kaleidoscope program interacts with your mouse movement to ch…

---

## [4D to Xojo Converter open source project is now available](https://forum.xojo.com/t/4d-to-xojo-converter-open-source-project-is-now-available/85005)

<div class="topic-metadata">

**Author:** [@Geoff\_Perlman](https://forum.xojo.com/u/Geoff_Perlman)\
**Replies:** 0\
**Last updated:** [April 15, 2025, 3:24pm UTC](https://forum.xojo.com/t/4d-to-xojo-converter-open-source-project-is-now-available/85005 "2025-04-15T15:24:03Z")

</div>

I created a Xojo project to convert 4D forms to Xojo windows. I’ve made it open source so that others can contribute to it. You can find the source here. Right now it converts only forms but eventually it could convert o…

---

## [Hierarchical Listbox TreeView Module for Xojo](https://forum.xojo.com/t/hierarchical-listbox-treeview-module-for-xojo/84976)

<div class="topic-metadata">

**Author:** [@FABRICE\_GARCIA](https://forum.xojo.com/u/FABRICE_GARCIA)\
**Replies:** 8\
**Last updated:** [April 14, 2025, 6:44pm UTC](https://forum.xojo.com/t/hierarchical-listbox-treeview-module-for-xojo/84976 "2025-04-14T18:44:14Z")

</div>

Hello Xojo community! I’ve just released a new open-source project on GitHub that I think many of you will find useful — especially if you’re working with hierarchical data or want to integrate a TreeView-style UI into …

[Next page](https://forum.xojo.com/c/code-sharing/62.md?page=1)
