TImage in a TGroup does not show?

TImage in a TGroup does not show?

Postby Horizon » Sat Nov 14, 2009 1: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: Select all  Expand view
#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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TImage in a TGroup does not show?

Postby nageswaragunupudi » Sat Nov 14, 2009 1:38 pm

Please change the order of the statements.
GROUP command should be the last with TRANSPARENT clause
Code: Select all  Expand view

    @ 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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TImage in a TGroup does not show?

Postby Horizon » Sat Nov 14, 2009 4:39 pm

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

Thanks
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: TImage in a TGroup does not show?

Postby Antonio Linares » Sat Nov 14, 2009 7:07 pm

Hakan,

The controls creation order matters :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 109 guests

cron