Thanks for your answer,
looks like this will solve my problem.
By the way, if I use the registry to store this information,
what will happen if I uninstall the application?
I guess those entries will remain in the registry, correct?
Is there a way to automatically remove them when the application is
uninstalled?
Best Regards,
Marco
"Al S" a écrit dans le message de
news:50650000000500000086230100-1042324653000@exchange.ni.com...
> In your QuitCallback (or whatever you call your exit function), use
> GetPanelAttribute to read the height, width, left, and top of the
> panel. Use the Windows Registry or an INI file to store those values.
> When your program starts, read the Registry or the INI file to get
> those values, then SetPanelAttribute to s
et those values.
> INI file functions are included in the function panel
> .\CVI\toolslib\toolbox\inifile.fp. There's an example in
> .\CVI\samples\toolslib\ini.prj.
> Registry functions are included in the function panel
> .\CVI\toolslib\toolbox\toolbox.fp. There's an example in
> .\CVI\samples\apps\regadd\regadd.prj.
> To temporarily access functions in a function panel, on the CVI menu,
> goto Instrument >> Load. To permanently add them to your project,
> goto Edit >> Add Files to Project >> Instrument (*.fp).
> You may also want to include a checkbox or a command button to restore
> defaults and have some hard-coded defaults in your code.