How I can make a preview on a tablet ?
the normal rpreview is not touch and the user cannoet use menu and small button
Any solution ?
::oWndMain:bRClicked := { || ::oWndMain:Refresh() }
::oWndMain:bOnSettingChange := { |o,w,lp| WaitRefresh( ::oWndMain,w,lp ) }
::oWndMain:bOnDisplayChange := { || DlgResize( ::oWndMain, oThis:aBtnMain ) }
STATIC function DlgResize( oDlg, aBtn )
local i, j, n, r, c, w, h
WITH OBJECT oDlg
:nWidth := Int( ScreenWidth() * 0.85 )
:nHeight := Int( ScreenHeight() * 0.85 )
w := ( :nWidth - 60 ) / 4
h := ( :nHeight - 80 ) / 3
END
r := 20
n := 1
for i := 1 to 3
c := 20
for j := 1 to 4
WITH OBJECT aBtn[ n ]
:nTop := r
:nLeft := c
:nWidth := w - 10
:nHeight := h - 10
END
n++
c += w
next j
r += h
next i
oDlg:Center()
oDlg:Refresh()
return nil
//-----------------------------------------------------------------------------------------//
static function WaitRefresh( ownd, w, l )
static n := 0
if oTimer == nil
DEFINE TIMER oTimer OF oWnd INTERVAL 400 ;
ACTION ( n++, oWnd:Refresh(), If( n > 4, (oTimer:End(), oTimer := nil, n := 0), nil ) )
ACTIVATE TIMER oTimer
endif
return nil
//-----------------------------------------------------------------------------------------//
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 100 guests