XBROWSE Question

XBROWSE Question

Postby byte-one » Wed Jan 27, 2016 9: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: XBROWSE Question

Postby ukoenig » 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 :D
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: XBROWSE Question

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

Re: XBROWSE Question

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

Re: XBROWSE Question

Postby byte-one » Thu Jan 28, 2016 1: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 78 guests