Harbour GUI framework for Win32 TestForm.prg sample

This commit is contained in:
Antonio Linares
2001-09-01 06:33:55 +00:00
parent 238ef12d9b
commit 11a57bb5d1

View File

@@ -0,0 +1,43 @@
// Testing Harbour GUI framework for Win32
function Main()
local oForm := TForm():New()
local oMenu := TMenu():New( oForm )
local oMenuItem, oSubItem, oSubItem2
oMenuItem = TMenuItem():New()
oMenuItem:cCaption = "One"
oMenu:Add( oMenuItem )
oSubItem = TMenuItem():New()
oSubItem:cCaption = "First"
oMenuItem:Add( oSubItem )
oSubItem = TMenuItem():New()
oSubItem:cCaption = "Second"
oMenuItem:Add( oSubItem )
oSubItem2 = TMenuItem():New()
oSubItem2:cCaption = "Some"
oSubItem:Add( oSubItem2 )
oSubItem2 = TMenuItem():New()
oSubItem2:cCaption = "More"
oSubItem:Add( oSubItem2 )
oMenuItem = TMenuItem():New()
oMenuItem:cCaption = "Two"
oMenu:Add( oMenuItem )
oMenuItem = TMenuItem():New()
oMenuItem:cCaption = "Three"
oMenu:Add( oMenuItem )
oForm:oMenu = oMenu
oForm:cCaption = "Harbour GUI Framework"
oForm:ShowModal()
return nil