I’ve made errors while building a new interface window

Error #1:
For unknow reason (new default ?), I add 6 DesktopCanvas and 6 DesktopLabels.

Then I wanted to add Events and noticed red around (I think) my 12 Controls: the scrope is Private.

Unfortunately, I had to select each Control and change its Scope instead of selectin all 12 Controls and change the Scope all at once.

  1. When I add code in the first DesktopCanvas, the name of the Window I want to open… no autocomplete.
    Why ?
    Just because it was not the correct project !
    Copy the just added window, and clicked in the current wMain to change the name to wMain_OLD.

THIS DOES NOT WORKS LIKE THAT, one have to go to the Properties pane to rename a Control.

Then I paste the new wMain window and all seems clear right now.
Remind to self:
“Emile, this is as is since 2013, date we see the first Xojo !”
Yes, I am old.

What do you think about these ? Worth a set of Features requests ?

1 Like

You can set the scope for multiple objects by selecting them then right-clicking one of them in the navigator. The inspector panel has always (to my recollection) omitted the scope on multiple selection.

The rest of what you said doesn’t make any sense to me. You were doing something wrong, figured out you were doing something wrong, corrected the wrong thing and it works…but you want to open a case?

4 Likes

Thank you Anthony,

I will follow your advice, but I am sure I’ve tested that (I can be wrong) and see nothing, so I have changed the scope 12 times.

The other error (Unable to change the name of a window in the Navigation pane) is my error, believing in a non existent feature.
This is one of the numarous small annoyances the IDE suffer from in my 5 y/o Xojo installation.

NB: I use Tahoe 26.6 and Xojo 26r1.2 *

  • Doh, I do not updated to 2026r2 :frowning:

I was curious, and checked. You can see Anthony is right: I do not saw the Scope entry (and I had my glasses in my face and a magnifying glass on hand to be sure…

I am old, sorry.

Maybe one of your controls was expanded with the event handlers.
In this case there is no menu item for the scope.

2 Likes

I only just figured this out (right-clicking in the IDE) myself as well.

I always try many things including Right-Click, but due to environments and age (>70), sometimes I forget something (a button at the window’s bottom, alone, while the window’s information are at its top - height first quarter)…

Thank you for your help.

1 Like

I really have a problem: at first look I read the text, then watch the image (wrongly): I do not realize the Pressed Event of Button1, but I see non existent Scope Menu Item :wink:
On second look, I even saw the red buttons.

BTW: your screen shot Stefan (from macOS) is important: it is showing the selected colors in macOS IDE: green.
This feature - apparently - does not exists in the two other platforms (Linux, Windows).
Some people one day does not understand when I wrote about the Green Selection Color in the Navigator… imagine my surprise !

I love Apple Notes for keeping track of Xojo tricks, tips, code, and making things work.

You can add text, code, images, video and hashtags to a Note, and it’s searchable.
Below is an image of one note, with a video below it. I used to use “Insert Image” in the IDE and then drag each size, one at a time into the slots on the image.

Now I just drag the 1X size into the sidebar and the 2X and 3X are automatically added to a new image.

Itis a good idea, but years ago (30 ? 40 ?), I took notes on paper, then one day I realized that I never read them, so I stopped that.

Enlarging an icon 2 and 3 times is a bad idea (for the result).
And since I create my icons far greater than the needed size, I reduce it to 3x, 2x and 1x sizes in my own project.
But that’s me.

Regards

I don’t enlarge images when adding to Xojo. I create 1X, 2X, and 3X images.
if you name the files like below (Leaving off the @1X on the first file), and drag the first file onto the Xojo IDE, Xojo will create an Image and populate it with the three different size/resolution images.

Split Shift.png
Split Shift@2x.png
Split Shift@3x.png

Video Demonstrating adding multiple resolutions of the same image to the Xojo IDE in a single step

It’s OK, Emile, it happens to all of us, and we still love you :slight_smile:

1 Like

I goofed (misread the sentence), sorry.

“Thanks God It’s Friday”