how to resize ... it is to big (full-HD)rdonnay wrote:Here is an OSK sample program.
if i turn my Table PC 90" ( Landscape -> Portrait ) how to (automatic) resize OSK

how to resize ... it is to big (full-HD)rdonnay wrote:Here is an OSK sample program.
rdonnay wrote:Here is an OSK sample program.
Auge_Ohr wrote:are you running under 64 Bit ?digitsoft wrote:This example does not work
That code I gave you was very preliminary.Please, tell me how I can fix it
Code: Select all
@ 06.2,00.0 DCSAY "Get2:" GET cGet2 PICT "@!k" ;
KEYBLOCK {|k,b,o| KeySeek( k, o,cGet2 ) } GETOBJECT oGet2
Code: Select all
@ DCGUI_ROW, DCGUI_COL+nSpace DCPUSHBUTTONXP CAPTION 'Enter' SIZE nKeySize*2,nKeySize ;
ACTION {||::accum(Chr(xbeK_ENTER),'',GetList)} ;
;// DC_ReadGuiEvent(DCGUI_EXIT_ABORT,GetList)} ;
;// ACTION {||DC_ReadGuiEvent(DCGUI_EXIT_ABORT,GetList)} ;
ACCELKEY xbeK_ENTER ;
OBJECT oCancelButton CONFIG ::buttonConfig
rdonnay wrote:I edited my last posting with some more information for you.
Code: Select all
STATIC FUNCTION TouchHandler( nEvent, mp1, mp2, oXbp, oDlg, GetList, oOsk )
LOCAL i, oObj, oParent, aChildList
IF Valtype(oXbp) == 'O' .AND. oXbp:isDerivedFrom('DC_XbpGet')
IF nEvent == xbeP_SetInputFocus
oXbp:setColorBG(GRA_CLR_CYAN)
oXbp:setColorFG(GRA_CLR_DARKRED)
oOsk:targetXbp := oXbp
oParent := oOsk:targetXbp:setParent()
aChildList := oParent:childList()
FOR i := 1 TO Len(aChildList)
oObj := aChildList[i]
IF oObj:isDerivedFrom('DC_XbpGet') .AND. oObj # oXbp
oObj:setColorBG(GRA_CLR_WHITE)
oObj:setColorFG(GRA_CLR_BLACK)
ENDIF
NEXT
ENDIF
IF !oOSK:isVisible()
oOSK:show()
ENDIF
ENDIF
RETURN DCGUI_NONE
Code: Select all
METHOD TouchKeyboard:Accum( cKey, cCapsKey )
LOCAL cBuffer, i
IF ::isCapsLock .AND. !Empty(cCapsKey)
cKey := cCapsKey
ENDIF
::targetXbp:updated := .T.
FOR i := 1 TO Len(cKey)
::targetXbp:Keyboard( ASC(cKey[i]) )
NEXT
IF ::targetXbp:isDerivedFrom('DC_XbpGet')
cBuffer := Transform ( ::targetXbp:Get:Buffer, IIf(::targetXbp:Picture==NIL, "", ::targetXbp:picture) )
::targetXbp:Get:_assign( )
::targetXbp:SetEditBuffer( cBuffer )
ENDIF
IF Asc(cKey) == xbeK_ENTER
SetAppFocus(::targetXbp)
PostAppEvent(xbeP_Keyboard, xbeK_ENTER,,::targetXbp)
ENDIF
Sleep(1)
RETURN nil