Hello Antonio,
TPanel works.
Where I have problems is with the up,down,left,right-keys.
Do I have to change twindow?
I don't know how to use: WS_TABSTOP style
so I tried to do it with the VALID case.
Is this a bad solution?
You find my code on
http://www.atzwanger.com/invoice/invoiceFor Antonio.zip
@ 1 , 1 GET oGet VAR cTest OF oPanelAddress SIZE 100,17 VALID (oPanelBody:SetFocus(),.t.)
Thanks in advance
Otto
METHOD KeyDown( nKey, nFlags ) CLASS TWBrowse
do case
case nKey == VK_UP
::GoUp()
case nKey == VK_DOWN
::GoDown()
case nKey == VK_LEFT
::GoLeft()
case nKey == VK_RIGHT
::GoRight()
case nKey == VK_HOME
::GoTop()
case nKey == VK_END
::GoBottom()
case nKey == VK_PRIOR
if GetKeyState( VK_CONTROL )
::GoTop()
else
::PageUp()
endif
case nKey == VK_NEXT
if GetKeyState( VK_CONTROL )
::GoBottom()
else
::PageDown()
endif
otherwise
return Super:KeyDown( nKey, nFlags )
endcase
return 0