V VArt Member Dec 26, 2021 #1 In example "Cross platform Editable B4XTable + Form" add only one line B4X: Private Sub B4XPage_Created (Root1 As B4XView) 'original example code B4XTable1.pnlHeader.Visible=False 'my line End Sub Get error: "java.lang.RuntimeException: Object should first be initialized (B4XView)." What way to hide navigation panel? Need this, because my table is short, have fixed numbers of rows & columns and always visible. Therefore, navigation - not needed.
In example "Cross platform Editable B4XTable + Form" add only one line B4X: Private Sub B4XPage_Created (Root1 As B4XView) 'original example code B4XTable1.pnlHeader.Visible=False 'my line End Sub Get error: "java.lang.RuntimeException: Object should first be initialized (B4XView)." What way to hide navigation panel? Need this, because my table is short, have fixed numbers of rows & columns and always visible. Therefore, navigation - not needed.
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2021 #2 Add Sleep(0) before this line. It will allow the table layout to be loaded. Upvote 0
V VArt Member Dec 26, 2021 #3 Thanks, Erel! It works! Problem solved but... table not shift to up, i have top empty space. I'm trying to do this: (BT - B4XTable) BT.mBase.GetView(1).Top=0 'panel of table BT.mBase.Height=BT.mBase.Height - BT.mBase.GetView(0).Height ' minus height of hided Header Visual result is ok! This is correct way? Or may be exist more simple solution to shift up or redraw after hiding of header? Upvote 0
Thanks, Erel! It works! Problem solved but... table not shift to up, i have top empty space. I'm trying to do this: (BT - B4XTable) BT.mBase.GetView(1).Top=0 'panel of table BT.mBase.Height=BT.mBase.Height - BT.mBase.GetView(0).Height ' minus height of hided Header Visual result is ok! This is correct way? Or may be exist more simple solution to shift up or redraw after hiding of header?
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2021 #4 Another option is to put B4XTable inside a Panel and set its top to -60dip (pnlHeader.Height). Upvote 0
V VArt Member Dec 26, 2021 #5 Erel said: Another option is to put B4XTable inside a Panel and set its top to -60dip (pnlHeader.Height). Click to expand... Greate thanks for your advice! Upvote 0
Erel said: Another option is to put B4XTable inside a Panel and set its top to -60dip (pnlHeader.Height). Click to expand... Greate thanks for your advice!