Quantcast
Channel: Xojo Programming Forum - Latest topics
Browsing all 3600 articles
Browse latest View live

Should preemptive threads use 100% CPU?

Trying out preemptive threads in a console app, and it no matter how much sleep time I give the threads or the main event loop, the process uses exactly 100% CPU in activity monitor. Is this normal? I...

View Article


Image may be NSFW.
Clik here to view.

Xojo2024R3: Problem saving sorted classes in IDE

I have been working for some time on conversion of inherited code for web app from Xojo2018 to Xojo2024. One of the problems that I see has to do with IDE I think. The app has folder called FileDefs...

View Article


Button Focus Ring -- how to move it to another button?

Hi. I have an app with two buttons. The second button is disabled to start, and a user sees a focus ring around the button they have to use to enter their data.They can just hit Enter/Return and it...

View Article

Image may be NSFW.
Clik here to view.

Candle Flame

Back in around the beginning of 2023 I started a project but ended up on the “back burner” then kind of forgot about it. D’oh Any way its was my attempt at making a flame or flickering candle flame...

View Article

Tool tip when hovering over a popup menu - while hovering and without making...

Hello all, Does anyone have an idea how to add a tooltip to a webpopmenu? I would like to add a different tooltip for each popupmenu item. Adding one to the object itself is easy. However, I want to...

View Article


App quit exception when a thread using a 3rd party API had been used

So I am in the process of moving previous console helper classes into preemptive threaded ones. These classes address measurement instruments; sometimes via Serial, sometimes through supplier APIs....

View Article

Image may be NSFW.
Clik here to view.

CoreAudioMBS returns code -1

Hi, I need to get the volume of the default sound output on iOS. GetSoundVolumeMBS raises an exception (not supported on iOS), although the documentation says iOS is supported (). So I’m trying...

View Article

Why does Session.Event.Closing always fire when appQuiting = False?

Why does Session.Event.Closing always fire when appQuiting = False? It appears to do this spontaneously. Tim 2 posts - 2 participants Read full topic

View Article


Launch a program from console

Quick question: Once upon a time you could launch a program with something like var f as folderitem f = SpecialFolder.Documents.Child(“TheProgramFolder”).Child(“MySpecialProgram”).Launch. This option...

View Article


Image may be NSFW.
Clik here to view.

The layout locking of web controls does not work on phone browsers

These web controls (webContainers) has the lockBotton=true and his bottom border is on the bottom of the design webpage, but these bottom parts are putted on the middle of the page and not on bottom...

View Article

Image may be NSFW.
Clik here to view.

Weirdest error I’ve seen so far in Xojo

What’s going on here? 4 posts - 2 participants Read full topic

View Article

Converting to preemtive threads

Before converting the functions in all classes (60) using preemptive threading I would like to be sure if the conversion method is correct. Old features : var result as boolean MSMSemaphore.signal Try...

View Article

Image may be NSFW.
Clik here to view.

Shape coordenates

Is there a reason why X,Y coordinates on 2D objects are the object center and in Graphics the X, Y are the coordinates of the top-left corner? Canvas 1 Sub Paint(g As Graphics, areas() As Rect)...

View Article


Limit for MP3 Files In A Project

My app will utilize 10,860 mp3 files. Is it feasible to drag these into the project or should they be linked from another location? Thanks! 6 posts - 3 participants Read full topic

View Article

Preemptive Threads and Singletons

Setting a class up as a singleton is not uncommon: Shared Function SharedInstance() As MyClass If mSharedInstance Is Nil Then mSharedInstance = New MyClass End If Return mSharedInstance End Function...

View Article


Expected String() but got Variant()

Good afternoon (o; I have a JSON backend where I get visit status from our online shop system. As a test I have set up a simple DesktopListBox with four columns. So when the JSON is returned and HTTP...

View Article

DBKit bug workaround

If you place a non-user interface control on a window using DBKit, you’ll get an IllegalCastException at runtime when that window is opened. It’s fixed for the next beta but in the meantime, replace...

View Article


DynaPDF Header & Footer

Does anyone have an example of adding headers to a PDF file with DynaPDF? 4 posts - 2 participants Read full topic

View Article

News from the MBS Xojo Plugins Version 24.4

In this article I want to introduce you the new functionalities from the MBS Xojo Plugins in version 24.4. ZXing We had zxing classes in our plugins to recognize barcodes for many years. The older...

View Article

System.Speak on iOS - how to stop it from speaking?

I am wanting to include some text-to-speech for my mobile users. I am testing out the System.Speak built-in function. This will work, but I cannot get the system to stop speaking until it is finished....

View Article
Browsing all 3600 articles
Browse latest View live