FTDI Community
General Category => Discussion - Software => Topic started by: jberkhout on June 14, 2018, 03:13:43 PM
-
I'm using EVE Screen Designer for ME813A-WH50C Display and MM900EV1A (FT9xx) MCU.
I have an ESD Image with name “ESD Image 4”.
In a button click event, I would like to change some properties (Width and Height).
I think I need to do something like this, however context could be wrong, both my button and image 4 disappear. What is the correct way of doing this?
ESD_METHOD(MainPage_ESD_Push_Button_3_Pushed, Context = MainPage)
void MainPage_ESD_Push_Button_3_Pushed(MainPage *context)
{
// Change “ESD Image 4””width and height
Ft_Esd_Image *object = &context->ESD_Image_4;
Ft_Esd_Image__Initializer(object);
object->Owner = context;
object->Widget.LocalWidth = 115;
object->Widget.LocalHeight = 35;
}
Any help is much appreciated!
Regards from the Netherlands.