$SETTING and a not associated value setting | Uniface 9 | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
$SETTING and a not associated value setting
10 Apr 2018
6:25 pm
Avatar
fearandir
Member
Forum Posts: 70
Member Since:
07 Nov 2014
sp_UserOfflineSmall Offline

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

10 Apr 2018
7:04 pm
Avatar
diseli
Admin
Forum Posts: 967
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

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

11 Apr 2018
1:25 pm
Avatar
fearandir
Member
Forum Posts: 70
Member Since:
07 Nov 2014
sp_UserOfflineSmall Offline

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?

11 Apr 2018
2:32 pm
Avatar
diseli
Admin
Forum Posts: 967
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

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

11 Apr 2018
3:02 pm
Avatar
fearandir
Member
Forum Posts: 70
Member Since:
07 Nov 2014
sp_UserOfflineSmall Offline

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

11 Apr 2018
4:09 pm
Avatar
diseli
Admin
Forum Posts: 967
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

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

11 Apr 2018
5:25 pm
Avatar
fearandir
Member
Forum Posts: 70
Member Since:
07 Nov 2014
sp_UserOfflineSmall Offline

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

12 Apr 2018
11:17 am
Avatar
diseli
Admin
Forum Posts: 967
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

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

23 Apr 2018
1:59 pm
Avatar
diseli
Admin
Forum Posts: 967
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online: Iain Sharp, tommyb42
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1788

Iain Sharp: 654

Theo Neeskens: 357

gianni: 312

rogerw: 261

istiller: 252

Knut: 214

lalitpct: 197

Arjen van Vliet: 175

sochaz: 173

Member Stats:

Guest Posters: 3

Members: 8917

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2206

Posts: 9539

Newest Members:

EddieUrict, Waltershago, Phyllisvar, Calvindax, RobinMarttensss, rickqo3, Henryexham, MichaelSew, EROnedieby, christinalf3

Administrators: admin: 23, Adrian Gosbell: 318, diseli: 967, Bob Maier: 3, Nico Peereboom: 77, Michael Rabone: 4, richiet: 406, JanCees: 29