Hi,
just writing my first DDT program. I have created a dialog using pixel units and have added the styles to give me a maximize box etc. The dialog is shown initially maximized.
What I have noticed is that if you restore the dialog to it's specified size by double clicking the caption bar, the dialog resorts back to using dialog units without converting from pixels etc. The result is that the dialog is far bigger than it should be! (At least it is on my system!)
Is this a bug with Powerbasic?
Test code (remove the %WS_Maximize style to see how big the dialog was intended to be!) :
Thanks.
Stephen.
just writing my first DDT program. I have created a dialog using pixel units and have added the styles to give me a maximize box etc. The dialog is shown initially maximized.
What I have noticed is that if you restore the dialog to it's specified size by double clicking the caption bar, the dialog resorts back to using dialog units without converting from pixels etc. The result is that the dialog is far bigger than it should be! (At least it is on my system!)
Is this a bug with Powerbasic?
Test code (remove the %WS_Maximize style to see how big the dialog was intended to be!) :
Code:
#Compile Exe Function PBMain () As Long Local hDlg As Dword, result As Long Dialog New Pixels, 0, "", 0, 0, 800, 450, %DS_ModalFrame Or %WS_Caption Or %WS_ClipSiblings Or %WS_DlgFrame Or %WS_Popup Or %WS_MaximizeBox Or %WS_SysMenu Or %WS_Maximize To hDlg Dialog Show Modal hDlg To Result End Function
Stephen.
Comment