FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour RADIO from source code are not Trasparent ?
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
RADIO from source code are not Trasparent ?
Posted: Mon Dec 31, 2007 02:24 AM
Hello all.

The small sample below produces the attached image in not themed OS's (under XP or Vista it's ok: radio background is white). Do you know how can I solve it ?
Thanks,
Davide
FWH 7.09 - Bcc 5.5

******************
function testRad()
******************
local oDlg, oBmp, oFont2, oBtn, oRad, cVar:="First"

  DEFINE FONT oFont2 NAME "MS Sans Serif" SIZE 0,-8
  DEFINE BRUSH oBmp RESOURCE "WizDlg" 

  DEFINE DIALOG oDlg FROM 0,0 TO 256,400 PIXEL ;
         FONT oFont2 ;
         TITLE "Transparent Radios" ;
         BRUSH oBmp TRANSPARENT ;
         STYLE nOr( DS_SYSMODAL, WS_POPUP )

  @ 7,138 SAY "Test" SIZE 62,14 PIXEL COLOR CLR_WHITE OF oDlg  // ok, Transparent

  @ 50,5 RADIO oRad VAR cVar ITEMS "First" SIZE 45,10 PIXEL OF oDlg
  @ 50,55 RADIOITEM "Second" RADIOMENU oRad SIZE 90,10 PIXEL OF oDlg

  @ 108,149 BUTTON oBtn PROMPT "Close" ACTION oDlg:End() SIZE 43,11 PIXEL FONT oFont2 OF oDLG

  ACTIVATE DIALOG oDlg CENTERED 

  oFont2:End()
  RELEASE BRUSH oBmp

return nil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
RADIO from source code are not Trasparent ?
Posted: Mon Dec 31, 2007 03:13 AM

The radio items are transparent with FWH 7.12, when i tested the same code ( with different bitmap ofcourse).

Regards



G. N. Rao.

Hyderabad, India
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
RADIO from source code are not Trasparent ?
Posted: Mon Dec 31, 2007 02:19 PM
nageswaragunupudi,
nageswaragunupudi wrote:The radio items are transparent with FWH 7.12, when i tested the same code ( with different bitmap ofcourse).

Thank you for testing that code. I have even FWH 7.10, but haven't had time to reapply my custom changes to the standard classes yet.

However I made additional tests and the problem doesn't seem to be related to themes because it works as expected even on Win98 and Win2K

It seems that code behaves that way only on Windows Server 2003. Installing the Service Pack 2 didn't cure it.
On that system, I've also noticed that labels in groupboxes (from resources, in other dialogs) are not transparent too (if this can shad any lights on you).

Could you please send me your compiled sample at "guolo [dot] davide [at] tiscali [dot] it" so that I can test it on my server ?

Thank you,
Davide

Continue the discussion