Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
Getting Text Width in EDC
I want to slide text in my application, for that I need to know the width of the text I am setting, So that I can have uniform, text sliding speed for long and short text .
I tried using the Script
script{
public myX, myY, myW, myH;
public slide_to_end_anim(val, Float:pos) {
set_tween_state(PART:”elm.text”, pos, “end”, 0.0, “begin”, 0.0);
}
public GetTextExtent() {
new Float:time;
get_geometry(PART:”elm.text”, myX, myY, myW, myH);
time = SPEED/myW;
anim(time, “my_anim”, 1);
}
}
but get_geometry() is giving the width of the text container and not of the text.
Please guide, is there any Embryo API, or any other way, I can get the text width.
Thanks in advance.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio