Xojo Window FrameType by Platform?

I want to do something that I THINK could have been done in REALBasic way back when IIRC, but I don’t see way to do that now.

While I never used it in the past I know that for some fields in the inspector on can use a constant (which can be set to be different by platform) by putting #constantName in the inspector for a value…

IIRC in ancient days on would put the number for the frame type in the inspector so one COULD use the #Constant set frame type by platform, instead of needing two separate windows. As it is a design time setting, setting it in the Inspector is the only option.

But now the inspector only seems to let you pick from an enum… though the docs still list teh frame type numbers.

At first glance that seems to be the best/right way… It would be best for a single platform product… but that is not what Xojo is…

So am I missing something or is there still a way to use a constant for frame type somehow?

BTW What I want to do is us a sheet on mac OS and a plain box (or shadow box) on Windows (where I will show it modal and place it where the sheet would appear if it was on a Mac- so I don’t want it to be a Movable Modal that Xojo defaults to on Non Mac OSes)

BTW I am not asking for a workaround… I know that the workaround is using 2 windows but putting all the controls/code in a container control so at least that does not need to be duplicated.

If it matters, although I have a current licence, I am using 2019 r1.1 as I am sticking with API 1 for now for coding.


Yeah the change to the current inspector removed the ability to use constants for a lot of things :frowning:
This is one

SOME, like colors & booleans, can be set with a constant by right clicking and selecting “assign constant”

Enums, like frame type, cant :frowning:

Add that one to the pile of coulda, shoulda regrets I have

But at least in 2019r1.1 for colors, once you do that you can’t go back to being able to SEE the color. Once you assign a constant, I don’t see a way to get back to the color view… which I find I often want to do AFTER I assign the constant. It either needs to do that, or ideally show both IMO!

OK, now I know whom to blame! :wink:


Feature request :stuck_out_tongue:

Oh hell no
I didnt take that stuff OUT
That shall remain “some other nameless person”
It happened way back when Xojo first came out with the redesigned IDE which had the “pretty” inspector

I just never added the same “right click to assign a constant” to enums
Coulda, shoulda, woulda but …

Then I am pretty sure i know who did it! I know he meant well…

I know you can’t can’t talk about their internal processes, so you don’t need to reply…

Things like that are why specs for even seemly simple stuff need to be drawn up and reviewed by all the engineers and maybe even submitted to a decent sized “alpha” group (need more eyes than just MVPs IMO) for comments…

It’s always harder to see what is not there or missing, then what is there.

Anyone can get tunnel vision about what they are working on and not realize what options their designs PRECLUDE - both for existing and new stuff…

But I know that will never happen.

  • Karen