2 data rows in one cell from Xbrowse

Post Reply
User avatar
Marc Venken
Posts: 1485
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

2 data rows in one cell from Xbrowse

Post by Marc Venken »

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: Select all | Expand


       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
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: 2 data rows in one cell from Xbrowse

Post by nageswaragunupudi »

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
User avatar
Marc Venken
Posts: 1485
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: 2 data rows in one cell from Xbrowse

Post by Marc Venken »

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)

Image
Marc Venken
Using: FWH 23.08 with Harbour
User avatar
Otto
Posts: 6412
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: 2 data rows in one cell from Xbrowse

Post by Otto »

Hello Mark,
you can use webview2.
best regards,
Otto

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Marc Venken
Posts: 1485
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: 2 data rows in one cell from Xbrowse

Post by Marc Venken »

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
Post Reply