Win32Lib getNameId function

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

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."

procedure myCheckBoxTest_onKeyDown (integer self, integer event, sequence
params)--params is ( atom scanCode, atom shift )

integer myInteger

if sequence(getIdName(self)) and length(getIdName(self)) > 0 then
   myInteger = message_box(sprintf("%s",getIdName(self)),"",0)
elsif sequence(getIdName(self)) then
   myInteger = message_box("It is empty","",0)
elsif integer(getIdName(self)) then
   myInteger = message_box(sprintf("%d",getIdName(self)),"",0)
end if

end procedure


Thanks

Mike

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

Search



Quick Links

User menu

Not signed in.

Misc Menu