Resize TFolder() / TFolderEx() : Dialogs

Resize TFolder() / TFolderEx() : Dialogs

Postby Jimmy » Fri Feb 10, 2023 11:57 pm

hi,

when resize TFolder() / TFolderEx() i need to resize ::Dialogs too
Code: Select all  Expand view
   FOR ii := 1 TO LEN( oTab:aDialogs )
      oTab:aDialogs[ ii ]:SetSize( ??? , ??? )
   NEXT

but how to get ::Dialogs new Size :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Resize TFolder() / TFolderEx() : Dialogs

Postby Antonio Linares » Sat Feb 11, 2023 11:10 am

Dear Jimmy,

Please try:

oTab:aDialogs[ ii ]:SetSize( nWidth, nHeight )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Resize TFolder() / TFolderEx() : Dialogs

Postby Jimmy » Sun Feb 12, 2023 5:29 am

hi Antonio,

thx for Answer

my Question is : what Size does a ::Dialogs have :?:

let´s say i create a TFolder() / TFolderEx() with Size 100 x 100
TFolderEx() have "nFolderHeight" but TFolder() not so how to "calculate" Size of ::Dialogs

---

have found "nFdHeight" in TFolder() ,,, have different Name
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Resize TFolder() / TFolderEx() : Dialogs

Postby Antonio Linares » Mon Feb 13, 2023 8:21 am

This is the size FWH uses:
Code: Select all  Expand view
     DEFINE DIALOG oDlg OF Self STYLE WS_CHILD ;
         FROM 0, 0 TO oThis:nHeight - oThis:nFdHeight - 5, oThis:nWidth - 6 PIXEL
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 93 guests