Jump to content

Hide button


Fabien Comte

Recommended Posts

Hello, 

I want to hide a button before animate another one.

That doesn't work (strange colors at old position):

gwinSetVisible(ghPushbutton1, FALSE);
GWidgetObject * temp_control = ((GWidgetObject *) ghPushbutton1);
gdispGFillArea(temp_control->g.display, temp_control->g.x - border, temp_control->g.y - border, temp_control->g.width + 2 * border, temp_control->g.height + 2 * border, GFX_BLACK);

That works (hidden but can be clicked):

GWidgetObject * temp_control = ((GWidgetObject *) ghPushbutton1);
gdispGFillArea(temp_control->g.display, temp_control->g.x - border, temp_control->g.y - border, temp_control->g.width + 2 * border, temp_control->g.height + 2 * border, GFX_BLACK);

It looks like if set invisible launched a background task.

Do I missed something ?

 

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...