Re: [WIN]Win32Lib: v50 : trap click in SIMPLE combo?

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

Derek,

I'm sorry, habit mislead me to use a not standard term in my post.  The
"SimpleCombo style of combo box defined by Win32Lib has a "static text
control" as an *inherent* part of it (instead of the *editable* control the
regular "Combo" has), and since "static text" controls are often used as
"labels" in a window, I just referred to it as a "label" instead of "static
text control". I got in a habit of calling such "static text control"s in my
programs "label1", "label2", etc, and forgot that they're really "static
text control"s.

That "label" ("static text control" ) is created by the inclusion of
CBS_DROPDOWNLIST as a style when the SimpleCombo is created, which is
"Similar to CBS_DROPDOWN, except that the edit control is replaced by a
static text item that displays the current selection in the list box. "

It's that *inherent* (not added on) "static text control", or "label" which
I would like to be able to trap clicks on, but in v50, if it's possible.  I
tried most everything I could think of, except onEvent, 'cause I don't know
how to use that.  I know that Win32Lib says that static text controls don't
trap events, but my presumption is that onEvent intercepts all windows
"stuff"(?), and windows certainly knows when the "static text control"
(label) in a SimpleCombo has been clicked on, so I figure maybe onEvent
should somehow be able to respond to a click on a "label" ("static text
control") which is part of a combo box?

Dan



----- Original Message -----
From: "Derek Parnell" <DerekP at IXCHANGE.COM.AU>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, November 30, 2000 8:21 PM
Subject: Re: [WIN]Win32Lib: v50 : trap click in SIMPLE combo?


> Hi Dan,
> >
> > Does anyone know how to trap a click event on the label of a
> > "simple" combo?
>
> No, win32lib doesn't capture this. I'll research it this weekend.
>
> > This is a combo with a label replacing the top edit box.
>
> I don't actually know what you mean by "replacing". Simple Combos don't
have
> labels. Are you referring to a LText control that is displayed over the
top
> of a SimpleCombo control? I can't picture what you are trying to do?
>
> > Problem seems to
> > be that because it has a label, and labels don't respond to
> > events, I can't
> > get a hook into it; yet clicking on the label does open the
> > combo box list,
>
> Again, a SimpleCombo doesn't have a label, so I don't know what you are
> talking about.
>
> > so *something* is able to sense and respond to a click.
>
> I'll see if I can get onClick and/or onChange to fire for SimpleCombos.
>
> -----
> Derek.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu