Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Persitence in Windows  (Read 1034 times)

0 Members and 1 Guest are viewing this topic.

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 182
    • View Profile
Persitence in Windows
« on: March 23, 2012, 12:51:57 PM »

Quick question, if I change a value - say the sprite image in a window control, unload the window, and subsequently reload the window, does the image revert to the orginal, or will the changed image persist in the same way that if I change an image in a scene node it will persist
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5671
    • View Profile
    • Dead:Code Site
Re: Persitence in Windows
« Reply #1 on: March 23, 2012, 05:37:12 PM »

Windows don't remember their state when unloaded/reloaded. This is typically not needed (or desirable) so if you need such behavior, you'll need to implement it yourself.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 182
    • View Profile
Re: Persitence in Windows
« Reply #2 on: March 24, 2012, 10:39:27 AM »

I need to remember the state of certain window controls, I have managed it through the visible non visible options which seems to work ok, I guess the other way of doing it is to store the state values in a series of globals that are checked each time the window is loaded.
Logged
 

Page created in 0.15 seconds with 17 queries.