Label Doesnt Support mouse Events???

  • Thread starter Thread starter Paul G. Tobey [eMVP]
  • Start date Start date
P

Paul G. Tobey [eMVP]

I'm not really clear on why you'd want to support 'mouse' events on a static
text item. Maybe you can clear this up for me...

Paul T.
 
Hey,
this is new for me...

I was developing calmly in my desk...
....Then i tried to capture the mouse events of the Label to implement some
funcionality....And then...The magic! Nothing works!

Labels in PocketPc Doesnot Support the Mouse events? Or iv made a mistake
somewhere ?

I think iv listend sumthing bout the Sp2...If this Sp solves my prob. Anyone
can point me to a place where i can download it?

Thx,
cya.
 
Here's a good place for me to ask my question ;-)

I want to create a "transparent" control with a visible border to put over
various other controls during one part of runtime mode, so when a user
"clicks on a control" I will be able to intercept based on position, and
bring up another form that gives them options (at runtime) to resize the
control underneath, e.g. make a commandbutton twice as large, then switch to
"user" runtime mode and actually click the button and have the button
functions work. I plan to do this for several controls (button, combobox,
textbox, checkbox, radiobutton, maybe others), so I was thinking a
transparent control (empty label?) was easier.

Lurking, I've seen the issues with transparency, so it appears I should use
a control that can hold pictures, take a picture of the underlying area, and
put it in the top control to make it "look" transparent?

Alternatively I'd be coding every control to determine which mode of runtime
is active (ick), and controls will be added dynamically at runtime, which
(for my hack/hobby programmer brain) sounds complicated...

am I on the right track, e.g. is figuring out how to take an image of the
background and putting it in a control that can hold a picture the best
approach?

Much thanks for any advice,
Keith
 
Well, I'd address the basic problem, not why the rather non-standard
work-around you are using does not work.

What's wrong with the result when you put things in a panel?

Paul T.
 
Let me see if I follow (you should also start a new thread, rather than
hijacking an existing one):

1. You want to give the programmer a control which will allow some special
options to be set at run time for other controls on a form.

2. The control's user interface is to float over other controls and, when
clicked, display options and, as a result of the option changes, adjust the
size, coloring, or whatever, of the underneath control(s).

Is that right? The first thing that comes to mind is 'why'? What's the use
scenario for this control? Why wouldn't you just add an Options form to the
program and set those options via a standard UI, rather than using something
tricky? You can answer by starting a new thread and detailing the scenario,
what you've tried or planned to try, and what happened...

Paul T.
 
Basically, the labels r static text itens, but i dont want them to stay that
way...
Well, let me tell u my problem, mayb u can help...
I have a form that has a dark cian Backcolor, and i want it that way.
I must use a checkBox and a OptionBox.
With These controls, i cant change the color of the font, or the background
color.
So iv tried to put them inside a panel...But damn...it throws me a vry ugly
result.
So iv tryed to use the optionbox, just the Space to check (the "o") and a
Label, and when i click in the label, opbx.checked = not opbx.checked...
But then...No clicks in a Compact Framework label.

Got it?
Can ya gimme a hand?
Thx
 
Yeah paul, i could put them in a panel. But iv noticed that the panel loads
much slower than 3 labels; and the design doesnt become as clean as i want,
cause of the colors. Anyway, ill b using the panel solution. Just answer me
two things: The label supports mouse events in SP2? The CheckBox and
optionBox support Forecolor/BackColor Change
 
Back
Top