FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour windows seven Grid
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
windows seven Grid
Posted: Sat Mar 06, 2010 03:24 PM
the sample of Antonio ( viewtopic.php?f=6&t=17540) run good here.

the problem come when I insert bitmaps on column of record the gradient row go away....and it create a box of another color where are the bitmap or the field is empty

I insert on first column this code :

Code (fw): Select all Collapse
oCol:= oApp():oGrid:AddCol()
    oCol:AddResource("sort1")
    oCol:AddResource("sort2")
    oCol:AddResource( 'TREE_AULE')
    oCol:bBmpData := { || 3 }
    oCol:bStrData := { ||  ( oDHard)->Laboratory}
    oCol:cHeader  := "Aula/lab"
    oCol:nWidth   :=120
    oCol:nHeadBmpNo    := 1
    oCol:nHeadBmpAlign := AL_RIGHT
    oCol:oDataFont := oFontGrid




and on four column this code

Code (fw): Select all Collapse
oCol:= oApp():oGrid:AddCol()
      oCol:AddResource("sort1")
      oCol:AddResource("sort2")
      oCol:AddResource( 'TREE_HARD')
      oCol:AddResource( 'TREE_LAPTOP' )
      oCol:AddResource( 'TREE_PRINTERS' )
      oCol:AddResource( 'TREE_MONITOR' )
      oCol:AddResource( 'TREE_KEYBOARD' )
      oCol:AddResource( 'TREE_SWITCH' )
      oCol:AddResource( 'TREE_MOUSE' )
      oCol:AddResource( 'TREE_POCKET' )
      oCol:AddResource( 'TREE_SCANNER' )
      oCol:AddResource( 'TREE_PROJECT' )
      oCol:AddResource( 'TREE_VCAM' )
      oCol:AddResource( 'TREE_FCAM' )
      oCol:AddResource( 'TREE_CAMERA' )

      oCol:bBmpData := { || AScan( aItems, Trim(  (oDHard)->type ))  + 2 }
    * oCol:bStrData := { ||  (oDHard)->type}
     oCol:cHeader  := "Tipo"
     oCol:nWidth   := 60
     oCol:nHeadBmpNo    := 2
     oCol:nHeadBmpAlign := AL_RIGHT
     oCol:oDataFont := oFontGrid





then I made the same of Test of Antonio and the result is this

Best Regards, Saludos



Falconi Silvio
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: windows seven Grid
Posted: Sat Mar 06, 2010 11:05 PM
Silvio

please follow this topic (spanish)
http://forums.fivetechsupport.com/viewtopic.php?p=95369#p95369
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: windows seven Grid
Posted: Mon Mar 08, 2010 02:51 PM

Sorry but I try it but not run ok

Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: windows seven Grid
Posted: Mon Mar 08, 2010 03:07 PM
Only one error it was correct
as you can see on this picture





the other problem is I can see the bitmap well and I not understand where I must change the xbrowse class ( I have 9.10)
Best Regards, Saludos



Falconi Silvio
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: windows seven Grid
Posted: Mon Aug 02, 2010 01:35 PM
Silvio wrote:Only one error it was correct
as you can see on this picture





the other problem is I can see the bitmap well and I not understand where I must change the xbrowse class ( I have 9.10)



Hi Silvio. do you can solved this problem? If yes, can you describes how do you did it?
Thanks
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: windows seven Grid
Posted: Thu Dec 23, 2010 07:03 PM
Does anyone have a solution to this problem?

I am using a modified version of \samples\xbrwin7.prg which contains the function paintCol() to override the highlight bar painting with a gradient paint, but it seems this only works for text. If you display an image it gets the original highlight bar color instead. So, I think we need a similar function to repaint the background of an alpha image with the gradient background. Any ideas how to do this?

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: windows seven Grid
Posted: Thu Dec 23, 2010 09:34 PM

No, sorry
I have also on win 7 ultimate this problem

Best Regards, Saludos



Falconi Silvio
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: windows seven Grid
Posted: Wed Dec 29, 2010 03:03 PM

Please see the topic

viewtopic.php?f=3t=20570

&

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion