1. Text Not Showing
- Posted by Lone_EverGreen_Ranger Jan 06, 2012
- 1481 views
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?
2. Re: Text Not Showing
- Posted by DerekParnell (admin) Jan 06, 2012
- 1460 views
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.
3. Re: Text Not Showing
- Posted by Lone_EverGreen_Ranger Jan 06, 2012
- 1457 views
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. Re: Text Not Showing
- Posted by jimcbrown (admin) Jan 06, 2012
- 1449 views
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 ?
5. Re: Text Not Showing
- Posted by Lone_EverGreen_Ranger Jan 06, 2012
- 1448 views
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
6. Re: Text Not Showing
- Posted by ChrisB (moderator) Jan 07, 2012
- 1428 views
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
7. Re: Text Not Showing
- Posted by ArthurCrump Jan 07, 2012
- 1414 views
Could this be connected with ticket:616 ?
[matt: fixed link]
8. Re: Text Not Showing
- Posted by ArthurCrump Jan 07, 2012
- 1443 views
Sorry, that link to ticket 616 does not work, but the ticket is still there.
9. Re: Text Not Showing
- Posted by mattlewis (admin) Jan 07, 2012
- 1490 views
Could this be connected with ticket:616 ?
Yes, I suspect that it is.
Matt
10. Re: Text Not Showing
- Posted by Lone_EverGreen_Ranger Jan 07, 2012
- 1438 views
Yes that ticket and the other thread are the same problem I am having. Has it been fixed?
11. Re: Text Not Showing
- Posted by ArthurCrump Jan 07, 2012
- 1408 views
If you don't want to update Euphoria to get the fixes you could try:
open_dll("comdlg32.dll")
before opening any standard dialog
12. Re: Text Not Showing
- Posted by Lone_EverGreen_Ranger Jan 07, 2012
- 1374 views
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?
13. Re: Text Not Showing
- Posted by ChrisB (moderator) Jan 08, 2012
- 1352 views
Hi
Why would open_dll("commdlg32.dll") solve text displaying problem. Just curious.
Cheers
Chris
14. Re: Text Not Showing
- Posted by ArthurCrump Jan 08, 2012
- 1331 views
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
15. Re: Text Not Showing
- Posted by ArthurCrump Jan 08, 2012
- 1308 views
I still get the black box problem with the win32lib demo file tabcontrol2.exw
16. Re: Text Not Showing
- Posted by Lone_EverGreen_Ranger Jan 08, 2012
- 1355 views
I still get the black box problem with the win32lib demo file tabcontrol2.exw
I'm also having the same problem.
17. Re: Text Not Showing
- Posted by mattlewis (admin) Jan 10, 2012
- 1544 views
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
18. Re: Text Not Showing
- Posted by Lone_EverGreen_Ranger Jan 10, 2012
- 1292 views
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.
19. Re: Text Not Showing
- Posted by mattlewis (admin) Jan 10, 2012
- 1283 views
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