Re: MSFlexGrid - column widths



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
.



Relevant Pages

  • Re: configuring FTP Server in wince device.
    ... It's all in the registry settings - the MSDN page covers it. ... From the command line on thedevicerun the following: ... dragging the catalog item and i am sure that ftpd.dll is included in ...
    (microsoft.public.windowsce.embedded)
  • Re: Command line compilation of visual studio project files.
    ... Microsoft support line - MSDN has nothing to do with it. ... As far as I know Microsoft is obliged to answer in 3 days to MSDN ... /rebuild and /clean command line parameters to devenv. ... Search for devenv in the VS help index and you'll see an entry discussing ...
    (microsoft.public.vstudio.development)
  • Re: C portability is a myth
    ... and returns after the command has been completed. ... the exit code of the command will ... ANSI C, POSIX.2, BSD 4.3 ... Neither MSDN nor man pages define C. ...
    (comp.lang.c)
  • Re: Newbie Question
    ... This is not the normal purpose, so have a look at AdoNet on MSDN. ... The only thing not written here was I thought how to set a connection ... This is for SQL server that is SQLclient.SQLxxxxx for Access or other it can ... i have a form with two text boxes and a command button. ...
    (microsoft.public.dotnet.languages.vb)