Article Preview
Buy Now
COLUMN
Nonobvious Obvious Stuff
Tips for things that aren't well-documented
Issue: 22.1 (January/February 2024)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 14,931
Starting Page Number: 65
Article Number: 22106
Resource File(s):
project 22106.zip Updated: 2023-12-31 23:51:02
Related Link(s): None
Excerpt of article text...
Every now and then I run into a need to do something in Xojo and discover to my surprise that I don't have the faintest idea how to do it. It's something obvious and yet illusive. And often searching the documentation produces no solution.
Just recently I made a little app to resize images. I have an AppleScript applet that does this, but it's not very flexible and has some weird limitations. I knew I could do something much better in Xojo, though it would be more work. (The applet literally took me two minutes to make with Apple's Automator.)
This was a simple project, so I was shocked when I ran into stumbling blocks that baffled me. These things felt so basic, I was surprised they were difficult to solve.
Drop On Icon
The main thing I wanted that was slightly unusual (for me) is to allow the app icon on the Dock to accept file drops.
Now I've been implementing drag and drop in my apps for years. While I haven't tried anything too fancy or complicated, the basics of it are pretty simple:
...End of Excerpt. Please purchase the magazine to read the full article.