FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE Question
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
XBROWSE Question
Posted: Wed Jan 27, 2016 09:48 PM

Is it possible that i can have different picture-clausulas per line in the same column?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: XBROWSE Question
Posted: Wed Jan 27, 2016 11:40 PM
Günther,

You can use

oBrw:aCols[ 2 ]:AddResource("Gear") // from Resource
//oBrw:aCols[ 2 ]:AddBmpFile( c_path + "\Images\center.bmp" ) // from Disk
//oBrw:aCols[ 2 ]:AddBmpFile( c_path + "\Images\toppos.bmp" ) // from Disk
oBrw:aCols[ 2 ]:AddResource("Magie")
oBrw:aCols[ 2 ]:AddResource("Pack")
oBrw:aCols[ 2 ]:AddResource("People")
oBrw:aCols[ 2 ]:AddResource("Preview")
oBrw:aCols[ 2 ]:AddResource("Print")
oBrw:aCols[ 2 ]:AddResource("Save")
oBrw:aCols[ 2 ]:AddResource("Attach")
oBrw:aCols[ 2 ]:AddResource("Help")
oBrw:aCols[ 2 ]:AddResource("Info")
// oBrw:aCols[ 2 ]:AddBmpFile( "info2.bmp" ) // from Disk

oBrw:aCols[ 2 ]:bBmpData := {|| oBrw:nArrayAt }


best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE Question
Posted: Thu Jan 28, 2016 12:25 AM
different picture-clausulas


We can assign a codeblock to oCol:cEditPicture
This codeblock is evaluated with present value of the cell and column object as parameters.

oCol:cEditPicture := { |val,ocolobj| <func>( val, ocolobj ) }
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE Question
Posted: Thu Jan 28, 2016 12:30 AM
oBrw:aCols[ 2 ]:AddResource("Magie")
oBrw:aCols[ 2 ]:AddResource("Pack")
oBrw:aCols[ 2 ]:AddResource("People")


Please consider using the new method:

oCol:AddBitmap( { u1, u2,...uN } ), where u1,u2.. can be any image source, i.e., any image file, resource, etc.
This parameter can be either a single value or an array.

In case you have a larger image file, you can resize also
oCol:AddBitmap( { "c:\fwh\bitmaps\olga1.jpg", ... }, { 32, 32 } ). All the images will be resized to 32x32 pixels while loading.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: XBROWSE Question
Posted: Thu Jan 28, 2016 01:26 PM
We can assign a codeblock to oCol:cEditPicture
This codeblock is evaluated with present value of the cell and column object as parameters.

oCol:cEditPicture := { |val,ocolobj| <func>( val, ocolobj ) }

This is super! Thanks!

Uwe, ich will nur die "picture" (z.B. "@E ##.##") eines numerischen Wertes ändern!
Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion