$SETTING and a not associated value setting
Author: fearandir@gmail.com (fearandir)
Hi all. Do you know how to set a not associated value setting ussing $setting? I can set a setting that contains a value like $MAX_CACHE_SIZE $setting ("file.asn", "[settings]$MAX_CACHE_SIZE", "INIDATA")="-1" what about $enable_chache_always?. It is a setting that just being present works. Thanks Sergio
8 Comments
Local Administrator
Hi Sergio, A setting without a value should be (AFAIK) the same as if the setting had the value 1 (i.e. it's enabled). E.g.
$enable_cache_always = 1 So this should work:
$setting ("file.asn", "[settings]$enable_cache_always", "INIDATA") = "1" I hope this helps. Kind regards, Daniel Iseli Uniface Support
Author: diseli (daniel.iseli@uniface.com)
Local Administrator
Thanks diseli One more question about $setting I have defined tooltip=utooltip(maxwidth=10;duration=1) under [application] settings. $setting("","application\Tooltip","iniDATA") returns the value $setting("usys","application\tooltip","USYSDATA") returns PROCERR[<UPROCERR_ARGUMENT>] and the tooltip behaviour is not switching. is it something wrong about tooltip setting?
Author: fearandir (fearandir@gmail.com)
Local Administrator
Hi Sergio, You are welcome. It seems that not all settings of the INI-section [application] can be changed at runtime. Sorry. When I check the list of available settings (e.g. '$setting ("USYS", "application\·*", "USYSSETTINGS")') then only the following settings are returned: > logotime > icon > logo256 > logo16 > logo2 If you want to change the tooltiip setting then you need to restart Uniface, I'm afraid. I hope this helps. Daniel
Author: diseli (daniel.iseli@uniface.com)
Local Administrator
Thanks again. Yep, it seems that can not be changed at runtime. But with the ini file modified and restarting Uniface, doesn't work either. The appearance of the tooltips keeps the same way as before. Thanks Sergio
Author: fearandir (fearandir@gmail.com)
Local Administrator
Hi Sergio, It seems that the settings of the Tooltip only allow certain values. When you check the usys.ini (in e.g. \uniface\adm) then you can find the following remark:
; tooltip valid values: maxwidth > 300 && maxwidth < 1024 px, duration > 5 && duration < 20 seconds So, it seems that the values you are trying to set are not valid. Sorry, I should have seen this before. Since the above mentioned values are not documented in the Uniface Library I've asked that the description of the Tooltip settings are updated accordingly. Hope this helps. Daniel
Author: diseli (daniel.iseli@uniface.com)
Local Administrator
Thanks. Just a little remark. The implicit tool tip for tree widget is not affected by this setting. The width always matches the container width. So (in this case) close but no cigar... http://es.tinypic.com/r/f9jaxx/9
Author: fearandir (fearandir@gmail.com)
Local Administrator
Thanks for the info. I'll try to find if this is intended behavior (it probably is) and if the documentation needs to be updated. Will update this topic once I have some news from the lab. Daniel
Author: diseli (daniel.iseli@uniface.com)
Local Administrator
The description for the Tooltip setting has been updated with the patch G415/F214:
"When setting properties for tool tips, minimum and maximum values are applicable. These are now documented, as are the widgets to which they apply." For details see the updated (e.g.) Uniface 9.7 Library: > Getting Started > What's New in Uniface 9 > What's New in Uniface 9.7 > Uniface 9.7: Documentation Updates for Patches and Service Packs: Table for "Uniface 9.7.04, G416: Documentation Updates for Reported Issues" > Uniface Reference > Configuration Settings: Initialization > Tooltip Hope this helps. Daniel
Author: diseli (daniel.iseli@uniface.com)