Re: EuCom - Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jonas Temple wrote:
> 
> Matt Lewis wrote:
> 
> > It's saying that your type is wrong (or maybe it's just the method/property
> > thing).  My guess is that it should be either VT_UNKNOWN or VT_PTR.  You
> > can look in variant.ew for all different VT_ constants.
> > 
> 
> Well, I tried VT_UNKNOWN and VT_PTR but it didn't like those, so I went
> back to VT_I4 and it worked!

COM is usually pretty good about converting variants as need be, and the
more specific types are usually pretty specialized.  I find that I rarely
need any types other than VT_I4 and VT_BSTR.
 
> Now the only problem I'm having is the tree and list controls are in the
> same location in the window (regardless of what I specified in
> create_com_control).  Any idea what might be going on there?

Not sure.  It could be that the controls are using some other method than
the one that I 'figured out' in writing EuCOM to position themselves.
Try manually calling move_obj().  I see now that it's undocumented,
which I'll fix.  Very simple to use:

proc move_obj( integer obj_ix, sequence new_rect )
+ obj_ix: EuCOM index of the object
+ new_rect: { x, y, cx, cy }

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu