How do I identify which control is being hovered over?

Hello all,
I have a simple feature of my code I am working on. I want to have a detailed help box ( a little more detailed than the tooltip popup option) with instructions I want to print on my screen.
The idea is that when I have an active control, the instructions will print in a small text box to give people guidance on my program.
This works for half of what I want to do.
But  in the case of a custom toolbar, I do not have that ability since I cannot click inside of it like a textbox.
I am using the tooltip, but I would like to be able to print a better, more detailed message in my help box.
Ideally what I would like to know if there is a function to be able to get which control is being highlighted or hovered over by panel and control id.
It's no big deal if there isn't one, but now I am curious.
Veni Vidi Duci

Hi,
if EVENT_GOT_FOCUS is not suitable for you another possibility could be to use a timer callback, and for every timer tick call GetRelativeMouseState (panel, 0, &x_coordinate, &y_coordinate, NULL, NULL, NULL); this will return the current position of the mouse cursor on the panel. To make use of it, at the beginning of your program you need to obtain the positions of your UI controls, e.g. using GetCtrlBoundingRect ( panel, control, &button.top, &button.left, &button.height, &button.width ). Then you need to check if the mouse is within a bounding box by comparing the mouse coordinate with the control coordinate...
But why are the tooltips not working for you?

Similar Messages

  • If I get an "Application.Run()" exception, how do I determine which control threw it?

    I've inherited some code with less-than-perfect exception handling.   Once in a while I get an unhandled exception.  The debugger breaks at Application.Run(),  which isn't very helpful.  Putting a try()/catch() around Application.Run() lets me display the stack trace, but this isn't helpful either -- all I learn from it is that some NI control somewhere threw an exception.
    Is there a way I can find the name of the control which threw the exception?
    A simple test case is:
    * project with one form, containing two NumericEdit controls
    * each control is set to a range of 0 to 100, with "OutOfRangeMode"  set to "ThrowException" (the default)
    Run the program. Enter a value of -1 in one of the controls  Without any exception handler provided, the excption appears at the Application.Run() level.  How can I tell which control thew the exception?  My actual application has dozens of controls and sometimes crashes at startup.  If I knew which control were out of range it'd probably be easy to fix.
    Thanks for ideas,
         Kevin

    You are not setting to default values at startup?

  • HOW i can identify  which instance is associated with which Listener

    Hi all,
    i created one DB instance. suppose named as "B". but there is already another DB instance present. Named as "A".
    Then i created one listener for DB instace "B".
    Now my Que. is that HOW i can identify which instance is associated with which Listener,.
    2) if i create listener then a service also created. if i stopped that service and then can i fire query OR Login again, WHAT will be the expected result.
    I tried by asking people for my answer. but not satisfied.
    Please Help me For this.
    Thanks in Advance

    856376 wrote:
    i want to start my carreer in DBA.
    In what manner i ahve to prepare my self.
    Your guidance will help me lot
    Thank youLike everything else, the answer is "it depends".
    What is your background and experience with computers, networks, operating systems, programming languages?
    What are you currently doing?
    What formal and or on the job training have you had?
    As Aman said, build yourself a test system and play with it. You can do this at no cost by ...
    1) download and install VMplayer (vmware.com). It is legally free. For an investment in your career of about US$185, you can buy VMworkstation, which has the same fundamental capability plus some nice management features.
    2) download and install Oracle Enterprise Linux (oracle.com). It is legally free. If you want a support contract, you pay for that.
    3) using (1) and (2) create a virtual linux server
    4) download and install Oracle Enterprise edition database (oracle.com). It is legally free for personal eduction.
    5) install (4) on (3).
    Beyond the above questions I have some boilerplate replies that fit here . . .
    if people want to be professionals in ANY field, the first knowledge they need to acquire is how to locate AND USE+ the fundamental reference materials for that profession. And the most important trait, the one for which they are really hired, is the ability to do independent research, and having a modicum of curiosity that would drive one to do that research. We don't mind helping newbies, and even the most experienced person on this board will run into something they are not familiar with, or occasionally just require a second set of eyes to look at something. But a professional+ needs, above all, a willingness and capability to check the docs. A professional isn't necessarily someone who has all the answers at their fingertips or has a full understanding about every arcane subject in their field. It certainly isn't someone who has an encyclopedia full of memorized answers but little understanding of how it all fits together. It's someone who knows where to find the answers when needed, how to recognize them when he sees them. It's less about knowing than it is about attitude. Everything you asked can be answered in the Oracle Concepts Manual at tahiti.oracle.com. You should bookmark that site.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.

  • TS2972 how can i identify which computers are authorized for i tunes

    How can I identify which computers are authorized for use with I tunes?

    Hi there,
    You can't see a list of your authorised computers, but you can see how many are authorised and deauthorise them individually or together.
    I've found you a relevent support article which explains all of this:
    iTunes Store: About authorization and deauthorization
    Hope this helps,
    Nathan

  • How to quickly identify which videos have H.264 codec?

    I'm now starting to convert my 500-some videos to H.264 for use with iTunes and Apple TV. The first thing I'd like to do is identify which videos are already encoded with the H.264 codec and which aren't. The Finder in Leopard has an option for searching for codecs, but it doesn't search for H.264 (it will only show whether a file is MPEG-4, for example. I could open the iTunes information window for every video and determine the codec that way, but it would take a long time to do so.
    What I'm looking for is some kind of software that will produce an immediate list showing which files have the H.264 codec and which don't. After separating the files I will do a batch encode of the non-H.264 files.
    I'd appreciate any advice you might have with this!

    You simply can't address it (fully).
    Quicktime has tons of Gamma issues and if a pc's video card is set to 16-235 instead of full range then VLC will washout video as well.
    What I "THINK" Jim is trying to say is that when you use a broadcast grade monitor to check color or a YC-waveform/VectorScope or any scopes for that matter you can make sure that everything is accurate (meaning within correct range color wise). Which means that when people expose your video to other factors such as ... Quicktime which messes up the Gamma of the video often times, and VLC which in some cases with people who don't set their PC's/Mac's video cards up correctly or someone using WMP. Or simply someone watching it on a TV set which is not anywhere close to being calibrated it will still come out looking good anyways in MOST scenarios. IF you check everything on scopes/professional broadcast monitors.
    So for instance I work in a TV station and everything I do has to be broadcast legal.So we use scopes and a pro monitor at our edit bay so that we can see how stuff actually looks. Then when someone watches it OTA or on Cable or w/e and they have their TV setup with a ton of extra chroma (color) then in this case for example since I setup my color correctly to begin with it won't look over saturated. Also if someone has a bunch of brightness on their set it won't look bad either. (Unless the TV set is just totally screwed up in which case you can't fix it or plan for that anyways)
    But to attempt to answer your question directly. No it won't make it look the same on every player it will simply be much more likely to make it look much more acceptable.
    (you can't control everything variable wise)
    http://wiki.videolan.org/VSG:Video:Color_nVidia
    http://community.avid.com/forums/p/101346/583706.aspx
    Obviously though I can't speak for Jim I'm just assuming that's what he meant when he spoke about why you need a pro monitor etc... If I'm incorrect I apologize Jim

  • How to find out which control triggered the event?

    In my program, there are six buttons that does similar things, like changing the value of an array depending on which button is clicked. I used an event structure to do this. However, instead of repeating my codes six times in six events (one for each button click), I'd like to program one event case that responds to any of the six buttons. The question is, how do I know which button is clicked inside the case (any of the button can be either false or true, so reading the button value won't help)?
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    Jeff Bohrer wrote:
    Oh when will the snipet tool get fixed?
    Jeff, are you using Ton Plomp's Code Capture tool? It is awesome for a lot of reasons. The nicest part is that when you do a capture it saves the snippet to a temporary file and places the path to the temp file in the clipboard. You can create a VI, capture a selection, then in the browse for image control on the forum you just paste the file name from the clipboard. No need to go through the hassle of saving the snippet first then browsing for it.
    Unfortunatly I'm behind a curtain here that discourages third party tools. I know of the third party stuff but it might as well not exist unless it comes on the installation DVD.  Thanks for the response though some other member may find the link useful
    I can't even load Firefox on this machine and am stuck with IE
    Jeff

  • How to find out which queries are being used ?

    We have a number of InfoSet Queries which the users are calling from SQ00. Some of them are very old.
    I would like to find out which queries are being used, so we can have the idle queries decommissioned.
    How can this be done ?
    Best regards,
    Peter

    Hi,
    It's been a while since I've done this but one method is to use ST03N & look for the execution of programs with an AQ* prefix.  The general structure is AQZZ/<query user group><query name>.
    You could probably get the same info from the audit log but I've not checked that.
    Cheers,

  • How can we identify which credit note applied to which AR Invoice?

    Hi,
    We are in 11.5.10.2.
    We want to migrate all the open transactions data of AR.I have few questions as given below :
    1.How do we identify in Invoice Entry screen where a credit memo is linked to Invoice.
    2.One credit note & 3 Invoices are applied with a Receipt,so how we can identify the invoice which is applied with credit note.
    3.Is there any possibility of applying credit memo directly to AR Invoice with out the receipt screen.

    Hello.
    1.How do we identify in Invoice Entry screen where a credit memo is linked to Invoice.
    2.One credit note & 3 Invoices are applied with a Receipt,so how we can identify the invoice which is applied with credit note.Query the invoice and navigate to Action/Installments/Activities.
    3.Is there any possibility of applying credit memo directly to AR Invoice with out the receipt screen. You probably can use an API. There are a lot of questions about this is the forum.
    Octavio

  • How do u find which screen is being used in userexit for transcaction

    I have a userexit in which there are 5 screens i want to find out which screen is being used for a particular transaction. I have activated all screens but cant figure out which screen is being used.

    Hi,
    if EVENT_GOT_FOCUS is not suitable for you another possibility could be to use a timer callback, and for every timer tick call GetRelativeMouseState (panel, 0, &x_coordinate, &y_coordinate, NULL, NULL, NULL); this will return the current position of the mouse cursor on the panel. To make use of it, at the beginning of your program you need to obtain the positions of your UI controls, e.g. using GetCtrlBoundingRect ( panel, control, &button.top, &button.left, &button.height, &button.width ). Then you need to check if the mouse is within a bounding box by comparing the mouse coordinate with the control coordinate...
    But why are the tooltips not working for you?

  • Mavericks: Sys Prefs:"Security" pane:"Privacy" tab: how can I identify apps controlling my Mac ?

    In the Mavericks: System Preferences:"Security" pane:"Privacy" tab:"Accessability" window -- how can I identify the 'paths' of apps that are allowed to control my Mac ?
    I currently have two apps named "Installer" , and I can't know where they are located, on my filesystem , so I don't know whether-or-not to uncheck their boxes !
    I have an Apple Support document, but it doesn't answer my issue:
    OS X: Using AppleScript with Accessibility and Security features in Mavericks

    If you have third party download and or installer software applications that you continue to use, then do not uncheck those items in Accessibility and Security in Mavericks. They are used to control your downloads  but if you are finished with the software uncheck and  said items.  Remember you can always recheck them anytime.

  • How can I identify which albums are associated with a specific picture.  I used to click on the picture and see the albums but don't know how to do it in 13?

    I keep pictures in Albums, specifically by year and then other topic albums. As a result some pictures are in several albums. Sometimes they are assigned in error.  I used to be able to click on a picture and see not only the tags but the albums associated with the picture.  How can I see which albums are assigned to a picture?

    Are you referring to the yellow text box that pops up like this?
    If it is those are called tooltips or anchor titles.  Cyclosaurus has posted script to block them: removing rollover html detail box: Apple Support Communities.
    OT

  • Multiple triggring events - How can you identify which one started the wf?

    Hi all,
    I would like to know if there is a way of identifying which triggering event started the wf.
    The situation is like this: i have a workflow that can be started by one of 6 triggering events (6 different situations for vendor master data - creation needed, extension needed, change needed and so on). I have to do different steps inside the workflow function of which event actually triggered the wf.
    Is there a container element that gets some sort of identification for the event that actually triggered the wf?
    I found a container element that holds the name of the event but it's a multiline container element (so i guess it holds all the event names) and i can't use it in a multiple condition.
    Thank you
    Cristina

    for those events, you can add want you want as abap dictionary
    it doesn't matter, just look in SE11, where you can find any kind of data element of type char1 and use that one.
    Those events, are those standard events or events that you trigger yourself with the function SWE_EVENT_CREATE?
    Edited by: Kristof De Bruecker on Mar 24, 2010 2:56 PM

  • How do I identify which is static and which is non static method?

    I have a question which is how can i justify which is static and which is non static method in a program? I need to explain why ? I think it the version 2 which is static. I can only said that it using using a reference. But am I correct or ?? Please advise....
    if I have the following :
    class Square
    private double side;
    public Square(double side)
    { this.side = side;
    public double findAreaVersion1()
    { return side * side;
    public double findAreaVersion2(Square sq)
    { return sq.side * sq.side;
    public void setSide(double s)
    { side = s;
    public double getSide()
    { return side;
    } //class Square
    Message was edited by:
    SummerCool

    I have a question which is how can i justify which is
    static and which is non static method in a program? I
    need to explain why ? I think it the version 2 which
    is static. I can only said that it using using a
    reference. But am I correct or ?? Please advise....If I am reading this correctly, that you think that your version 2 is a static method, then you are wrong and need to review your java textbook on static vs non-static functions and variables.

  • How do I identify which generation iPod touch I haver

    How do I identify what generation my iPod touch is? The iOS is 5.1.1 and iTunes and the iPod  say the software is up to date.

    You have a 3rd generation iPod based on the fact that iOS 5.1.1 is the latest version for it.

  • Using the RFC adapter (sender), how do I know which RFC is being sent?

    Hello everyone!
    Has anyone used the RFC adapter (sender) in XI to pick up RFC messages? How would I know which RFC is triggered for example when a user creates a PO (purchase order)?
    Warm Regards,
    Glenn

    Glenn,
    When u are writinfg RFC program, u will have destination right?  There u know u have to give RFC Destination(SM59) while creating RFC destination we will be giving Program ID .
    Similarly in XI while creating Sender RFC u have to give the program id. So with these program id these programs are linked together and triggered from R/3 to the exact Sender adapter.
    Please see Michal weblog for more details
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    I hope it clears your doubt!!!
    Best regards,
    raj.

Maybe you are looking for