Jump to content

Recommended Posts

Posted

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 ?

 

Posted

Can you post a screenshot that shows the problem?

Also, there are the high-level calls gwinHide() and gwinShow() which you should use. gwinSetVisible() is fine too though, but check the last parameter.
You should definitely not manually touch the flags.

  • 2 weeks later...
Posted

If you are directly drawing using GDISP calls, or manipulating GWIN flags directly, or having to understand the drawing lock then you are definitely approaching the problem incorrectly. 

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...