User forums > Help
Problem with wxSmith
Jenna:
Just a guess, this can be a vista/windows problem, because wxWidgets uses native conrols wherever possible and windows native controls sometimes behave a little strange (or at least unexpected).
My Vista-vm is broken, but I will try to repair it and/or test on XP and win7.
Jenna:
Happens on XP also, so it seems to be a wxMSW or more likely windows problem.
As workaround, you can create a wxPanel and place just the button into it.
TexasRanger:
Thx very much. It seems very strange for me that none has solved that bug. Does none use wxSmith on windows? And I think that this is very serious bug for programmers. :?
Jenna:
--- Quote from: TexasRanger on November 21, 2010, 01:20:47 pm ---Thx very much. It seems very strange for me that none has solved that bug. Does none use wxSmith on windows? And I think that this is very serious bug for programmers. :?
--- End quote ---
There have been similar bugs in InternetExplorer (textcontrols can not be hidden, the only way to hide is to cover them with a dummy iframe), I don't know if it still exists.
But that's most likely the cause for such an issue.
The cause nobody has reported it, might be that nobody ever did it, or (more likely) that the workaround (or a similar one),I gave you, is used.
rcoll:
Actually, this is kind of strange. After putting down a StaticBitmap, then placing other objects on there (a button, another panel, an edit control, a checkbox, etc), some of these objects are drawn properly, and some are not. For example, a button is alway over-drawn by the bitmap, regardless of Z-order. But a panel is drawn properly, so is an edit control and a checkbox. A combo-box is not drawn properly.
This is definitely a bug, but whether it's in Windows or in wxWidgets or in wxSmith I can't say yet.
I'll try to investigate this further.
The work-around for now: put a panel on the bitmap, of the exact size and placement that you want, then but the button (or other control) on the new panel.
Ringo
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version