The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by malin]

i am unable to get preferences to work. here is what i have done:

// pfc_open for n_cst_tm_appmanager inherited from n_cst_appmanager
this.of_setuserinifile( "timemgmu.ini" )

// pfc_preopen for w_tm_frame inherited from w_frame
this.of_SetPreference(TRUE)
this.inv_preference.of_setwindow(TRUE)
this.inv_preference.of_settoolbars(TRUE)

question 1.
the online books say "If you enable the preference service, windows descended
from w_master save and restore settings automatically." this doesn't happen.
any ideas?

question 2.
tried this.inv_preference.of_Save() in pfc_close (w_tm_frame inherited from
w_frame) but was surprised when debugging disclosed that my pfc_closed script
was never invoked!!! any ideas as to why pfc_closed was not called?

note: also, never in all of my testing is the ini file updated with prefernce
info.