windows seven Grid

windows seven Grid

Postby Silvio » Sat Mar 06, 2010 3: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: Select all  Expand view
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: Select all  Expand view
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

Image
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: windows seven Grid

Postby Daniel Garcia-Gil » Sat Mar 06, 2010 11:05 pm

User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: windows seven Grid

Postby Silvio » Mon Mar 08, 2010 2:51 pm

Sorry but I try it but not run ok
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: windows seven Grid

Postby Silvio » Mon Mar 08, 2010 3:07 pm

Only one error it was correct
as you can see on this picture

Image



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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: windows seven Grid

Postby FranciscoA » Mon Aug 02, 2010 1:35 pm

Silvio wrote:Only one error it was correct
as you can see on this picture

Image



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
User avatar
FranciscoA
 
Posts: 2158
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: windows seven Grid

Postby James Bott » Thu Dec 23, 2010 7: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

Image
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: windows seven Grid

Postby Silvio » Thu Dec 23, 2010 9:34 pm

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

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: windows seven Grid

Postby nageswaragunupudi » Wed Dec 29, 2010 3:03 pm

Please see the topic
viewtopic.php?f=3&t=20570
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

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