I have created a text object, but then I want to change this object (front and size, ....).

Example: I have created a text object is "Memory" the front is "news Roman Times" and the size is 12. I want to change this object to "Future" to the front is "Arial" and size 15. Could you show me how to do it? I found some written material that was not done. Is that right?

  • 3
    Welcome to gis.stackexchange! Please note that a good question on this site is expected to show some degree of research on your part, i.e. what you have tried and code so far. For more info, you can check our faq. – underdark Jan 17 '15 at 19:16
  • Sorry everyone for my not clear question. I have edited and hope you help me again. Thanks – Nguyễn Việt Hưng Jan 19 '15 at 7:22

Have a look at the Alter Object statement in the MapBasic help system.

You need to change the Info using the OBJ_INFO_TEXTFONT object_info_code:

Alter Object oMemory
   Info OBJ_INFO_TEXTFONT, MakeFont("Arial",0,15,0)

Note that in the statement above oMemory is the name of your Object variable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.