Page 1 of 1

A possible MULTIBROWSE of one DBF ? ( test incl. )

Posted: Sun Aug 25, 2019 12:37 pm
by ukoenig
Hello,

it seems there is no working solution. :?:
I think it is a nice solution to create multilanguage tools.
This is a part of the desktop-alarm tool I created.

Once again in short the final solution I need :
4 browser using one DBF

The first browser is showíng only the top record ( english ) as a refrence with header.
The second browser is used for the language selection ( could be used for translation as well )
-- browser 1 should be synchronously to browser 2 ( header-display )
-- it means moving cells and header in browser 1 related to browser 2 movements
The third browser shows the structure and only the fields of record 1 ( english )
The fourth browser is needed for translation with a skipping-option
The fields of browser 3 and 4 should work synchronously

Possible to change the fieldsize if the field is to short

DOWNLOAD ( full test )
http://www.pflegeplus.com/FWH_Downloads/Translate.zip

testing translations

Image

First tests :

maybe possible to complete the exsample with the defined logic

regards Uwe :?:

Re: A possible MULTIBROWSE of one DBF ? ( test incl. )

Posted: Mon Aug 26, 2019 4:33 pm
by James Bott
Uwe,

Just open four copies of a database object that uses the DBF you wish. Each copy is independent of the others. This works just like it would on a LAN with multiple users.

oDBF1 := TDatabase():New(,"cFilename")
oDBF1:use()

oDBF2 := TDatabase():New(,"cFilename")
oDBF2:use()

...

Then use oDBF1:bSkip:= {...} to coordinate movements between two browses.

James

Re: A possible MULTIBROWSE of one DBF ? ( test incl. )

Posted: Sat Aug 31, 2019 1:39 pm
by ukoenig
James thank You
now it works in all directions
Just one little problem :
the rows of browser 2 and 3 are drifting apart after a new field selection ( picture 1).
Could it be possible to force them to show the result with the same row-position ( picture 2 ) ?
Still a focus-adjustment is needed in browser 1 ( 3. column = focus on selected field )

Image

regards
Uwe :?: