Page 1 of 1

RADIO from source code are not Trasparent ?

PostPosted: Mon Dec 31, 2007 2:24 am
by Davide
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
Image
Code: Select all  Expand view
******************
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

PostPosted: Mon Dec 31, 2007 3:13 am
by nageswaragunupudi
The radio items are transparent with FWH 7.12, when i tested the same code ( with different bitmap ofcourse).

PostPosted: Mon Dec 31, 2007 2:19 pm
by Davide
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