Re: MSFlexGrid - column widths
- From: Richard Lang <rlang@xxxxxxxxxxxxxxx>
- Date: Wed, 18 Apr 2007 16:27:07 +0100
Thomas Bernacki wrote:
Hi,
I did in fact go to the MSDN page first... that's where I got the
details on the method in the first place! And most of the stuff that
was there did indeed work fine - setting numbers of columns, rows,
putting data in, etc.
It was just the ColWidth that was giving me the unusual error. I
actually tried the MSFlexGrid control in VB, and the command
htable.ColWidth(0)=2000
works fine (that's the way MSDN says to do it with MSFlexGrid). In
Matlab though when I run that command it tells me:
??? No public field ColWidth exists for class
COM.MSFlexGridLib_MSFlexGrid_1.
I have tried everything, and I can't get the thing to work. I was
hoping that perhaps someone had actually tried it in Matlab and
gotten it to work, or whether this is actually some kind of bug. I'm
running Matlab R14 SP3 by the way.
Thanks!
Thomas Bernacki
Yair Altman wrote:
Try methodsview(htable) or methods(htable,'-full') to see the full
method signatures. Also look at msdn for online help (that was the
first Google link - come on!): <http://msdn2.microsoft.com/en-us/library/aa228849(VS.60).aspx>
Yair Altman
Thomas,
In Matlab, COM properties that require an argument to get or set them (in this case the column index) can only be set using the "set" command. This should work:
set(htable, 'ColWidth', 0, 1800);
Richard
.
- Follow-Ups:
- Re: MSFlexGrid - column widths
- From: thomas . bernacki
- Re: MSFlexGrid - column widths
- References:
- MSFlexGrid - column widths
- From: Thomas Bernacki
- MSFlexGrid - column widths
- Prev by Date: Re: Create a 3D-Diagramm of 4 data information
- Next by Date: Re: large binary files and txt 2 mat
- Previous by thread: Re: MSFlexGrid - column widths
- Next by thread: Re: MSFlexGrid - column widths
- Index(es):
Relevant Pages
|