Results 1 to 7 of 7

Thread: Double Click needed in ShortCutBar?

  1. #1
    Join Date
    Jul 2009
    Location
    Wiesbaden, Germany
    Posts
    213

    Default Double Click needed in ShortCutBar?

    Hi,

    we upgraded to CodeJock 15.2.1, but since then the ShortCutBar behaves odd.

    The first click to open a view works, like always, but after that it changes. Every time you click on a different Button in the ShortCutBar, you have to click it twice to activate the view.
    This also happens in the SigCodejock Demo under VDF17.0 and 16.1.

    It seems, that the first click, the one that won't activate the view, is missing a "msg_oncomclick".

    I tried it with SigCodejock Rev.764 and 769.

    Is there any way, to get it, to react, without double clicking the buttons?

  2. #2
    Join Date
    Feb 2009
    Posts
    1,817

    Default Re: Double Click needed in ShortCutBar?

    Is the focus on an item in a cBDCJGrid?

    There is an issue with the focus being moved from editMode that I have found when using the CJPushButton- same thing first click kills focus in grid then it clicks

  3. #3
    Join Date
    Jul 2009
    Location
    Wiesbaden, Germany
    Posts
    213

    Default Re: Double Click needed in ShortCutBar?

    Nope, it happens even without any grids being in focus

  4. #4
    Join Date
    Feb 2009
    Location
    Niedernhausen, Germany
    Posts
    151

    Default Re: Double Click needed in ShortCutBar?

    I encountered the same problem. There is no view active and you have to click twice on the shortcut in order to open a new view.

    Has anyone the same problem and found a solution for this?
    Regards,
    Matthias

  5. #5

    Default Re: Double Click needed in ShortCutBar?

    Has anybody solved this. Just moved an application from 16.1 to 19 and have the same problem

    Thanks


    Sent from my iPhone using Tapatalk

  6. #6
    Join Date
    Feb 2009
    Location
    UK
    Posts
    643

    Default Re: Double Click needed in ShortCutBar?

    Please can you try the changes below. I have tested here and they fix the ShortCutBar issue, however I need to understand the impact on users of the SigCjPushButton class before commiting these changes to SVN.

    For users of the SigCjPushButton class the OnClick event has been moved from Mouse Down to Mouse Up. This should have no effect unless you have augmented / overridden any of
    OnComMouseDown
    MouseDown
    OnComMouseUp
    MouseUp
    please let me know if this change impacts you


    Change 1 – cSigCjPushButton.pkg – cSigCjPushButton class
    Move “Send OnClick” from OnComMouseDown to OnComMouseUp

    Code:
        Procedure OnComMouseDown Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY
            Send MouseDown iButton iShift iX iY
        End_Procedure
     
        Procedure OnComMouseUp Short iButton Short iShift OLE_XPOS_PIXELS iX OLE_YPOS_PIXELS iY
            Send OnClick
            Send MouseUp iButton iShift iX iY
        End_Procedure
    Change 2 – cSigCjShortcutBar.pkg - cSigCjShortcutBar_Item_Button class
    Change the supper class from cSigCjComPushButton to cSigCJPushButton (remove Com)
    Change the name of method OnComClick to OnClick (again remove Com)
    You will also need to change the Use statement at the top from Use SigCjW_Controls.pkg to Use cSigCJPushButton.pkg

    Code:
    Class cSigCjShortcutBar_Item_Button is a cSigCJPushButton
     
        Procedure Construct_Object
            Forward Send Construct_Object
     
            Property Handle phMsg
            Property Handle phObj
           
            Set peAnchors to anLeftRight
        End_Procedure
     
        //-------------------------------------------------------------------------
     
        Procedure OnCreate
            Forward Send OnCreate
            Set size                 to 40 88
            Set ComFlatStyle         to True
            Set ComMultiLine         to True
            Set ComTextImageRelation to OLExtpImageAboveText
        End_Procedure
     
        //-------------------------------------------------------------------------
     
        Procedure OnClick
            Handle hMsg hObj
     
            Get phMsg to hMsg
            Get phObj to hObj
     
            Send hMsg of hObj
        End_Procedure
     
    End_Class
    Ian Smith
    (Member of the SigCj project)

  7. #7

    Default Re: Double Click needed in ShortCutBar?

    Ian

    Thank you very much!!! Sorry I just got back to this, that worked like a charm.

    Much appreciated
    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •