Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

No go on Android

 Post Reply Post Reply
Author
Estabillo Michael View Drop Down
New Member
New Member
Avatar

Joined: 30 Oct 2012
Posts: 5
Post Options Post Options   Quote Estabillo Michael Quote  Post ReplyReply Direct Link To This Post Topic: No go on Android
    Posted: 25 Mar 2020 at 11:33pm
Hello,

tried the demo WebOSMapsDemo.dproj, works on Windows but does not on Android. Only the delphi splash screen is showing?!

What am I doing wrong?

Thanks and regards

Michael
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2313
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2020 at 8:13am
Hi,

Can you please follow instructions on this page?


Back to Top
Estabillo Michael View Drop Down
New Member
New Member
Avatar

Joined: 30 Oct 2012
Posts: 5
Post Options Post Options   Quote Estabillo Michael Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2020 at 10:42am
Hi Bart,

thanks, I could not find this in "Developer Guide" and did not get that error message.

Windows: It seams that it does not work on a TTabControl as expected.

However, the following code works on Windows:

  if tcMain.ActiveTab = tiService then
  begin
    TabItemBackgroundAssign(rectService);

    AlignBottom(tcMain); // TTabControl
    tcMain.Height := tiService.Height + 4;
    womMap.Enabled := False; // TTMSFMXWebOSMaps
    womMap.Visible := True;
    AlignClient(womMap);

    // Delayed, otherwise Exception 80020101 in TMS
    ExecDelayed(
      procedure
      begin
        // Delete and prepare Marker here...
        // ...and then enable
        ServiceInit;
      end);
  end
  else
  begin
     AlignClient(tcMain);
     womMap.Enabled := False;
     womMap.Visible := False;
  end;

I need this disabled/invisible on startup. On Android I only see a blank control (also in demo when making visible/enabled at runtime).

What is a good way to archive this on Android?

Is there some kind of specific Update/Refresh/Invalidate method on Android?

Thanks and Regards

Michael
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2313
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2020 at 11:02am
The TTabControl issue is a known limitation: 
https://www.tmssoftware.com/site/tmsfmxwebgmaps.asp?s=faq&show=685

The map is automatically initilaized on startup.
You can use theVisible property to hide the map and the TTTMSFMXWebOSMaps.Reinitialize call to reset the map.
Back to Top
Estabillo Michael View Drop Down
New Member
New Member
Avatar

Joined: 30 Oct 2012
Posts: 5
Post Options Post Options   Quote Estabillo Michael Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2020 at 1:33pm
Yes, "Reinitialize" does it for me.

Thanks again...

Michael
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2313
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 26 Mar 2020 at 1:40pm
Thank you for confirming the issue was resolved.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down