By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,398 Members | 982 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,398 IT Pros & Developers. It's quick & easy.

On Click on Page

P: n/a
I have a form with tab controls and each tab marks a page.

However, if I try to use the "OnClick" event for that page, it only works in
few spots on the page. The rest of the page (where it does not work) is the
"Detail" section.

Why are some sections of the "page" the real thing i.e. page and the adjacent
segment is the detail section?

How can I get the "OnClick" event to work for the whole page.

Thank you for the help in advance.
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The "OnClick" for a page works only on areas which aren't part of any other
unit.
One work-around, admittedly a bit cumbersome, would go like this:
Create a separate function to do whatever you want to have happen if the
mouse is clicked.
Call this function in the OnClick of the page, the Detail section, and
each control.
Although it's not especially recommended, a quick way to implement
this is to select everything you want to include in the Click, then write
the name of the function in the OnClick line of the property box.

HTH
- Turtle

"MFS 43" <mf***@aol.com> wrote in message
news:20***************************@mb-m18.aol.com...
I have a form with tab controls and each tab marks a page.

However, if I try to use the "OnClick" event for that page, it only works in few spots on the page. The rest of the page (where it does not work) is the "Detail" section.

Why are some sections of the "page" the real thing i.e. page and the adjacent segment is the detail section?

How can I get the "OnClick" event to work for the whole page.

Thank you for the help in advance.

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.