function Main()
local oWnd := TWindow():New(), oTbr
local tabbar
TNavBar():New( oWnd, "FivePhone", "Exit", "About" )
oWnd:oNavBar:bLeftClick = { || oWnd:End() }
oWnd:oNavBar:bRightClick = { || MsgInfo( "iOS SDK for Harbour" ) }
tabBar:=CREATETABBAR(oWnd:hwnd)
CREATEITEMTABBAR(tabbar,0)
CREATEITEMTABBAR(tabbar,2)
CREATEITEMTABBAR(tabbar,1)
oWnd:Activate()
return nil
function Main()
local oWnd := TWindow():New(), oTbr
local label
TNavBar():New( oWnd, "FivePhone", "Exit", "About" )
oWnd:oNavBar:bLeftClick = { || oWnd:End() }
oWnd:oNavBar:bRightClick = { || MsgInfo( "iOS SDK for Harbour" ) }
label:=CREATELABEL(oWnd:hwnd,"hola", 120,120 , 400 , 50 )
SETLABELCOLOR (label,255,0,0,100)
SETLABELFONT(label,"Helvetica",56)
oWnd:Activate()
return nil
Antonio Linares wrote:Manuel,
He modificado la Clase TTableView para que ya muestre campos de una DBF. Algo muy simple para probar
Pero el problema que tengo es que no me abre la DBF. Hago:
USE ( AppPath() + "/test.dbf" )
Puedes probarlo ahi ? (samples/tutor05.prg) gracias
function Main()
local oWnd := TWindow():New(), oTbr
local cPath := AppPath() + "/test.dbf"
local obrw
TNavBar():New( oWnd, "FivePhone", "Exit", "About" )
oWnd:oNavBar:bLeftClick = { || oWnd:End() }
oWnd:oNavBar:bRightClick = { || MsgInfo( "iOS SDK for Harbour" ) }
oTbr = TToolBar():New( oWnd )
oTbr:AddButton( "New", { || MsgInfo( "New" ) } )
oTbr:AddButton( "Open", { || MsgInfo( "Open" ) } )
oTbr:AddButton( "Save", { || MsgInfo( "Save" ) } )
oTbr:AddButton( "Search", { || MsgInfo( "Search" ) } )
oTbr:AddButton( "Close", { || MsgInfo( Alias() ) } )
USE ( cPath )
obrw:=TTableView():New( oWnd)
obrw:bData:={|| alltrim(fieldget(1))+" "+Alltrim(FieldGet( 2 ) )+" "+alltrim(fieldget(5)) }
oWnd:Activate()
return nil
Return to FiveMac / FivePhone (iPhone, iPad)
Users browsing this forum: No registered users and 6 guests