RADIO from source code are not Trasparent ?

RADIO from source code are not Trasparent ?

Postby Davide » Mon Dec 31, 2007 2: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
Image
Code: Select all  Expand view  RUN
******************
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
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Postby nageswaragunupudi » Mon Dec 31, 2007 3: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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Davide » Mon Dec 31, 2007 2: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
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 56 guests