MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only
  • 1.  Alter Designer Frame style using Mapbasic

    Posted 06-04-2018 13:54

    I've created a frame into a Layout Designer with a set pen and brush style.

    Create Frame into window layout_id (0.9101,9.1951) (4.4927,11.2819) Pen(1,2,0) Brush(2,16776960,16776960) Name "TEST"

    I then wish to change that style and I'm trying to use the syntax below but it will not compile. Is it possible to change the style of a frame once created or is this limited to certain types of frame.

    alter designer frame window layout_id ID LayoutItemID(Layout_ID,"TEST",-1) style region Pen(1,1,0) Brush(1,16776960,16776960).

     

    I'm using MapInfo & MapBasic v16.0.3

     

    Thanks



  • 2.  RE: Alter Designer Frame style using Mapbasic

    Posted 06-04-2018 09:58

    HI David,

    Unfortunately you can only change the Layout frame style using the GUI Frame Properties dialog. There is no MapBasic yet to support it.



  • 3.  RE: Alter Designer Frame style using Mapbasic

    Posted 06-04-2018 10:14

    David, there is a task for us to work on this. I'm not sure yet when it will be assigned.



  • 4.  RE: Alter Designer Frame style using Mapbasic

    Posted 06-04-2018 10:16

    Hi Michele, Is there a .NET call I could make to change the frame style, otherwise I'll have to just delete it prior to saving to the workspace? The workspace was to be used as a print template and the frame updated with the map, but the map appears coloured.



  • 5.  RE: Alter Designer Frame style using Mapbasic

    Posted 06-04-2018 10:40

    Hi David, sorry - there is no .NET call.