RE: [Win32Lib] Click on Label

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

Is this what you mean:
SS_NOTIFY will enable events


--  code generated by Win32Lib IDE v0.18.3

 
include Win32Lib.ew
without warning

--------------------------------------------------------------------------------

--  Window w
constant w = createEx( Window, "", 0, Default, Default, 400, 300, 0, 0 )
constant LText2 = createEx( LText, "Click here", w, 112, 32, 148, 20, 
or_all({SS_NOTIFY}), 0 )--SS_NOTIFY will enable events
---------------------------------------------------------
--------------------------------------------------------------------------------

procedure LText2_onClick (integer self, integer event, sequence 
params)--params is ()
puts(1,"Label clicked")
end procedure
setHandler( LText2, w32HClick, routine_id("LText2_onClick"))


WinMain( w,Normal )



euphoric wrote:
> 
> 
> Derek Parnell wrote:
> 
> >...if it's okay to just respond to a click anywhere in the text,then you 
> >can use a simple child window.
> >
> >Here is an extended example program...
> >  
> >
> <code snipped>
> 
> Yeah, that will work fine.
> 
> To satiate curiosity, why don't labels respond to events?
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu