INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Change LIST double click mouse event

Change LIST double click mouse event

(OP)
Hello

I'm trying to find nice solution to change double click on browse LIST from ChangeRecord
to ViewRecord. No succes so far. Please post you ideas.( Clarion 7 ABC )

RE: Change LIST double click mouse event

Hi,

Add on List-Property AlertKey the Keycode 'MouseLeft2'.
Then in List-Embed 'AlertKey' you can set the GlobalRequest:

IF KEYCODE() = MouseLeft2 THEN
GlobalRequest = ChangeRecord
END

Now the Updatemask open in Changemodus.

cagiv

RE: Change LIST double click mouse event

Sry i mean ViewRecord.

cagiv

RE: Change LIST double click mouse event

(OP)
Hi

It doesn't work. Form opens for ChangeRecord. Right now I set special flag on MouseLeft2 and change variable called Request right before form procedure starts.
It's ugly because there is no special embed for that and I have to edit source code.

CODE

ThisWindow.Run PROCEDURE(USHORT Number,BYTE Request)

ReturnValue BYTE,AUTO

! Start of "WindowManager Method Data Section"
! [Priority 5000]

! End of "WindowManager Method Data Section"
CODE
! Start of "WindowManager Method Executable Code Section"
! [Priority 2500]

! Parent Call
ReturnValue = PARENT.Run(Number,Request)
! [Priority 6000]

! ===== MY CODE
IF ForceView
Request = ViewRecord
END
! ===== END OF MY CODE

IF SELF.Request = ViewRecord
ReturnValue = RequestCancelled ! Always return RequestCancelled if the form was opened in ViewRecord mode
ELSE
GlobalRequest = Request
Fr ! < --------------------------- Form procedure
ReturnValue = GlobalResponse
END
! [Priority 8500]

ForceView = FALSE ! <====================================== MY CODE reset flag
! End of "WindowManager Method Executable Code Section"
RETURN ReturnValue

RE: Change LIST double click mouse event

Hmm, i dont understand, why it doesnt work. Here it works fine.
But you can try this, in AlertKey-Embed from List (before Parent):

IF KEYCODE() = MouseLeft2 THEN
POST(EVENT:ACCEPTED,?pbView)
CYCLE
END


cagiv

RE: Change LIST double click mouse event

(OP)
Button trick works, thx.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close