Hi,
All samples I've looked at place calls to TScrDlg() at a dialog's ON INIT.
How should it be coded for use in a Folder/FolderEx?
TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
Hi,
All samples I've looked at place calls to TScrDlg() at a dialog's ON INIT.
How should it be coded for use in a Folder/FolderEx?
TIA
::oFolder:aDialogs[1]:bInit := {|| oScrDlg := TScrDlg():New(::oFolder:aDialogs[1],0,270,0,70) }What's better between TScrDlg() and TScrollPanel?
ACTIVATE DIALOG oDlg ON INIT MakeScroll(oFolder)
PROC MakeScroll(oFolder)
local oScrDlg
oScrDlg := TScrDlg():New(oFolder:aDialogs[1],0,SCROLL_RANGE,0,70)
oFolder:aDialogs[1]:bMouseWheel := { | nKey, nDelta, nXPos, nYPos | MouseWheel( nKey, nDelta, nXPos, nYPos, oScrDlg ) }
RETURNDear Hua,
Could you please provide us your PRG example to test it here ?
many thanks
Dear Hua,
I have been able to build you example and see wht you mean
Please try to reduce the height used by TScrDlg()
Please try to reduce the height of TScrDlg(), let the controls as they are
REDEFINE TITLE oTitle ID 123 of oDlg SHADOW NOSHADOWhua wrote:No joy.
Please try to reduce the height used by TScrDlg()I reduced the controls from 10 to 7 sets. Seems painting issue is consistent.
There will be extra bits painted near the 5th, 7th and 10th TTitle