then titlebar and footbar

This commit is contained in:
cuu
2018-06-15 22:57:33 +08:00
parent b06a60ec38
commit d4e83803d8
10 changed files with 332 additions and 12 deletions

View File

@@ -158,8 +158,9 @@ type PageInterface interface {
// UpdateIconNumbers
// GetIconNumbers
// SetOnShow
// AppendIcon
// GetName()
// GetFootMsg
}
@@ -764,6 +765,10 @@ func (self *Page) ClearCanvas() {
surface.Fill(self.CanvasHWND, self.Screen.SkinManager.GiveColor("White"))
}
func (self *Page) AppendIcon( it interface{} ) {
self.Icons = append(self.Icons, it)
}
func (self *Page) ClearIcons() {
for i:=0;i<self.IconNumbers; i++ {
self.Icons[i].Clear()
@@ -830,6 +835,7 @@ func (self *Page) KeyDown( ev *event.Event) {
}
func (self *Page) OnLoadCb() {
}
@@ -838,6 +844,10 @@ func (self *Page) OnReturnBackCb() {
}
func (self *Page) OnExitCb() {
}
func (self *Page) Draw() {
self.ClearCanvas()
self.DrawIcons()