Possible to calc. Right/Bottom Btn-Pos on diff. Dlg-Sizes ?
Posted: Sat Aug 07, 2010 11:26 am
Hello,
I have a problem to calculate the same Button-positions on different Dialog-Sizes.
I want to show a Button allways on the same Place after changing the Dialog-Size.
Inside the Main-Window it works like :
< oWnd:nHeight - 80, oWnd:nWidth - 100 >
( for Exit-Button 70 x 50 showing on the Right / Bottom- Corner )
Inside a Dialog it doesn't work ( Button-position not related to Dialog-Size )
Is it possible, to calculate / show the Button allways on the same Position on different Dialogsizes ???
// Defined Dialog-Position / Size := 50, 50 TO 700, 600
DEFINE DIALOG oDlg5 FROM nDlgTop, nDlgLeft TO nDlgWidth, nDlgHeight TITLE "Background-Tests" ICON oIco PIXEL
// Button-Position not related to Dialogsize :
@ 220, 250 BTNBMP oBtn5 SIZE 70, 40 OF oDlg5 2007 PIXEL ;
Best Regards
Uwe
I have a problem to calculate the same Button-positions on different Dialog-Sizes.
I want to show a Button allways on the same Place after changing the Dialog-Size.
Inside the Main-Window it works like :
< oWnd:nHeight - 80, oWnd:nWidth - 100 >
( for Exit-Button 70 x 50 showing on the Right / Bottom- Corner )
Inside a Dialog it doesn't work ( Button-position not related to Dialog-Size )
Is it possible, to calculate / show the Button allways on the same Position on different Dialogsizes ???
// Defined Dialog-Position / Size := 50, 50 TO 700, 600
DEFINE DIALOG oDlg5 FROM nDlgTop, nDlgLeft TO nDlgWidth, nDlgHeight TITLE "Background-Tests" ICON oIco PIXEL
// Button-Position not related to Dialogsize :
@ 220, 250 BTNBMP oBtn5 SIZE 70, 40 OF oDlg5 2007 PIXEL ;
Best Regards
Uwe