1. wxStaticTexts blacked out

In wxEuphoria, what can cause all the wxStaticTexts to black out?  Also the
parts of the window that have nothing on them are blacked out. The background
window color is supposed to be different. No other widgets are affected.

This happens when I call show_window(winFrame) before wxMain(winFrame).

new topic     » topic index » view message » categorize

2. Re: wxStaticTexts blacked out

posted by: Jerry Story <jstory at ocii.com> 

> In wxEuphoria, what can cause all the wxStaticTexts to black out?  Also the 
> parts of the window that have nothing on them are blacked out. The background 
> window color is supposed to be different. No other widgets are affected. 
>  
> This happens when I call show_window(winFrame) before wxMain(winFrame). 

I don't know.  I can't duplicate this behavior, although the wxStaticTexts
don't necessarily update right away under Linux (I'm actually testing using
Debian under coLinux under Win2K).  You may need to add some calls to yield
while your program is loading to make sure that it repaints properly.  That
seems to help me.

Here's the code I tested with.  When I only call Yield once, the 
wxStaticTexts don't show their information until wxMain is called.

-- Created using wxIDE
include wxEuphoria.e
include wxText.e

global constant
Jerry = create( wxFrame, {0, -1, "new_wxFrame_3", 0, 0, 497, 383 }),
new_wxPanel_1 = create( wxPanel, {Jerry, -1, 0, 0, 496, 382 }),
new_wxStaticText_1 = create( wxStaticText, {new_wxPanel_1, -1,
"new_wxStaticText_1", 85, 50, 185, 25 }),
new_wxStaticText_2 = create( wxStaticText, {new_wxPanel_1, -1,
"new_wxStaticText_2", 60, 123, 258, 54 })
object void
show_window( Jerry, 1 )
atom t
t  =time()
? t
for i = 1 to 2 do
	void = call_member( wxApp_Yield, myApp_this, {1})
end for
sleep(3)
? time()

wxMain( Jerry )


Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxStaticTexts blacked out

Matt Lewis wrote:
> }}}
<eucode>
> for i = 1 to 2 do
> 	void = call_member( wxApp_Yield, myApp_this, {1})
> end for
> </eucode>
{{{


That solved the problem.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu