Problem With Folder on aDialog

Problem With Folder on aDialog

Postby Silvio.Falconi » Fri Nov 26, 2021 8:43 am

I have a folder inside a dialog, each tab of the folder
if pressed changes the height of the dialog this because in some tabs
I have more information to insert rather than other tabs.

On Windows Seven I corrected the problem with
Code: Select all  Expand view  RUN

   local nHeight:= 680
   local aPt := { 111,200 }

 aPt   := ClientToScreen( oWndMain:hWnd, aPt )

DEFINE DIALOG oDlg        ;
   TITLE "Configurazione"    ;
   SIZE  870,nHeight PIXEL TRUEPIXEL               ;
   COLOR CLR_BLACK,  nRgb( 245,244,234)  FONT oFontDialog ICON oIcon

 @0,0 FOLDEREX oFolder PROMPTS aFolder ;
   SIZE oDlg:nWidth,oDlg:nHeight-oBarDialog:nheight  PIXEL   ;
   FONT oFontDialog  ;
   COLOR nRgb( 245,244,234) ROUND 0


   oFolder:bAction := { || IF(oFolder:nOption=3 .or. oFolder:nOption=6 ,;
                         (oDlg:nHeight:=400,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )),;
                         (oDlg:nHeight:=680,oDlg:Move( aPt[ 1 ] , aPt[ 2 ] )) ) }


  ACTIVATE DIALOG oDlg CENTERED ;
   ON INIT ( oDlg:Move( aPt[ 1 ] , aPt[ 2 ] ),;
                Eval(  oDlg:bResized),;
                ChangeButtons(oBarDialog ),;
                oBarDialog:refresh(),;
                Eval(oFolder:baction) )





When I tested the application on Windows 10
when I press a tab not only the dialog moves but has a slight flick
how can I solve?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7062
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests

cron