× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



We have a date picker.

The display file uses;

MOUBTN(*ULD CF04)
RTNCSRLOC(*WINDOW &CSRROW &CSRCOL)
RTNCSRLOC(&CSRREC &CSRFLD &CSRFPS)

The rpg program determines the field the cursor was on when the date is
clicked (or F4 pressed)

when csrfld = 'field_name'


Cheers

Don






From: "dfreinkel" <dfreinkel@xxxxxxxxxxxxxxxxx>
To: "RPG400-L" <rpg400-l@xxxxxxxxxxxxxxxxxx>
Date: 29/10/2020 03:54 AM
Subject: Can I use RTNCSRLOC to find where a mouse clicked on a
field
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>



I am trying to build a calendar on a screen hoping to have the user click
on
the day in the month they wish to see data.



I created the calendar on the screen and am trying to test and retrieve
where the mouse clicked on the screen so that I can determine which day
they
want to use.



I show the calendar but am not able to get the program to show me where
the
cursor is.



Is this do-able in some way or another?



Darryl Freinkel

A4G.

Tel: 770.321.8562 | Cell: 678.355.8562




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.