How to disable mouse click on checkbox for each treeviewitem?

treeview provode checkbox with state picture. When click on the pic, it will change the state pic.
I want to have this on display, but only for display, not allow user click on it to switch state pic. It means checkbox is read-only.
How to do it?

Hi,
You can do this :
-Create a function :
wf_set_checkbox_state (long al_tvihandle, long al_state) {
     treeviewitem ltvi
     tv_1.GetItem ( al_tvihandle, ltvi)
     ltvi.statepictureindex = al_state
     tv_1.SetItem ( al_tvihandle, ltvi )
-In the Clicked Event of the treeview add this code :
long  ll_state
treeviewitem ltvi
tv_1.GetItem ( handle, ltvi)
ll_state = ltvi.statepictureindex
post wf_set_checkbox_state (handle, ll_state)
Regards.
Abdallah.

Similar Messages

  • How to disable mouse click ??

    hi ,
    i have a form in which i have a block abc in this there are 5 items say a,b,c,d,e
    suppose my cursor is in item field 'a' there i have entered some value then i go to item field b and entered some value and then i go to field c without any enter or tab but with the help of mouse only. there i want to put a trigger on block level ( on-mouse-click) that whenever anyone tries to move from the current field to another field with the help of mouse then the cursor should be moved to previous item automatically that is item 'b'. in breif i want to disable mouse click from moving one field to another.
    on-mouse-click i can store system.current_item i.e 'a' but not able to store previous field i.e 'b'.
    please help....
    thanks
    Edited by: Hi FRNzzz!! on Feb 23, 2010 7:10 PM

    Hello,
    Try to set the mouse navigation limit form-level property to item when you want to disable the mouse.
    Francois

  • How to disable right click on your mouse

    hello people ,, cananyone please tell me how to disable
    rightmouse click on my website ,or on my site's photos please
    help

    PLease don't. Not only is it useless as you say, it's a waste
    of time, and
    compromises your website.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "JoeyD1978" <[email protected]> wrote in
    message
    news:gd01lq$1s9$[email protected]..
    > Copy and paste this into the head of your document:
    >
    > <script language="JavaScript">
    > // <!-- var popup="Sorry, right-click
    > is disabled.\n\nThis Site Copyright ?2008"; function
    noway(go) { if
    > (document.all) { if (event.button == 2) { alert(popup);
    return false; } }
    > if
    > (document.layers)
    > { if (go.which == 3) { alert(popup); return false; } } }
    if
    > (document.layers)
    > { document.captureEvents(Event.MOUSEDOWN); }
    document.onmousedown=noway;
    > //
    > -->
    > </script>
    >
    > Keep in mind it's completely useless, and the moment you
    place your photos
    > on
    > the internet someone can acquire them with minimal
    effort. You'll also be
    > damaging the usability of the site by using the script,
    again while
    > gaining
    > absolutely nothing.
    >

  • How to disable a default selection checkbox in the tableview

    Hi All,
             How to disable a default selection checkbox in the tableview ???
    I have  a tableview  with a iterator class mentioned on the iterator attribute of the table view. Table is a MULTISELECT tableview . Is it possible to disable or make it invisible a particular row selection check box?.
    For my scenario I have Currency values on all the columns and I want to do a sub total overall total for all the price column fields in the last row of that table. I archived this functionality using Iterator class method. But I don't want the user to delete that last row in any case.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Hi,
      You can NOT disable the "Checkbox" of particular row using HTMLB. I had the same requirement. I achieved using <b>2 Tableviews</b>, one after another. 1st tableview will show all the rows and 2nd Tableview(without Table Header) and without any row. The <b>total</b> will be displayed as <b>Column title</b> of 2nd Tableview.
    Here is the code of 2nd tableview which we used to display the Total:
              <htmlb:tableView id                  = "tv2"
                               headerVisible       = "false"
                               keyColumn           = "appid"
                               footerVisible       = "false"
                               selectionMode       = "SINGLESELECT"
                               design              = "ALTERNATING"
                               fillUpEmptyRows     = "false"
                               visibleRowCount     = "0"
                               width               = "100%"
                               table               = "<%= tot_header %>" >
                <htmlb:tableViewColumns>
                  <htmlb:tableViewColumn columnName = "empno"
                                         title      = "Total"
                                         width      = "50"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ename"
                                         title      = "  *      "
                                         width      = "90"
                                         type       = "TEXT" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "appamount"
                                         title      = "   <%= tot_appamt %> "
                                         width      = "60" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "ugjr_amt"
                                         width      = "60"
                                         title      = "<%= tot_ugjr %>" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "apprvd"
                                         width      = "50"
                                         title      = "*" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>
    Hope this will help you.
    <b>Note: Reward each useful post.</b>
    Raja T
    Message was edited by:
            Raja T

  • How to disable right click option re-size on table column header?

    Hi All,
    Please let us know how to disable right click option re-size on table column header.
    The issue is that when I right click on the column header, the column is selected and the context menu with options like Sort, Columns, Resize Columns, etc.. is popping. we want to disable column  re-size option.
    We are binding the table values programatically (not using Bc4J) and the Jdeveloper version is 11.1.2.2
    Thanks in advance,
    - Vignesh S.

    Hi Gawish,
    Thanks for the reply.
    This will make the particular column frozen and only work for that particular column.
    My use case is that to remove the resize columns option from the context menu or to disable the right click option.
    Making column selection as none will disable the right click option but we need column selection for sorting.
    Is there any other way to achieve this?
    Thanks in advance,
    -Vignesh S.

  • How to disable the Language dependent option for 0PROJECT and 0WBS_ELEMT

    Hi Friends,
                Some Info Objects are re installed in latest version that's why DBW and QBW is not sinked. that's why giving transports errors.
               In DBW both Info Objects(0PROJECT and 0WBS_ELEMT) having the option text language dependent is checked. I go for disable that option it is not accepting to disable.
              when i am going to delete the data from both the info objects it's not deleting the data from both the objects. it is giving message some master data is not deleting.
           Please give me solution for this how to disable text language dependent option for both the objects.
       I am waiting for your valuable replies.
    Thanks,
    Guna.

    Hi Rajesh,
              i did that changes in RSD1 but not accepting that change.
    It is showing the error message for The Text Table /BI0/TPROJECT must be converted incompatibly with an activation of characteristic 0PROJECT (changes to the key in the table). Table /BI0/TPROJECT contains data. Parts of this data were lost in the conversion.
    Please give me help for solving this issue.
    Thnaks,
    Guna.
    Edited by: gunasekhar raya on Mar 24, 2009 11:58 AM
    Edited by: gunasekhar raya on Mar 24, 2009 5:42 PM
    Edited by: gunasekhar raya on Mar 24, 2009 5:43 PM

  • How to disable right click in a transaction?

    Hi,
         How to disable right click in transaction.
    i.e, While in CRMD_BUS2000111, in partners tab, when we right click, a pop up window appears. I don't want this to happen. I don t want the window to pop up.
    How can this be achieved witout changing any standard code?
    Regards,
    Varun

    Hi Amit,
    Tcode - CRMD_BUS2000111
    Regards,
    Varun

  • How to disable right click on SAP portal login page

    Hi,
    How to disable right click on SAP portal login page. Our requirement is one should not be able to right click -
    >view source. on the portal login page.
    Best Regars,
    Tushar

    Hi Tchanvan,
    If you search google with "javascript disable right click" you will get loads of javascript code. This will also help you to gain knowledge.
    @Explanation to last post : You need to import standard logon par file in NWDS. Create javascript file to disable right click and then include this file in your logon page. i think login page name is portalLogin.jsp and then deploy this new PAR file.
    regards,
    Jigar Oza

  • How do I get separate iCloud accounts for each family members device and still share iTunes?

    how do I get separate iCloud's for each family members iPhone, iPod and iPad and still share iTunes?

    Have everyone share the same iTunes store ID, but use separate IDs for iCloud.  The ID you use for iCloud does not have to be the same as the ID you use for the iTunes & App store.

  • Use labview to read an Excel file to some control and add a checkbox for each row

      As the subject say,I need to use labview to read an excel file,and show it in some control,such as mclb;then ,I should add an checkbox for each row,enable me to choose the row i want.What should I do ? Many Thanks.
    Solved!
    Go to Solution.

    Hi,
    to answer your question:
    - read an excel file
    - show it in some control, such as a MCLB
    - add an checkbox for each row
    - choose the row you want
    Hint to make it easier: I wouldn't use checkboxes, as the MCLB already allows to select rows by mouseclick…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to disable mouse actions for Spotlight?

    Spotlight causes me problems, because it is activated, when the middle button of my three-button mouse is pressed. Many X11 and Windows applications have some functions for the middle button and then Spotlight grabs it and nothing else works as it should. Hence, I would like to disable all such mouse functions in Spotlight and other mouse bindings and use mouse only as a pointing device, as it originally was intended to. How can this be done - I cannot find any such hotkeys etc. defined in System Preferences.
    ArNO
    2

    ArNo,
    the central button can be programmed to do anything from System preferences ->Keyboard and Mouse-> Mouse. Use the drop down box to select "none" if you dont want the middle button to do anything.
    If you use a lot of x11 apps that require a different set of actions than the normal mouse environment, I would consider creating a separate user account and turn on fast user switching in system preferences->accounts.
    Then you can customize the user environment (mouse actions, etc) to be utilized differently for each unique operating environment.

  • How to unbind mouse click 4&5 on firefox, because I use taht for an other software ?

    I want to unbind mouse click 4 & 5 on firefox.
    Because I use this buttons fort "Mumlble (chatvocal)"
    When I click on my button 4 or 5 of my mouse, firefox goes to the previous or next page. Can you help me please ?
    (I want not change my bind on mumble, it for that I want delete the button 4 & 5 of my mouse on firefox)

    Try http://www.highrez.co.uk/downloads/XMouseButtonControl.htm - X-Mouse Button Control

  • How to disable double click to move through many tabs? Double click should mean move to next tab, twice

    I just upgraded to new firefox and there seems to be a new "feature", which makes working with multiple (50-80+) tabs impossible.
    When I click the move to left tab / move to right tab button, instead of being moved twice, everything jumps at gigantic speed for 15 or 20 tabs (something like PG up, PG down button maybe).
    This makes firefox unusable and Im considering downgrading.
    How to disable this "feature"?
    I tried messing around with
    toolkit.scrollbox
    but apparently the new mentality of the developers is "WE KNOW BETTER".
    How can I fix this?

    You can hold down the mouse button on a scroll button a bit longer to initiate scrolling multiple tabs.<br />
    Otherwise you need to wait longer between the clicks on the scroll button.<br />
    If you click twice on a tab bar scroll button too fast then you perform a 'page up' or 'page down' and the tabs scroll a tab bar width like you noticed.
    I'm not sure what you mean with new feature because this is the behavior in Firefox 3.6.x as well.

  • How to disable "overwrite exisintg files" checkbox from Upload.aspx

    Hi Folks,
    I have a requirment to disable 'Overwrite existing files' check box from upload.aspx for only 2 specific libraries and it should be in visible for rest of libraries.
    could you please share the code snippet / any other suggestions to make it full this requirement.
    Thanks,
    janaiah

    Hi 
    you can use jquery to do so.
    $(document).ready(function()
        var
    form = $('form');
        if
    ( form.attr('action').indexOf('YOUR 36 character List ID - Without Braces') > -1 )
            var
    checkbox = $('#ctl00_PlaceHolderMain_UploadDocumentSection_ctl03_OverwriteSingle');
            checkbox.prop('checked',false);
            checkbox.parent().hide();
            var
    multiple = $('#ctl00_PlaceHolderMain_UploadDocumentSection_ctl03_UploadMultipleLink');
            multiple.hide();
    https://sharepoint4u.wordpress.com/2013/08/13/how-to-disable-overwrite-exisintg-files-in-a-library/
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Automator - How do I: Mouse Click, Move Windows, and more

    Hello,
    I am attempting to create my own Automator programs and for a while I had some that worked nicely. I have recently been tweaking my iMac so that it can "think" on its own (by automator of course) and do things for me. However, I've run across a block with Mavericks (I believe it's due to Mavericks).
    1. How can I get Automator to register a mouse click? "Watch me do" does not seem to want to work for me at all. I also would prefer if it would just be a registered mouse click, but not actually use the mouse (I know this is possible) so that if I'm doing something and it runs, it won't disturb my mouse and I can keep working.
    2. How can I register a keyboard stroke? Same as above
    3. How can I have automator move windows? I have two monitors and there are times when I may want it to move a window from one mintor to another
    The following is a list of all the things I'm attempting to accomplish at the moment (with other things when I think of them) with automator (either through applications, folder actions, or ical actions):
    1. Register a mouse click at a given area or on a given element in a safari page
    2. Register a keyboard stroke in a given program (be able to focus on a program and then do the keystroke)
    3. Move windows from one location to another
    4. Full-screen and Un-full-screen iTunes at certain times of day
    5. Download all purchased items on iTunes that aren't on the computer (sometimes iTunes doesn't download stuff if it was downloaded on my MacBook Pro first)
    6. Automatically voice read reminders (that I've set in Reminders) each day at a given time (I can use loop to repeat it to make sure I hear it all)
    I'll think of more of course, but the mouse click, keyboard stroke, and moving windows is the big thing I'm trying to figure out how to do. Can anyone help?
    Also, I am not a computer tech. I am tinkering with this because it's fun and helpful, but an answer of "just use applescript" or "just use java" will likely just give me a headache. I know that it's going to be one of those codes, but I'm hoping someone has a "base" code that can be copied and pasted that's just a standard click that I can adjust for where I need to click and what process I need to click on.
    If there is an Action Pack that includes a "Register Mouse Click" and/or "Register Keyboard Stroke", then that would work great, but the only action packs for automator I've seen that work with Mavericks is for photoshop.

    You're asking for a lot in one post.  It would be better to break your requests down a bit. 
    For example, to deal with mouse clicks, you can use the Automator Action Run Shell Script with this python script:
    import sys
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
            theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
            CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
            mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclick(posx,posy):
            mouseEvent(kCGEventLeftMouseDown, posx,posy);
            mouseEvent(kCGEventLeftMouseUp, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # Click the "Apple"
    mouseclick(25, 5);  
    # 1 second delay       
    time.sleep(1);        
    # Restore mouse position
    mousemove(int(currentpos.x),int(currentpos.y))
    It will look like this in Automator:
    To drag something (i.e. a window, a file icon) from position 40,60 to 60,300:
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
               theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
               CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
               mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclickdn(posx,posy):
               mouseEvent(kCGEventLeftMouseDown, posx,posy);
    def mouseclickup(posx,posy):
               mouseEvent(kCGEventLeftMouseUp, posx,posy);
    def mousedrag(posx,posy):
               mouseEvent(kCGEventLeftMouseDragged, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # move mouse to upper left of screen
    mouseclickdn(40, 60);
    # drag icon to new location
    mousedrag(60, 300);
    # release mouse
    mouseclickup(60, 300);
    # necessary delay
    time.sleep(1);
    # return mouse to start positon
    mouseclickdn(int(currentpos.x),int(currentpos.y));
    For keystokes in AppleScript (which can be added to Automator with the Run Applescript Action) see: http://dougscripts.com/itunes/itinfo/keycodes.php

Maybe you are looking for

  • Calendar display problem

    Hello!  I've got a 3GS and recently the calendar doesn't display correctly.  The right hand half of the Sunday column is missing (just white).  This makes clicking on a Sunday very difficult and seeing events impossible.  Everything is up to date.  A

  • IBooks on iOS4 3rd gen iPod touch 64GB - crash causing reset

    I'm not sure if others have experienced the problem but I've been using iBooks and I'm finding that the device randomly resets while in use. The problem is not connected to a particular ebook or PDF, it seems to happen randomly - even a couple of tim

  • Verity spider and localhost

    Verity Spider is licensed to only spider a local server. Because of this, it indexes my collection with http://localhost/ instead of http://www.mydomain.com/ My problem is that none of my users outside the network can access search results because al

  • Can't create model in Web Dynpro

    Hi all, I want to create a model in a web dynpro  project. When i click the "models" --> "Create Model" in the , it appear below error. =================================================== Internal error Plugin name :Web Dynpro Model Editor Plugin ID 

  • RadioButton with singleselection for AdvTable Column

    hi, my requirment is in advanceTable i have a column(name:PrimaryYN) with RadioButton which is created in stacklayoutRN .......i want to select only one row at a time but it can select only more than one row ........... the singleselection property i