FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: Screen Designer 4 - Image property change on button click  (Read 671 times)

jberkhout

  • Newbie
  • *
  • Posts: 31
    • View Profile
Screen Designer 4 - Image property change on button click
« 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.
Logged