Can’t set Button properties with bitmaps got by Image::DecodeN
Can’t set Button properties with bitmaps got by Image::DecodeN
BY 09 Jun 2013Native Application Development
Hello!
I just have encountered a strange situation with my UI application.
I’m developing a UI application with design elements made as a separate PNG files. Thus, I made a form with UI builder, this form contains buttons. Then I set those buttons NormalBackgroundBitmap and PressedBackgroundBitmaps properties with my PNG’s in UI builder. Next, I tried to change this properties form runtime with a code such as
Can’t set Button properties with bitmaps got by Image::DecodeN
Hello!
I just have encountered a strange situation with my UI application.
I’m developing a UI application with design elements made as a separate PNG files. Thus, I made a form with UI builder, this form contains buttons. Then I set those buttons NormalBackgroundBitmap and PressedBackgroundBitmaps properties with my PNG’s in UI builder. Next, I tried to change this properties form runtime with a code such as
And it fails. No errors in log, but the button behavior is like i set a fully transparent PNG, and no button redraw happened.
After some time spent on this I found that:
1. If I load an image with code such as
with the same PNG file (placed by the appropriate path, of course), it works fine, and
2. If I do not set PNG’s for a properties in UI builder, it also works fine.
Tried different PNG’s including taken from SDK samples, result same.
Could somebody explain this? Or it’s simply a bug I found in SDK?
Thanks in advance.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio