Hi all,
I have problem about creating the custom view. I've tried to add some code in the expert's code for learning
,but I can't make it completely.
B4X:
'Study
#DesignerProperty: Key: Enabled, DisplayName: Enabled,FieldType: Boolean,DefaultValue:True,Description: Enabled the progressBar
#DesignerProperty: Key: Visibled, DisplayName:Visibled,FieldType: Boolean,DefaultValue:True,Description: Visibled the progressBar
B4X:
Public Sub SetEnabled(myenabled As Boolean) 'Theera's code for study
Enabled =myenabled
mBase.Enabled=Enabled
End Sub
Public Sub SetVisibled(myvisibled As Boolean) 'Theera's code for study
Visibled=myvisibled
mBase.Visibled=Visibled
End Sub
Private m_Enabled As Boolean = True
Private m_Visible As Boolean = True
B4X:
Public Sub setEnabled(Enabled As Boolean) 'Theera's code for study
m_Enabled = Enabled
mBase.Enabled=Enabled
End Sub
Public Sub setVisible(Visible As Boolean) 'Theera's code for study
m_Visible = Visible
mBase.Visible=Visible
End Sub
the lastest, the compiler told me. I never declare enabled and visibled,there are not members . I think I'm lost myself how to code these properties.
I tried to copy the same code,how to do,but it isn't worked.
Private m_Enabled As Boolean = True
Private m_Visible As Boolean = True
B4X:
Public Sub setEnabled(Enabled As Boolean) 'Theera's code for study
m_Enabled = Enabled
mBase.Enabled=Enabled
End Sub
Public Sub setVisible(Visible As Boolean) 'Theera's code for study
m_Visible = Visible
mBase.Visible=Visible
End Sub