How to get the value behind the "class default"/"default"

forum.cdk (1998-2005) & forum.td.cdk (2005-2010)
thomas.uttendorfer
Site Admin
Site Admin
Germany
Posts: 305
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

How to get the value behind the "class default"/"default"

Post by thomas.uttendorfer » 14 Aug 2009, 15:01

 Posted by:  Thomas Uttendorfer 

Hi folks,

we are new to CDK and have a newbee-question:
1) When we use
cWindow.GetAttributeX( CDK_IT_FontSize )
for an item we get "default" although the item is set to "class default".
Why is that so?

2) If we get "default" or (hopefully) "class default":
How can we determin the value behind the default?

Kind regards
Thomas

thomas.uttendorfer
Site Admin
Site Admin
Germany
Posts: 305
Joined: 05 Mar 2017, 17:19
Location: Munich Germany

Re: How to get the value behind the "class default"/"default"

Post by thomas.uttendorfer » 19 Aug 2009, 15:13

 Posted by:  Thomas Uttendorfer 

Hi folks,
we found the answer in another case ("How to display form windows and cotrols..." in this forum):

Just call RefreshLibraries() after loading the .app-file.
Then we get the real fontname, width, height, etc.
Only in some cases we got "Default" (for FontName) or "None" (for FontEnhancement)
- which we replaced "manually" with "MS Sans Serif" or 0.

Regards Thomas

Hi folks,

we are new to CDK and have a newbee-question:
1) When we use
cWindow.GetAttributeX( CDK_IT_FontSize )
for an item we get "default" although the item is set to "class default".
Why is that so?

2) If we get "default" or (hopefully) "class default":
How can we determin the value behind the default?

Kind regards
Thomas

Return to “td.cdk”

Who is online

Users browsing this forum: No registered users and 0 guests