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

forum.cdk (2000-2005) & forum.td.cdk (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

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

Post by NewsgroupServer » 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

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

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

Post by NewsgroupServer » 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: Ccbot [Crawler] and 0 guests