1. Text Not Showing

Hello,

When I made an LText control, it does not appear on a TabControl. It shows up as a black blank bar. Why is this?

new topic     » topic index » view message » categorize

2. Re: Text Not Showing

Lone_EverGreen_Ranger said...

Hello,

When I made an LText control, it does not appear on a TabControl. It shows up as a black blank bar. Why is this?

More details required.

  • What version of Eu?
  • What version of Win32lib?
  • What version of Windows?

Also, try setting the background and text colors manually.

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

3. Re: Text Not Showing

DerekParnell said...
Lone_EverGreen_Ranger said...

Hello,

When I made an LText control, it does not appear on a TabControl. It shows up as a black blank bar. Why is this?

More details required.

  • What version of Eu?
  • What version of Win32lib?
  • What version of Windows?

Also, try setting the background and text colors manually.

I'm using 4.0 of Eu. I'm using 0_70_20 of win32lib. I'm using Windows Vista.

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

4. Re: Text Not Showing

Lone_EverGreen_Ranger said...
DerekParnell said...
Lone_EverGreen_Ranger said...

Hello,

When I made an LText control, it does not appear on a TabControl. It shows up as a black blank bar. Why is this?

More details required.

  • What version of Eu?
  • What version of Win32lib?
  • What version of Windows?

Also, try setting the background and text colors manually.

I'm using 4.0 of Eu. I'm using 0_70_20 of win32lib. I'm using Windows Vista.

4.0.0 ?? You're still using 4.0.0 ?

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

5. Re: Text Not Showing

jimcbrown said...
Lone_EverGreen_Ranger said...
DerekParnell said...
Lone_EverGreen_Ranger said...

Hello,

When I made an LText control, it does not appear on a TabControl. It shows up as a black blank bar. Why is this?

More details required.

  • What version of Eu?
  • What version of Win32lib?
  • What version of Windows?

Also, try setting the background and text colors manually.

I'm using 4.0 of Eu. I'm using 0_70_20 of win32lib. I'm using Windows Vista.

4.0.0 ?? You're still using 4.0.0 ?

4.0.3

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

6. Re: Text Not Showing

Hi

This is a windows /eu4.xx / win32lib problem, and happens on some computers but not others, it keeps cropping up.

Arwen does not have this problem (though is not as comprehensive as win32lib.

http://openeuphoria.org/forum/114951.wc#114951

Chris

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

7. Re: Text Not Showing

Could this be connected with ticket:616 ?

[matt: fixed link]

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

8. Re: Text Not Showing

Sorry, that link to ticket 616 does not work, but the ticket is still there.

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

9. Re: Text Not Showing

ArthurCrump said...

Could this be connected with ticket:616 ?

Yes, I suspect that it is.

Matt

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

10. Re: Text Not Showing

mattlewis said...
ArthurCrump said...

Could this be connected with ticket:616 ?

Yes, I suspect that it is.

Matt

Yes that ticket and the other thread are the same problem I am having. Has it been fixed?

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

11. Re: Text Not Showing

If you don't want to update Euphoria to get the fixes you could try:

open_dll("comdlg32.dll") 

before opening any standard dialog

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

12. Re: Text Not Showing

ArthurCrump said...

If you don't want to update Euphoria to get the fixes you could try:

open_dll("comdlg32.dll") 

before opening any standard dialog

I'm using 4.0.3, which I believe is the most current version. Has euphoria been updated again?

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

13. Re: Text Not Showing

Hi

Why would open_dll("commdlg32.dll") solve text displaying problem. Just curious.

Cheers

Chris

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

14. Re: Text Not Showing

ChrisB said...

Hi

Why would open_dll("commdlg32.dll") solve text displaying problem. Just curious.

Cheers

Chris

Sorry, that was a 'fix' for ticket 598, which I thought was similar.
It does not solve this one.

Arthur

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

15. Re: Text Not Showing

I still get the black box problem with the win32lib demo file tabcontrol2.exw

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

16. Re: Text Not Showing

ArthurCrump said...

I still get the black box problem with the win32lib demo file tabcontrol2.exw

I'm also having the same problem.

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

17. Re: Text Not Showing

Lone_EverGreen_Ranger said...
mattlewis said...
ArthurCrump said...

Could this be connected with ticket:616 ?

Yes, I suspect that it is.

Yes that ticket and the other thread are the same problem I am having. Has it been fixed?

The problem appears to be in win32lib.ew:fDoCtlColor(). It's there apparently to override the foreground and background color selections for controls. Apparently, the themed settings are slightly different than non-themed settings, at leaast on XP. To turn it off, you can simply modify the function so that it always does:

    return {kMainMsg , -1} 

If you've been taking advantage of the features of win32lib that use this, of course, they won't work any more (I'm not familiar with the motivation, etc, for this function, so I can't really say more). I found a modification that fixes the issue with the static labels by checking to see if win32lib believes the control should be transparent. Again, in fDoCtlColor, update the if statement that checks for w32WinDefColor to read:

 
	if not equal( classBGColor[ctrl_Type[lControl]], w32BGTransparent ) and 
	not equal(ctrl_Bg_Color[lControl], w32WinDefColor) then 

That doesn't fix the combo's issues. I think the problem occurs with the Combo's edit box. Normally, those aren't transparent, so it doesn't get fixed by the transparency check, though the first suggestion, of making this function o NOOP fixes the combo box display.

For completeness, here is the simple example that demonstrates the issue:

include win32lib.ew  
constant Win1 = create(Window,"Strange",0,Default,Default,400,400,0),  
		TabCtl = create(TabControl,"",Win1,5,5,380,355,0),  
		Tab1 = create(TabItem,"First",TabCtl,0,0,0,0,0),  
		Label1 = create(CText,"Nothing important",Tab1,10,30,360,25,0),  
		Cbox1 = create(Combo,"",Tab1,20,80,250,100,0)  
WinMain(Win1,Normal)  

Matt

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

18. Re: Text Not Showing

mattlewis said...
Lone_EverGreen_Ranger said...
mattlewis said...
ArthurCrump said...

Could this be connected with ticket:616 ?

Yes, I suspect that it is.

Yes that ticket and the other thread are the same problem I am having. Has it been fixed?

The problem appears to be in win32lib.ew:fDoCtlColor(). It's there apparently to override the foreground and background color selections for controls. Apparently, the themed settings are slightly different than non-themed settings, at leaast on XP. To turn it off, you can simply modify the function so that it always does:

    return {kMainMsg , -1} 

If you've been taking advantage of the features of win32lib that use this, of course, they won't work any more (I'm not familiar with the motivation, etc, for this function, so I can't really say more). I found a modification that fixes the issue with the static labels by checking to see if win32lib believes the control should be transparent. Again, in fDoCtlColor, update the if statement that checks for w32WinDefColor to read:

 
	if not equal( classBGColor[ctrl_Type[lControl]], w32BGTransparent ) and 
	not equal(ctrl_Bg_Color[lControl], w32WinDefColor) then 

That doesn't fix the combo's issues. I think the problem occurs with the Combo's edit box. Normally, those aren't transparent, so it doesn't get fixed by the transparency check, though the first suggestion, of making this function o NOOP fixes the combo box display.

For completeness, here is the simple example that demonstrates the issue:

include win32lib.ew  
constant Win1 = create(Window,"Strange",0,Default,Default,400,400,0),  
		TabCtl = create(TabControl,"",Win1,5,5,380,355,0),  
		Tab1 = create(TabItem,"First",TabCtl,0,0,0,0,0),  
		Label1 = create(CText,"Nothing important",Tab1,10,30,360,25,0),  
		Cbox1 = create(Combo,"",Tab1,20,80,250,100,0)  
WinMain(Win1,Normal)  

Matt

Thanks for the tips. I've also noticed changing the color of the text is a workaround, but still not perfect.

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

19. Re: Text Not Showing

Lone_EverGreen_Ranger said...

Thanks for the tips. I've also noticed changing the color of the text is a workaround, but still not perfect.

Yes, I'm not convinced that what I did is the right fix, but at least you can read the text. I'd like to get Derek's thoughts about the way forward.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu