Re: Win32Lib getNameId function

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

CChris wrote:
> 
> Mike777 wrote:
> > 
> > Using Enhanced IDE to build and run a program.  Works quite nicely.  Still a
> > few lingering questions, though.  I have a control that I attach a handler
> > to
> > the keypress event.  I can trap for specific keys.  However, some of the
> > functions
> > I would expect to work, don't seem to.  If I attempt to get the name of the
> > control by interrogating the self integer, I find that the integer is
> > properly
> > set but the function getIdName(self) doesn't return a sequence.  The
> > following
> > always displays "It is empty."
> > 
> > Thanks
> > 
> > Mike
> 
> The expected behaviour is as follow:
> - if the control was created on a form (not your case), then the name is the
> one you supply, standardised.
> - else it's the _initial_ caption, likewise.
> 
> I didn't check what IDE does, but I suspect it creates some control with an
> initial caption of "" and sets its font and text later. The name of your
> control
> will be "" then. 
> 
> CChris

Nope. The caption is initially the Name of the control. User may change the
caption of course.

judith evans

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

Search



Quick Links

User menu

Not signed in.

Misc Menu