Questions tagged [xojo]

Xojo is a cross-platform development tool that creates apps for macOS, Windows, Linux, Raspberry Pi, iOS and the web.

Filter by
Sorted by
Tagged with
0 votes
1 answer
101 views

FreeType error: FT_LOAD_GLYPH returns 140 with Brush Script MT font on MacOS

I have a program that utilizes the Freetype library to draw glyphs on screen. For some reason, FT_LOAD_GLYPH is returning a value of 140 when the Brush Script MT font file is loaded and the code is ...
Shem S's user avatar
  • 1
-4 votes
2 answers
114 views

OOP fundamentals: Mixing Superclass and subclass methods

Using two classes, a baseclass called Super and a subclass called Sub each have two instance-methods with the exact same names (called m1 and m2). At runtime an instance of Sub is created and Sub....
Jan Verrept's user avatar
0 votes
1 answer
123 views

Xojo HTMLviewer showing blank page for OAuth2.0 login

I'm trying to set up an OAuth2.0 flow for ORCID with Xojo. I found a sample project on github for Facebook and modified the code for the URL and ClientKey I set up with ORCID. When I use the same URL ...
djoii's user avatar
  • 1
0 votes
2 answers
118 views

When an if case is true, it should run another if case

I'm programming in Xojo and I want my computer to first run an if case and if that case is true, it should run another if case. How can I do that with Xojo ?
Tamiris Ayasli's user avatar
0 votes
1 answer
132 views

Random background change in Xojo

I've tried to create a button in Xojo, so every time I press it the background color should randomly change. The name of my window is just Window1. I can't figure out how to do it. I would appreciate ...
Tamiris Ayasli's user avatar
0 votes
1 answer
77 views

Xojo crashes when selecting page setup or print from file menue

I'm new to both Linux and Xojo. I have been very impressed with Xojo until now. I'm running it on Linux Mint, 20.2 64 bit. Same error on Xojo 2.1, 3.0, and 3.1. On a clean install of Linux and Xojo, ...
KingArthur's user avatar
0 votes
1 answer
294 views

Upload file to Google Drive from web file chooser using chilkat

I am developing a web application in Xojo and I use the Chilkat plugin to manage the Google Drive cloud but I am a bit lost with uploading files to the Google cloud with this plugin. In my web ...
Wardiam's user avatar
  • 157
1 vote
2 answers
523 views

How To Update Xojo Objects From HTML/Javascript?

I am working on a Google map web application under Xojo. The map has a draggable marker that updates the values of latitude and longitude textboxes. Since the UI for mapping is entirely made with HTML/...
John's user avatar
  • 11
1 vote
1 answer
590 views

VB.Net Parse JSON Array into Dictionary for Key:Value pairs to achieve same result as Xojo Code, (example)

I need to duplicate what I can do in Xojo in VB.Net. THis will be for custom Code on Kodak Rules Based Automation that uses embedded VB.Net. How do I make VB.net code do the same thing that the Xojo ...
TomD's user avatar
  • 21
1 vote
0 answers
60 views

Launch multiple HTMLViewer Controls isolated

I'd like to launch multiple HTMLViewer controls. Each should be manage its own cookie storage. If HTMLViewer_1 is already logged in on a site, e.g. HTMLViewer_2 should be able to log in using another ...
SteAp's user avatar
  • 11.9k
1 vote
1 answer
104 views

Swift Process() and Xojo Shell

A question for someone who speaks both Swift and Xojo… As shell objects in Xojo can be run both synchronously and asynchronously, how can a Swift Process() be run the same way? With Xojo I can run a ...
psb's user avatar
  • 107
1 vote
1 answer
377 views

FASTEST way to find and count files recursively in a directory

I'm building a small program to compare file contents of two directories. These directories SHOULD mirror each other but that may not be the case if someone forgot to copy files to the second ...
Michael's user avatar
  • 111
1 vote
1 answer
85 views

Translating JS crypto.createHmac to Xojo Crypto.HMAC

I am trying to translate this block in Javascript: const crypto = require('crypto'), shared_key = 'kw4qSnpSwXzgiv5yxYpZZmFEd9QAeiKTQ6OuyMja', signing_string = 'licenseSpring\ndate: Tue, 07 Jun ...
AdamG's user avatar
  • 2,590
2 votes
0 answers
134 views

How can I use the OpenCV library with Xojo?

I'm trying to get OpenCV to work with Xojo. I've downloaded the OpenCV folder for Xojo and followed the 'Getting Started' instructions here, where I copy the OpenCVX file (not folder as stated in the ...
awyr_agored's user avatar
1 vote
1 answer
354 views

Xojo Type mismatch error. Expected String, but got Boolean

(I started learning about arrays today.) Edit: I realized the = is apperently causing the error because it's seen as a "compare if equal" vs "assign this". i don't see which part ...
Moirae's user avatar
  • 21
1 vote
0 answers
88 views

Is there a method in Xojo to not duplicate the same rows?

I did this grid in Xojo. The problem is that it duplicates the same rows as before even if I go out and back. That's the original table with only 3 records: Then I made a method to add rows: Dim i As ...
Raffaele Scardamaglia's user avatar
4 votes
3 answers
157 views

Can someone help deconstruct this terse Java function into plain English?

I'm trying to port the PriorityQueue class from the OpenJDK implementation to another language (Xojo) that doesn't have a similar data structure. I'm really struggling to break down the following ...
Garry Pettet's user avatar
  • 8,128
1 vote
2 answers
3k views

Problems creating a temporary table in mysql

I want to create a stored procedure in Mysql that removes a certain temporary table (if it exists) and then creates this temporary table in the database 'prs1'. The procedure that I have created is ...
Wardiam's user avatar
  • 157
2 votes
1 answer
265 views

OAuth2 integration with Xero using Xojo and Chilkat

The old Chilkat forum appears to have moved here. For years I've had Chilkat's OAuth1 working fine for integration with Xero (from Xojo). Now Xero are replacing OAuth1 with OAuth2. Xero say that once ...
Robin Craig's user avatar
1 vote
2 answers
107 views

Can someone unpack this very terse Java function into a more verbose example?

I'm trying to port this Java tutorial to Xojo. I'm struggling to unpack the Set function below because, whilst short and elegant, it crams a lot of conversions into a small space and I'm not sure if I'...
Garry Pettet's user avatar
  • 8,128
0 votes
1 answer
27 views

How to track down a Sound NilException error

Looked around and did not find an answer to this: I am trying to play a Sound file, but am missing something in the process... I already have loaded a FolderItem sound file succesfully, but I can't ...
NahuBergamo's user avatar
1 vote
1 answer
76 views

When in a conditional does this assignment occur?

I am porting some Java code to Xojo which doesn't have the same language constructs as Java does. I have a bug in the port and I think I've narrowed it down to this bit of Java code: int maxIndex = ...
Garry Pettet's user avatar
  • 8,128
0 votes
1 answer
333 views

How to codesign and notarize an Os X app?

How to codesign and notarize an Os X app? I'm using Xojo 2016r2.
user10053673's user avatar
1 vote
0 answers
206 views

Leaflet dragging display issue

I have an application which displays several layers on a Leaflet map. I create GeoJSONS from a database, then create layers from those GeoJSON and then i put my layers on LayerGroups. On zoom/dezoom, ...
amar's user avatar
  • 11
0 votes
1 answer
102 views

Xojo Count Words in HTML - Remove Tags & Other Unwanted Content That May Skew Count?

I've inserted some temporary inside the action event of a timer which converts markdown to html as you type the markdown. This event places the html in the variable mHTML. I wanting to count the ...
JFS's user avatar
  • 1
1 vote
1 answer
115 views

How does Xojo UI rendering for desktop work?

I was wondering if anyone could provide information about how Xojo renders UI for the desktop? Is Xojo using bindings to make OS specific UI controls available (much like wxWindows)? Or has Xojo ...
gevik's user avatar
  • 3,207
1 vote
1 answer
68 views

json issues with Arduino and Xojo

I'm making an application with xojo where you set the value of 3 sliders, which send the values as strings with json through the serial monitor, and I'm receiving the json values with Arduino to move ...
Milo_666's user avatar
  • 121
2 votes
0 answers
205 views

Getting "Nil Object Exception" while calling C# DLL method from XOJO

I am trying to access C# method by using C# DLL from XOJO Tool. I have follow the procedure Jim have define in the following post: https://forum.xojo.com/7079-using-c-classes-in-xojo and everything ...
Ammad Ahmed's user avatar
1 vote
1 answer
101 views

How to replace these extended ascii codes?

I am opening up .txt files but when they are loaded on Xojo weird characters like these (’ , â€ک) show up. I've tried DefineEncoding and ConvertEncoding but it still doesn't seem to work. output....
Ayah Al-Harthy's user avatar
1 vote
0 answers
81 views

Xojo Word Automation on Mac

So, I'm trying to access Xojo's office automation plugins but they're only accessible on windows. Is there anyway I could still use Xojo's office automation plugins via Applescript?
Ayah Al-Harthy's user avatar
1 vote
1 answer
956 views

Changing background color of a listbox's cell

Working on a desktop application and having a probably silly problem that's still managing to driving me mad. I have a listbox that gets its rows from a dynamic source. I'm trying to change the ...
Fenr_it's user avatar
  • 73
1 vote
1 answer
83 views

Why is Microsoft Office Automation only available on Windows?

I'm building a Xojo desktop app and I'm trying to figure out if I can include a Word doc on my Xojo Window. However, I'm reading the documentation about Microsoft Office Automation and it seems like ...
Ayah Al-Harthy's user avatar
1 vote
2 answers
152 views

Xojo MacOs Vs. Windows? EndOFLine issue

So I created a program on Xojo(MacOS) that parses paragraphs using EndofLine. However, when I run it on a Windows operating system it doesn't parse it at all. Does Window operating systems recognize ...
Ayah Al-Harthy's user avatar
1 vote
1 answer
314 views

TabPanel and scrolling

I'm pretty new with Xojo and I've stumbled on a roadblock on the desktop project I'm working on. I have a TabPanel that gets populated with custom ContainerControls at runtime (data is fetched from a ...
Fenr_it's user avatar
  • 73
-1 votes
1 answer
90 views

Viewing list from database using Visual Basic in Xojo

Every time I run the application I am presented with this error message and would like to know how I can alter my code so it runs Error details
M.Williams's user avatar
3 votes
1 answer
4k views

Write json to file locally via browser [closed]

I have a requirement which i need some input on, I am using a very outdated version of xojo for a legacy application, the requirement is i need to open a webpage on the users system which isn't ...
Ratan Servegar's user avatar
5 votes
1 answer
618 views

How do JSON parsers encode unicode characters not in the basic multilingual plane?

I'm writing a JSON parser in Xojo. It's working apart from the fact that I can't figure out how to encode and decode unicode strings that are not in the basic multilingual plane (BMP). In other words, ...
Garry Pettet's user avatar
  • 8,128
1 vote
1 answer
381 views

Proper use of libvlc_media_open_cb

I'm trying to use the libvlc_media_new_callbacks function to play media from memory using libvlc. This function expects pointers to four callback functions: Open, Read, Seek, and Close. Declare ...
Andrew Lambert's user avatar
2 votes
1 answer
457 views

Exporting to text in xojo

I want to export data from a listbox, Listbox1.AddRow "001", "Orange", "1.00","Arief" Listbox1.AddRow "001", "Apple", "1.00","Arief" Listbox1.AddRow "001", "Banana", "1.00","Arief" Listbox1....
Rivo's user avatar
  • 21
0 votes
1 answer
124 views

The web Dialog on XOJO web application does not close

In my web application I have opened a web dialog, which has 2 canvas. On this canvas I have drawn a eyeglass lens. The canvas opens properly and the lens is also drawn properly on it, but after that ...
devyani gaikwad's user avatar
1 vote
1 answer
138 views

How to select from table where text box = formula with aggregates (Xojo+ SQLite)

I have a table with columns; Fullname, GroupNo, Tdate, Schedule, Cramount, Dramount, Iamount. I want to select those columns where textbox111.text is greater than formula SUM(Cramount)*26/(SUM(...
Subira Lukumay's user avatar
1 vote
1 answer
215 views

Xojo detect input from 2 inputs with interrupts. (Raspberry Pi)

I have a raspberry pi 3 running a program made in Xojo. My goal is to have two flow sensors which display the amount of water that flows though each sensor on the screen. I have a program that ...
Ben Fricke's user avatar
3 votes
1 answer
788 views

How to draw a Cocoa focus ring without subclassing?

I'd like to draw a proper, modern animated focus ring around a control, which according to Q&A 1785, should be a simple matter of overriding the -drawFocusRingMask and -focusRingMaskBounds ...
Joe Strout's user avatar
  • 2,662
1 vote
1 answer
250 views

Mask missing from HICON on Win10 but not Win7

I am trying to use some system icons such as SIID_DOCNOASSOC and SIID_FOLDER and draw them. I have the problem that while my code works as expected in Windows 7, on Windows 10 the retrieved images ...
Thomas Tempelmann's user avatar
0 votes
1 answer
834 views

What are the compromises with using Xojo for cross platform development? [closed]

Much of the cross-platform development topics on SO seems to be 6 to 9 years old. Anyone have recent experience with Xojo? Can it be used to quickly deploy UI on top of C++ generated linked ...
SMGreenfield's user avatar
  • 1,690
1 vote
1 answer
243 views

What is the translation of this Java method signature in plain English?

I'm porting JBox2D to Xojo. Java is not a language I know well but there are enough similarities to Xojo for this to be the easiest way to port Box2D to it. I am well into the port but I cannot ...
Garry Pettet's user avatar
  • 8,128
4 votes
1 answer
3k views

Windows URL scheme call to running program

I want to trigger an event in my running application and deliver arguments with the call of a URL scheme in Windows 10. I made the following registry entry: HKEY_CLASSES_ROOT alert (Default) = "...
Robert Beier's user avatar
0 votes
1 answer
413 views

Twilio web app notify

I need push notification on mobile webapp (Xojo, iOS+Android), I was thinking to use Twilio Notify Beta but it is not clear to me how it works. Say a user starts the webapp: first time it should bind ...
Roberto Casalegno's user avatar
0 votes
0 answers
130 views

Xojo, MySQL, load data local infile, won't work in Xojo

I am trying to run the "load data local infile" from within a Xojo app. If you don't know Xojo think of it as a Mac version of VB for this purpose. I have no problem running the SQL from Workbench on ...
Duane Mitchell's user avatar
1 vote
0 answers
147 views

Xojo HTMLviewer Raspberry Pi3

I'm developing an app for Windows and raspberry pi using Xojo. I'm relying on the HTMLviewer heavily in places to render web driven content. I have multiple Raspberry Pi 3s, reading the xojo ...
Shawn Taylor's user avatar