FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour listbox con scroll
Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM
listbox con scroll
Posted: Fri Sep 29, 2023 10:58 AM

Hola gente, necesito que en el listbox cuando edito una celda haga scroll, se puede?

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: listbox con scroll
Posted: Sun Oct 01, 2023 04:17 PM

No entiendo. ¿Como asi? ¿Puedes explicarlo mejor o publicar un pequeño ejemplo de lo que realmente quieres hacer? Tu pregunta no tiene mucho sentido desde mi punto de vista.

Gracias.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: listbox con scroll
Posted: Sun Oct 01, 2023 04:35 PM
As far as I remember, you need to create a text field (see examples on the Internet) and specify the scrollbar property
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: listbox con scroll
Posted: Sun Oct 01, 2023 05:34 PM
hi,

have a look into c:\fwh64\source\classes\datarow.prg
Code (fw): Select all Collapse
METHOD Edit(...) CLASS TDataRow
   ...
   DEFINE DIALOG oDlg SIZE 800,500 PIXEL FONT oFont TITLE cTitle
   oPanel   := TScrollPanel():New( 20, 20, 200, 360, oDlg, .t. )
   ...
   oDlg:bResized := { || DlgResize( oDlg, oPanel ) }
   oDlg:bOnDisplayChange := { | o, n, w, h | AdjustToDisplay( o,n,w,h,oPanel ) }
   ...
   oDlg:bInit  := <||
      oRec:PlaceControls( oPanel, ... )
so "normal" is to "scroll" a Dialog, not a Control
greeting,

Jimmy
Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM
Re: listbox con scroll
Posted: Mon Oct 02, 2023 05:59 PM
Tengo este listbox:

https://drive.google.com/file/d/1hV2oWaY9nOj2OJ_5TgRL7wnLya-MVe6t/view?usp=sharing

en la celda que se está editando, se puede que haga scroll sin agrandar el diálogo?

Continue the discussion