Resize problem with 'PICTURE' masks
Posted: Tue Nov 23, 2010 12:36 pm
When resizing a dialog the gets defined with "PICTURE '@S10!'" do not size properly.
Also, HiLites do not seem to redraw properly when resizing
Any ideas on fixes?
Terry
Also, HiLites do not seem to redraw properly when resizing
Any ideas on fixes?
Terry
Code: Select all
#include "dcdialog.ch"
#include "appevent.ch"
PROCEDURE MAIN()
LOCAL getList:={}, GetOptions, mLetter:=space(50), lpvPreview:=.F., ;
lpvSave2Disk:=.F., lOk, oDlg
@ 2, 6 DCSAY "Enter letter number:" GET mLetter ;
PICTURE '@S10!' ;
NOCONFIRM ;
; // GETSIZE 15 ; // <<- This parameter is required to properly resize the GET
SAYRIGHT ;
SAYSIZE 30
@ 4, 4 DCPUSHBUTTON CAPTION "~OK" SIZE 19,1.5 ;
ACCELKEY xbeK_CTRL_O ;
TOOLTIP "Select the indicated letter" ;
ACTION {|| DC_ReadGuiEvent(DCGUI_EXIT_OK, GetList) } ;
FONT "10.Arial Bold"
DCGETOPTIONS CHECKGET ;
HILITEGETS GRA_CLR_RED ;
RESIZE RESIZEDEFAULT DCGUI_RESIZE_AUTORESIZE_SCALEFONT
DCREAD GUI ;
FIT TO lOk ;
PARENT @oDlg ;
ENTEREXIT ;
OPTIONS GetOptions
wtf lOk PAUSE
RETURN
PROCEDURE AppSys()
RETURN