Hi, I'm having trouble keeping the navbar in the order I put it in. I have 5 panels and they keep jumping in different order, either in design time and/or run time:
Hi,
The issue is difficult to explain and reproduce. I've seen this happen a few times before but can't exactly nail down the cause except to say that whenever you start moving the control around, i.e., setting the Align to different values, saving it, reopening to do more work, saving, moving the control on the form, left side, right side, client, resizing it for Windows, resizing it for Android, compiling it for different Android tablets (LG Pad 7" kitkat 4.4.2 800x1200, Acer Iconia Tab 8 kitkat 4.4.4 800x1200, and Dell Venue 8 1200x1900 kitkat 4.4.4) and the list goes on with respect to doing various work on the project.
This is possible an issue when converting a project from an older version of RAD Studio to a new version of RAD Studio. It's unclear why this causes issues, but in various cases the issue is fixed by creating a new project in the active development environment. You could also try to create the TTMSFMXNavBar programmatically and assign the parent of each list in the constructor of the form to the correct page. This way you can avoid having to redesign each form when upgrading to a newer version of RAD Studio in the future. If the issue is reproducible in a separate new project then you can always send it so we can investigate here.
Update..
var
Form1: TForm1;
sSQL : string;
DBPath: string;
implementation
{$R *.fmx}
{$R *.LgXhdpiTb.fmx ANDROID}
{$R *.XLgXhdpiTb.fmx ANDROID}
procedure TForm1.FormCreate(Sender: TObject);
begin
//
//navbar.ActiveTabIndex:=0;
end;
{$R *.LgXhdpiTb.fmx ANDROID}
{$R *.XLgXhdpiTb.fmx ANDROID}
Hi,
Hi, I am just reporting that I am experiencing the same problem. The tab ordering is randomly scrambled again.
Hi,
ok. Now I am plagued by this issue again. And this time, it seems to be permanent.
procedure TForm1.btnPrintPreviewClick(Sender: TObject);
var
DPath: string;
begin
DPath := TPath.GetHomePath + PathDelim + 'manifest.html';
// convert to html and save in default path
datagridManifest.ExportHtml(Dpath);
// tell the routine we are opening a file.
DPath := 'file:///'+DPath;
// set the actual TAB active for the browser preview to show manifest.html
tabcontrol1.TabIndex:=1;
// refresh .html file with latest info from manifest.html file def path.
txtURL.Text := DPath;
// now, if we are in windows, lets use the TMS browser control, else
// we use the twebbrowser from delphi in Android.
{$ifdef MSWINDOWS}
wb1.Visible := false;
wb1tms.Visible := true;
wb1tms.URL := dpath;
wb1tms.Navigate;
{$endif}
// if we are in Android device, display the twebbrowser
{$ifdef ANDROID}
wb1tms.Visible := false;
wb1.Visible := true;
wb1.URL := dpath;
wb1.Navigate;
{$endif}
end;
{$ifdef MSWINDOWS}
wb1.Visible := false;
wb1tms.Visible := true;
wb1tms.URL := dpath;
wb1tms.Navigate;
{$endif}
// if we are in Android device, display the twebbrowser
{$ifdef ANDROID}
wb1tms.Visible := false;
wb1.Visible := true;
wb1.URL := dpath;
wb1.Navigate;
{$endif}
Unfortunately we are not able to reproduce this here, not in an existing and not in a new project, so it's unclear how this issue can be reproduced, but the easiest workaround is to use SendToBack and BringToFront programmatically to try and re-order the panels in the correct order before displaying the navbar.
I was able use a previous project build to get the navbar working correctly as before. I just have to be more careful and keep synchronized backups. As always, thank you for your support.