AHilberink Well-Known Member Licensed User Longtime User Dec 29, 2022 #1 Hi, I got a nice library of Klaus for the xTableMicro. I want to add the possiblity to set the common property Visible. How can I set a common property of a custom view? Now I use: B4X: 'Gets or sets the xTableMicro visible Public Sub Visible(TrueFalse As Boolean) mBase.Visible=TrueFalse End Sub It works, but like this: xxx.Visible(True) Normally this is: xxx.Visible=True Can someone tell me how to add this? I succeed in adding only a Public Visible as Boolean, but how to activate this on the whole view? Kind regards, André
Hi, I got a nice library of Klaus for the xTableMicro. I want to add the possiblity to set the common property Visible. How can I set a common property of a custom view? Now I use: B4X: 'Gets or sets the xTableMicro visible Public Sub Visible(TrueFalse As Boolean) mBase.Visible=TrueFalse End Sub It works, but like this: xxx.Visible(True) Normally this is: xxx.Visible=True Can someone tell me how to add this? I succeed in adding only a Public Visible as Boolean, but how to activate this on the whole view? Kind regards, André
kimstudio Active Member Licensed User Longtime User Dec 29, 2022 #2 B4X: Public Sub setVisible(TrueFalse As Boolean) mBase.Visible=TrueFalse End Sub Public Sub getVisible As Boolean return mBase.Visible End Sub Remove this added Public Visible as Boolean, or use another name like Private mVisible. Upvote 0
B4X: Public Sub setVisible(TrueFalse As Boolean) mBase.Visible=TrueFalse End Sub Public Sub getVisible As Boolean return mBase.Visible End Sub Remove this added Public Visible as Boolean, or use another name like Private mVisible.
klaus Expert Licensed User Longtime User Dec 30, 2022 #3 You have an explanation in the B4X CustomViews booklet. Upvote 0
AHilberink Well-Known Member Licensed User Longtime User Dec 30, 2022 #4 Thank you both and a Happy new year. Upvote 0