is it possible to set the form properties at runtime (eg font size).
SalFontSet at SAM_Create is not the solution because there is a different behaviour if I set the font size at runtime at SAM_Create or I set the font size in the property editor end run the application.
- Founder/Site Admin
- Posts: 2822
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
What is the different behavior?
as you can see in the sample. If I set the font size of a window in the property editor the tab bar will be positioned at the right y location. When I set the font size of a form at SAM_Create the tab bar has the right size but a wrong y location. Don't know if this is a bug.
It seems that your apt is an TD6.3 file.
I see the problem you are describing in TD6.3, the funny thing is that if I start the repro in TD7.0 or TD7.1 TD just silently dies on both versions.
Anybody else seeing this also?
If I use SalFontGet and then SalFontSet everything works as it should, there is no difference between the font set in properties and with SalFontSet.
So it seems that SalFontSet doesn't like the STRING_Null in font name.
I tried your sample with 7.0.3.
In SalSetFont(..) I had to set the real FontName - with STRING_Null the application died.
Hight of the window was a bit higher with On SAM_Create SalFontSet(..) - maybe 10 px or so.
But tabbar and all other controls were correct.
So it seems to be a bug in TD6.3 which is fixed in higher versions.
[ frevel & fey ] Software-System GmbH
Who is online
Users browsing this forum: [Ccbot] and 0 guests