FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TImage in a TGroup does not show?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
TImage in a TGroup does not show?
Posted: Sat Nov 14, 2009 01:20 PM
Hi,

My Images does not show in group. even group is Transparent. If I remove group its ok.

Is there any solution for my problem?

Code (fw): Select all Collapse
#include "FiveWin.ch" 

function Main() 
LOCAL oDlg

    xVB_FILE:="SAMPLE.JPG"
  DEFINE DIALOG oDlg  SIZE 400, 500 
    oDlg:SetColor(,9425383)

  @ 2, 3 GROUP oGrp TO 100, 100 PROMPT " Group Text " OF oDlg PIXEL TRANSPARENT 

    @ 10,10 IMAGE oBmp OF oDlg PIXEL FILENAME xVB_FILE SCROLL   SIZE 150,212 Update 

    ACTIVATE DIALOG oDlg CENTERED //ON INIT (oBmp:LoadImage(,xVB_FILE),oBmp:Refresh())
return nil
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TImage in a TGroup does not show?
Posted: Sat Nov 14, 2009 01:38 PM
Please change the order of the statements.
GROUP command should be the last with TRANSPARENT clause
Code (fw): Select all Collapse
    @ 10,10 IMAGE oBmp OF oDlg PIXEL FILENAME xVB_FILE SCROLL   SIZE 150,212 Update 
    @ 2, 3 GROUP oGrp TO 100, 100 PROMPT " Group Text " OF oDlg PIXEL TRANSPARENT
Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: TImage in a TGroup does not show?
Posted: Sat Nov 14, 2009 04:39 PM

Yes, It works. But I think, the creation order should not effect it.

Thanks

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: TImage in a TGroup does not show?
Posted: Sat Nov 14, 2009 07:07 PM

Hakan,

The controls creation order matters :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion