kevin shang Posted May 25, 2017 Report Share Posted May 25, 2017 as the video show , button image gone when move the background container widget. image formart is png, how to fix this? 20170525_172552.mp4 Link to comment Share on other sites More sharing options...
kevin shang Posted May 26, 2017 Author Report Share Posted May 26, 2017 (edited) change the image formart to gif, the problem still exist. I'm using ugfx2.7 git, on ubuntu16.04x64, X driver(for on SDL driver, the main windows not show up) Edited May 26, 2017 by kevin shang Link to comment Share on other sites More sharing options...
inmarket Posted May 26, 2017 Report Share Posted May 26, 2017 Part 1: workaround... After moving the container do a gwinRedraw on your lightbulb. Part 2: fix... It is difficult to tell exactly what is going on without suitable source code. Please write the smallest program you can that demonstrates this problem, attach it in a zip to this forum topic and we will try and work out what is going on. I suspect it is either related to a partial redraw optimisation or alternatively the move code (which is not well tested as it is a less commonly performed operation) Link to comment Share on other sites More sharing options...
kevin shang Posted May 26, 2017 Author Report Share Posted May 26, 2017 (edited) there is no the problem on moving a image widget, which just on moving a button widget with image custom draw. what i am doing is: place a container window and place some button widget as it's child, then move the container, widgets with normal draw are work fine ,only the button with image draw not work well. Edited May 26, 2017 by kevin shang Link to comment Share on other sites More sharing options...
kevin shang Posted May 26, 2017 Author Report Share Posted May 26, 2017 problem fixed, it's my fault, change the img in other place. Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted May 26, 2017 Report Share Posted May 26, 2017 Glad to hear that you managed to track down and fix the issue And: Welcome to the µGFX community! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now