Re: Control Lifecycle and Stuff
- From: <rlrcstr@xxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Feb 2006 11:12:15 -0500
Thanks Yuan... The DIV concept may work for me. I've ahad to play with it
a bit and still have a couple of questions:
If I make a control that detects clicks on several elements, how do I pass
any of those clicks up to the parent as a standard click event? I've seen
stuff about bubbling up events, but not sure how to do it. (Basically,
assume my custom control is three HTML images. Regardless of which image
the user clicks on, the same click event should be triggered.)
Also, how can I set a property to default to the ID assigned to the control?
Thanks.
Jerry
""Yuan Ren[MSFT]"" <v-yren@xxxxxxxxxxxxx> wrote in message
news:VaEUvQHLGHA.668@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Jerry,that
Thanks for posting!
"First, is there a better way to accomplish this effect without creatingseparate images for every button that I want to use in my app?"
If the image is generated dynamically, I think using the GDI+ is a correct
way for implementation.
"Is there an HTML control that can act as a button and that let's you puta label over background graphics?"
Based on my experience, you can use the div which includes the button and
the label. Then, we can capture the click event of the div by using the
JavaScript. In the JavaScript code, calling the button click event.
"While I have all the image manipulation code working, and the buttonseems to render just fine at design time, when I try to run a web page
uses the control, I get a GDI+ exception."method
Could you please supply the details of the exception?
"How do I tell the control not to run the GDI code at run time?"I'm sorry I can not understand the issue clearly. Does this mean the
is just called in design time but not in run time?
Regards,
Yuan Ren [MSFT]
Microsoft Online Support
.
- Follow-Ups:
- Re: Control Lifecycle and Stuff
- From: "Yuan Ren[MSFT]"
- Re: Control Lifecycle and Stuff
- References:
- Control Lifecycle and Stuff
- From: rlrcstr
- RE: Control Lifecycle and Stuff
- From: "Yuan Ren[MSFT]"
- Control Lifecycle and Stuff
- Prev by Date: Re: Click Event Not Firing
- Next by Date: Raising a click event
- Previous by thread: RE: Control Lifecycle and Stuff
- Next by thread: Re: Control Lifecycle and Stuff
- Index(es):
Relevant Pages
|