How to code TScrDlg() for use in folder?
How to code TScrDlg() for use in folder?
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
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
Re: How to code TScrDlg() for use in folder?
Tried
Why :bInit is not evaluated?
Code: Select all | Expand
::oFolder:aDialogs[1]:bInit := {|| oScrDlg := TScrDlg():New(::oFolder:aDialogs[1],0,270,0,70) }
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
Re: How to code TScrDlg() for use in folder?
What's better between TScrDlg() and TScrollPanel?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
Re: How to code TScrDlg() for use in folder?
Resolved.
Code: Select all | Expand
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 ) }
RETURN
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 42270
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to code TScrDlg() for use in folder?
very good!
many thanks for sharing it!
many thanks for sharing it!
Re: How to code TScrDlg() for use in folder?
When I added up to 10 RTF controls within the same page on the TFolderEx,
the screen painting starts to become weird and folder names got painted where it shouldn't exist.
How to fix this?
the screen painting starts to become weird and folder names got painted where it shouldn't exist.
How to fix this?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 42270
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to code TScrDlg() for use in folder?
Dear Hua,
Could you please provide us your PRG example to test it here ?
many thanks
Could you please provide us your PRG example to test it here ?
many thanks
Re: How to code TScrDlg() for use in folder?
Hi Antonio,
I created a self-contained sample. It can be downloaded from here https://drive.google.com/file/d/1aBL3nn ... share_link
The paths in the .mak file would need to be updated first though
TIA
I created a self-contained sample. It can be downloaded from here https://drive.google.com/file/d/1aBL3nn ... share_link
The paths in the .mak file would need to be updated first though
TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 42270
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to code TScrDlg() for use in folder?
Dear Hua,
I have been able to build you example and see wht you mean
Please try to reduce the height used by TScrDlg()
I have been able to build you example and see wht you mean
Please try to reduce the height used by TScrDlg()
Re: How to code TScrDlg() for use in folder?
No joy.
There will be extra bits painted near the 5th, 7th and 10th TTitle
I reduced the controls from 10 to 7 sets. Seems painting issue is consistent.Antonio Linares wrote: Please try to reduce the height used by TScrDlg()
There will be extra bits painted near the 5th, 7th and 10th TTitle
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 42270
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to code TScrDlg() for use in folder?
Please try to reduce the height of TScrDlg(), let the controls as they are
Re: How to code TScrDlg() for use in folder?
Workaround the issue by not using Shadow
Code: Select all | Expand
REDEFINE TITLE oTitle ID 123 of oDlg SHADOW NOSHADOW
hua wrote:No joy.
I reduced the controls from 10 to 7 sets. Seems painting issue is consistent.Antonio Linares wrote: Please try to reduce the height used by TScrDlg()
There will be extra bits painted near the 5th, 7th and 10th TTitle
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
- Antonio Linares
- Site Admin
- Posts: 42270
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: