Jump to content

MTEXT column lisp


iconeo

Recommended Posts

Is there any lisp out there that when scaling mtext with columns, resizes the columns appropriately?

 

My googling skills failed me...

 

Thanks.

Link to comment
Share on other sites

You could set the column width using some method of working out mtext line lengths

 

(setq colwidth 30)
; do something here to work out line length 
(setq objtable (vla-addtable vgms sp numrows numcolumns rowheight colwidth))
........
(vla-setcolumnwidth objtable 0 colval) ; 0 is first column colval is the width of the columns under the heading
(vla-setcolumnwidth objtable 1 30) ; 2nd column
(vla-setcolumnwidth objtable 2 60) ; 3rd column

Link to comment
Share on other sites

You could set the column width using some method of working out mtext line lengths

 

(setq colwidth 30)
; do something here to work out line length 
(setq objtable (vla-addtable vgms sp numrows numcolumns rowheight colwidth))
........
(vla-setcolumnwidth objtable 0 colval) ; 0 is first column colval is the width of the columns under the heading
(vla-setcolumnwidth objtable 1 30) ; 2nd column
(vla-setcolumnwidth objtable 2 60) ; 3rd column

 

Thanks BIGAL, I'll give it a whirl.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...