2 data rows in one cell from Xbrowse

2 data rows in one cell from Xbrowse

Postby Marc Venken » 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: Select all  Expand view

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

Re: 2 data rows in one cell from Xbrowse

Postby nageswaragunupudi » Wed Oct 26, 2022 1: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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: 2 data rows in one cell from Xbrowse

Postby Marc Venken » Wed Oct 26, 2022 7: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)

Image
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1434
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: 2 data rows in one cell from Xbrowse

Postby Otto » Thu Oct 27, 2022 1:49 am

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
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: 2 data rows in one cell from Xbrowse

Postby Marc Venken » Thu Oct 27, 2022 7: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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1434
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests