Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12592

Re: bBrowser CompoundField

From Franz Rachbauer <office@rachbauer.org>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: bBrowser CompoundField
Date 2019-08-19 16:54 +0200
Organization Aioe.org NNTP Server
Message-ID <qjed7f$blb$1@gioia.aioe.org> (permalink)
References <qi3h6l$u6e$3@gioia.aioe.org> <fefed76d-f571-4278-b096-c1186e1ceb72@googlegroups.com>

Show all headers | View raw


Hi Gianluca,
you use bIcon with an Icon of 32x32, but is it possible to use a bitmap 
with 100x120 like http://www.rachbauer.org/bild1.jpg shows?

Regards, Franz

Am 19.08.2019 um 15:36 schrieb Gianluca72:
> Il giorno sabato 3 agosto 2019 10:38:46 UTC+2, Franz Rachbauer ha scritto:
>> Hi,
>> is it possible to do a compound field with bBrowser containing an image
>> combined with text under the image?
>>
>> If I do an image column I have to give typ Object and I cannot combine
>> it with text.
>>
>> Regards, Franz
> 
> Hi Franz,
> you could use bCompoundValue{}
> 
> 
> 
> You could define your column in this way:
> 
> 
> oColumn := bDataColumn{SELF:oDCbBrowserClassifica, SELF:oDCbBrowserClassifica:Server, {|oServer, oSelf| oSelf:GetCompoundValueCLASSIFICHE(oServer)}, #Expression, SELF}
> 
> 
> and create a method that define the content oc the cell like this:
> 
> 
> METHOD GetCompoundValueCLASSIFICHE(oServer) CLASS DisplayWin
> 	// create compound value object
> 	LOCAL ocvValue			AS bCompoundValue
> 	LOCAL ocvSubValue			AS bCompoundValue
> 	LOCAL oCOLOR AS COLOR
> 
> 	DO CASE
> 	 CASE oServer:SEZ == 'GAM'
> 	 	oCOLOR := oColorGAM
> 	 CASE oServer:SEZ == 'GAF'
> 	 	oCOLOR := oColorGAF
> 	 OTHERWISE   //TE
> 	 	oCOLOR := oColorTE
> 	ENDCASE
> 
> 	// create compound value object
> 	ocvValue := bCompoundValue{}
> 	ocvValue:InactiveSelectedBackground := SELF:oDCbBrowserClassifica:Background
> 	ocvValue:SelectedBackground := SELF:oDCbBrowserClassifica:Background
> 	
> 	ocvSubValue := (bCompoundValue{AllTrim(oServer:NUMERO), Point{5, 0}, Dimension{45 , -1}, BALIGN_RIGHT  , Color{COLORyellow}, , Font{, 27, "Tahoma"}  } )
> 	ocvSubValue:SelectedForeground := Color{COLORyellow}
> 	ocvSubValue:InactiveSelectedForeground := Color{COLORyellow}
> 	ocvValue:AddValue( ocvSubValue )
> 
> 
> 	ocvSubValue := (bCompoundValue{oServer:ATLETA, Point{70, 0}, Dimension{450 , -1}, BALIGN_LEFT  , Color{COLORwhite}, , Font{, 27, "Tahoma"}  } )
> 	ocvSubValue:SelectedForeground := Color{COLORwhite}
> 	ocvSubValue:InactiveSelectedForeground := Color{COLORwhite}
> 	ocvSubValue:ValueOptions := BVO_END_ELLIPSIS
> 	*ocvSubValue:ValueOptions := BVO_WORDBREAK
> 	ocvValue:AddValue( ocvSubValue )
> 
> 	ocvSubValue := (bCompoundValue{oServer:RISULTATO, Point{560, 0}, Dimension{150 , -1}, BALIGN_RIGHT  , Color{COLORyellow}, , Font{, 27, "Tahoma"}  } )
> 	ocvSubValue:SelectedForeground := Color{COLORyellow}
> 	ocvSubValue:InactiveSelectedForeground := Color{COLORyellow}
> 	ocvValue:AddValue( ocvSubValue )
> 
> 	ocvSubValue := (bCompoundValue{oServer:NOTAD, Point{710, 0}, Dimension{70 , -1}, BALIGN_RIGHT  , Color{COLORyellow}, , Font{, 27, "Tahoma"}  } )
> 	ocvSubValue:SelectedForeground := Color{COLORyellow}
> 	ocvSubValue:InactiveSelectedForeground := Color{COLORyellow}
> 	ocvValue:AddValue( ocvSubValue )
> 
> 	*ocvSubValue := (bCompoundValue{oServer:SQUADRA, Point{420, 0}, Dimension{170 , -1}, BALIGN_LEFT  , Color{COLORwhite}, , Font{, 25, "Tahoma"}  } )
> 	*ocvSubValue:SelectedForeground := Color{COLORwhite}
> 	*ocvSubValue:InactiveSelectedForeground := Color{COLORwhite}
> 	*ocvValue:AddValue( ocvSubValue )
> 
> 
> 	ocvSubValue := (bCompoundValue{ BICON{  GetNationalIcon(AllTrim(oServer:NAZIONE)) ,DIMENSION{32,32} }, Point{530, 6}, Dimension{32 , -1}, BALIGN_CENTER  , oCOLOR, , Font{, 14, "Tahoma"}  } )
> 	ocvSubValue:SelectedForeground := oCOLOR
> 	ocvSubValue:InactiveSelectedForeground := oCOLOR
> 	ocvValue:AddValue( ocvSubValue )
> 
> 
> 
> 	// return compound value object
> 	RETURN ocvValue
> 
> 
> 
> 
> Regards
> Gianluca
> 
> 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bBrowser CompoundField Franz Rachbauer <office@rachbauer.org> - 2019-08-03 10:38 +0200
  Re: bBrowser CompoundField Gianluca72 <gianluca.pinoli@proximacentauri.it> - 2019-08-19 06:36 -0700
    Re: bBrowser CompoundField Franz Rachbauer <office@rachbauer.org> - 2019-08-19 16:54 +0200
      Re: bBrowser CompoundField Gianluca72 <gianluca.pinoli@proximacentauri.it> - 2019-08-19 08:13 -0700

csiph-web