Wrong resize in narrow dialogs

Wrong resize in narrow dialogs

Postby Rafael Clemente » Tue Oct 14, 2008 7:45 am

Dialogs of less that 30 pixel high do not resize properly when pulled from the lower border:

Code: Select all  Expand view
#include "FiveWin.ch"

FUNCTION Main()
Local oWnd, oDlg1, oDlg2
   Define Window oWnd From 0,0 To 400,300 Pixel Title "Resize test" Color CLR_BLACK, CLR_WHITE

   @ 30,20 Say "This resizes Ok:" Of oWnd Size 100,20 Pixel
   Define Dialog oDlg1 From 50,20 to 120,100 Pixel Of oWnd Style WS_CHILD+WS_THICKFRAME
   Activate Dialog oDlg1 NoWait

   @ 30,140 Say "This resizes wrong:" Of oWnd Size 100,20 Pixel
   Define Dialog oDlg2 From 50,140 to 60,220 Pixel Of oWnd Style WS_CHILD+WS_THICKFRAME
   Activate Dialog oDlg2 NoWait

   Activate Window oWnd
Return Nil


Why one would use such a narrow dialog? Because I intend to use it as a resizable bar in a bar graph. Anybody has found a fix to this problem?
Thanks

Rafael
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Postby Antonio Linares » Tue Oct 14, 2008 7:48 am

Rafael,

It looks as a Windows bug. A possible workaround is not to let them resize smaller than a certain dimensions.

Please review samples\TestSize.prg (aMinMaxInfo use).
regards, saludos

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

Re: Wrong resize in narrow dialogs

Postby Enrico Maria Giordano » Tue Oct 14, 2008 7:58 am

I can't see any problem using XP.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8331
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Tue Oct 14, 2008 8:57 am

Enrico,

With Vista is failing
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 15 guests