Hello,
My problem is is that I have an area in the window for an image that is sized relative to that window. I want to place a panel below that image a certain distance from the top based on the height of image after resizing the window occurs(on idle event). So is there a way to reposition a panel, say x pixels(the new height of the image after resize) from the top and do this? I've tried doing some things but I get odd results. Or possible other methods?
flipjoebanana
0
Junior Poster in Training
Recommended Answers
Jump to PostIf you use sizers you should be able to let the sizers automatically resize themselves so that the image will always have enough space and that the other panel will shrink to accommodate for it.
Jump to Postcan you post your code? I cannot understand what you posted.
From my little experience, one of common problems is specifying different parent to which the sizer is set. If you use one panel as parent to your widgets then you must use that panel's SetSizer() method. DON'T use panel …
All 6 Replies
lllllIllIlllI
178
Veteran Poster
flipjoebanana
0
Junior Poster in Training
Stefano Mtangoo
455
Senior Poster
flipjoebanana
0
Junior Poster in Training
Stefano Mtangoo
455
Senior Poster
flipjoebanana
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.