Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3866

Windows, properties, and the inspector behavior

$
0
0

This is about an issue I have solved (sort of) myself; I’m just wondering whether what I’ve observed was to be expected or whether it might be a bug …

I have defined a class WindowPlus as a subclass of DesktopWindow and added a number of properties. Under ‘Inspector behavior’ I’ve added a subset of those properties to the inspector pane. Now when I create a new window in a project and set its Super to WindowPlus my properties do show up in the inspector pane and I can enter their intended values.

However, when I created instances of such a window the values specified in the inspector were ignored; they still had the default values as specified in the original property declarations instead.

I had tried various things to no avail until out of desperation I resorted to remove the default values from the property declarations altogether – and lo and behold that worked. The values entered in the inspector were no longer ignored.

Is this supposed to work like this – i.e. that you may not specify default values for properties you want to set in the inspector?

10 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3866

Trending Articles