FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour 2 data rows in one cell from Xbrowse
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
2 data rows in one cell from Xbrowse
Posted: Tue Oct 25, 2022 10:55 AM
In my dbf I have
12 fields with colornames
12 fields with pictures (belong to the colornames)

color1 : Black
Pic1 : black.jpg

color2 : Green
pic2 : green.jpg

.... until 12 (1-12)

In Xbrowse I show the pictures and the filename is also included.

Is it possible that also the colornaam from the field color1 is shown into the cel where the picture is show.

cell :

Black
foto itself
black.jpg


Code (fw): Select all Collapse
       for i = 1 to 12
          cPic = "pic"+alltrim(str(i))
          WITH OBJECT:&cpic
              :bStrImage     := { || "d:\pictures\origineel\"+alltrim(webshop->&cPic) }
              :oDataFont     := oFontXS
              :nDataStrAlign := AL_CENTER + AL_BOTTOM
              :nDataBmpAlign := AL_CENTER
              :aImgRect      := { nil, nil, -15, nil }
           END
         next
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: 2 data rows in one cell from Xbrowse
Posted: Wed Oct 26, 2022 01:09 PM
12 fields with colornames
12 fields with pictures (belong to the colornames)
Fields?
Does the DBF has 12 + 12 = 24 fields?
Do you want to show two fields ( color,image) in each xbrowse column? Total 12 columns?
How many records?
Regards



G. N. Rao.

Hyderabad, India
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: 2 data rows in one cell from Xbrowse
Posted: Wed Oct 26, 2022 07:30 PM
The dbf has indeed 12 + 12 fields = 24 pic1,pic2,...pic12 and color1,color2,...color12

As below, xbrowse can show the filename below the picture, because the filename is in the field ex. pic1 = blank.jpg
but the color name is insite the field color1 and match pic1 for the file ...

I was able to show the colornames in the footer corresponding the picture, but that is for the selected row. This will help me, but maybe Xbrowse can also put the colorname insite the cell as the Top

In this picture you zee a field : Kleuren where colornames are show lik "Zwart, Gray, Blue ,etc" but this field is not used for this. The 12 fields color1->12 are not shown in the browse (At this point also not selected as DATA)

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: 2 data rows in one cell from Xbrowse
Posted: Thu Oct 27, 2022 01:49 AM
Hello Mark,
you can use webview2.
best regards,
Otto

Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: 2 data rows in one cell from Xbrowse
Posted: Thu Oct 27, 2022 07:12 AM

Otto,

Thanks, but I stick with FW as it is. I'm able to do almost anything I want with FW, so no need for extra's in my case ....

The program is also only for local use.

Marc Venken

Using: FWH 23.08 with Harbour

Continue the discussion