Instruments with custom Images

Hi,

is there a way to get images for background/indicators instead of using the brush function?
And would serialization still work with it?

The analog clock (the round one) in Instrument Demo does that.

You’re not using serialization for persistent storage, are you? Note we really advise against that.

Looks considerably better with a new clock png file:

[QUOTE=Jake]
You’re not using serialization for persistent storage, are you? Note we really advise against that.[/quote]

Hmm, yes I do… Whats the problem with it?

From the User Guide:

Persistence and Serialization
The built-in GoDocument and GoObject classes are Serializable. You should use serialization for short-term persistence and communication using the same version of the Go library. Northwoods does not recommend using serialization for long-term persistence to save diagrams that the user has edited. Besides the incompatibilities that arise when you change your application, serialized documents often contain much information that really should not be stored, because they describe the visual representation of the information rather than the abstract information that really matters.


The incompatibilities are really the big issue. Imagine going to your boss and asking if it’s ok if V2 of your app can’t read V1 files… you won’t be popular that day.