Page 1 of 1

FWH display line with record info outside the dialog

Posted: Fri Jul 07, 2006 10:15 am
by Eugeniusz Owsiak
I use ListBox in dialog and at activating this dialog I get a line with record info outside the dialog and main window. Can anybody tell me what is the reason?

FWH 2.7, BCC 5.51, WinXP Pro

regards Eugeniusz

Code: Select all

   
 Define dialog oDlg name "L_DANE"
   REDEFINE LISTBOX oLbx;
          FIELDS  str(zf->nr_komp,6),zf->nzw,zf->konto,str(zf->brutto,9,2),zf->podatekp,str(zf->kwota,9,2),dtoc(zf->data),zf->tytul;
          HEADERS "Numer", "Nazwisko",     "Numer konta ROR ","Brutto","Pod", "Kwota", "Data przelewu","Tytuł przelewu" ;
          FIELDSIZES 45,    150,        200,               60, 30,60,                80,270 ;
          ID 601 OF oDlg //UPDATE
   redefine button id 602 of oDlg action (Nowy(oLbx,.T.),oLbx:Refresh())
   redefine button id 603 of oDlg action (Nowy (oLbx,.F.),oLbx:Refresh())
   redefine button id 604 of oDlg action (Kasuj(oLbx),oLbx:Refresh())
   redefine button id 605 of oDlg action (Eksport(oLbx),oLbx:Refresh())
   redefine button id 606 of oDlg action (Raport(oLbx),oLbx:Refresh())
   redefine button id 607 of oDlg action (Raportpod(oLbx),oLbx:Refresh())
   redefine button id 608 of oDlg action (oLbx:End(),oDlg:End())
   oLbx:GoBottom()

   ACTIVATE DIALOG oDlg


Posted: Fri Jul 07, 2006 11:04 am
by Eugeniusz Owsiak
Problem resolved.
:)
I remove

Code: Select all

oLbx:GoBottom()
and now is OK

regards Eugeniusz

Posted: Fri Jul 07, 2006 1:17 pm
by Detlef Hoefner
Eugeniusz Owsiak wrote:Problem resolved.
:)
I remove

Code: Select all

oLbx:GoBottom()
and now is OK

regards Eugeniusz
Eugeniusz,

depending on the rdd you are using, you should provide the correct value to the oLbx:bLogicLen block.
So it should not be a problem to do a oLbx:GoBottom().

Regards,
Detlef