I'm slowly going mad. With a tiny B4XTable I have a problem with controls in the header. Originally the search function was hidden. Can be done in the designer. No problem.
Then I realised that when scrolling through the tables, the text of the FROMTO label ‘grows’ into the controls for scrolling through the table, so there is an ugly overlap. Good. So the table controls have to be rearranged.
Step 1:
So just move the table controls completely to the right, preferably to the right edge of the table, looks best. Problem: Despite the search function being hidden, the controls seem to disappear under a label of the search function.
Step 2:
Move the search function to the left behind the FROMTO label. You can see what happens in the picture.
For test purposes, the search function has been reduced in width and shown again. It is located above the FROMTO label. Hide it and it disappears. No problem. But take a look at the controls. A mask on the right-hand side still somehow hides the table controls. The further I move the controls to the right, the more they disappear. How can I move the controls to the right?
Here is the code for moving the controls. What am I doing wrong or what am I overlooking?
Then I realised that when scrolling through the tables, the text of the FROMTO label ‘grows’ into the controls for scrolling through the table, so there is an ugly overlap. Good. So the table controls have to be rearranged.
Step 1:
So just move the table controls completely to the right, preferably to the right edge of the table, looks best. Problem: Despite the search function being hidden, the controls seem to disappear under a label of the search function.
Step 2:
Move the search function to the left behind the FROMTO label. You can see what happens in the picture.
For test purposes, the search function has been reduced in width and shown again. It is located above the FROMTO label. Hide it and it disappears. No problem. But take a look at the controls. A mask on the right-hand side still somehow hides the table controls. The further I move the controls to the right, the more they disappear. How can I move the controls to the right?
Here is the code for moving the controls. What am I doing wrong or what am I overlooking?
B4X:
XTOptions.SearchField.mBase.Width = 5dip
XTOptions.SearchField.mBase.Left = XTOptions.lblFromTo.Left + XTOptions.lblFromTo.Width -150dip
XTOptions.lblFirst.Left = XTOptions.SearchField.mBase.Left + XTOptions.SearchField.mBase.Width
XTOptions.lblBack.Left = XTOptions.lblFirst.Left + XTOptions.lblFirst.Width
XTOptions.lblNumber.Left = XTOptions.lblBack.Left + XTOptions.lblBack.Width
XTOptions.lblNext.Left = XTOptions.lblNumber.Left + XTOptions.lblNumber.Width
XTOptions.lblLast.Left = XTOptions.lblNext.Left + XTOptions.lblNext.Width