Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 06 JUN 1998 02:01:16PM Dsig (SigSolutions) wrote:

For all you bit/byte gurus ..

Say I wish to add 'dblclk' event to editlines… In the event designer there does not seem to be a 'list' of available events (no .. I don't have windows api manual handy .. but I did look in OI help).

SO ..

Could someone walk me through the steps of of using the Event Designer to add .. say dblclk to editlines ..

I really appreciate this ..

dsig

David Tod Sigafoos ~ SigSOlutions

[email protected] cis:70302,77 voice:503-639-8080


At 06 JUN 1998 05:08PM Donald Bakke wrote:

DSig,

You don't need to use the Event Designer to capture double clicks for editlines, unless you want to create a double click event for all editlines. If so (and I may be wrong here) I think the way it would have to be done is to create a promoted CREATE event that qualifies the WM_LBUTTONDBLCLK message for every window/control and then create a promoted WINMSG event that checks to see if the Window's Message was WM_LBUTTONDBLCLK. At that point you would add your logic. The problem here is that custom defined events don't exist at the form/control level so you can't have a separate dblclk event for each editline. You have only one dblclk event and all form/control specific code would exist there and would have to be referenced accordingly (Begin/End Case, If..then, etc.)

That being said, if you wanted to experiment on a simpler level then just add the following code to the CREATE event of your form:

Equ WM_LBUTTONDBLCLK to "0x203"

rv=Send_Message(@Window:".":Editline_name, "QUALIFY_EVENT", WM_LBUTTONDBLCLK, 1)

Then put code in the WINMSG event(s) for the editlines you are working with and…voila!

I am interested to know what you want to do, however, since double clicking on an editline already has the default behavour of selecting the text and I don't think this can be avoided.

[email protected]

SRP Computer Solutions


At 08 JUN 1998 11:49AM Dsig (SigSolutions) wrote:

Don,

Of course you are right about the d-click window processing .. though I wonder if it can be stopped? AND since it is forced why doesn't it appear in the events list?

What I am trying to find out is how the Event Designer works. It is a feature of OI that I want to become more familiar with.

Possibly a better example would be putting dblclk on a label. It has no default events (that I know of). This could be used as a 'options' launch point .. yes?

Now I could probably force this all through qualify event BUT how would it be done through the event designer .. Nothing worse than having a tool which should do all the bit work and having to turn around and having to do the bit work :-)

dsig

David Tod Sigafoos ~ SigSOlutions

[email protected] cis:70302,77 voice:503-639-8080


At 08 JUN 1998 03:22PM Andrew McAuley wrote:

[notag]I suspect we're labouring under a misapprehension as to what it ought to do. [<A HREF="http://www.revelation.com/WEBSITE/DISCUSS.NSF/f12696d31000b22a8525652b00831bb2/450C1DA42F899B73852565D400188DC3?OpenDocument" onMouseOver="window.status='Why not click here to check out the thread?';return(true)">Check out this thread</A>]

Toodles

[<A HREF="mailto:[email protected]" onMouseOver="window.status='Why not click here to send me Email?';return(true)">Andrew McAuley</A>]

[<A HREF="http://www.sprezzatura.com" onMouseOver="window.status='Why not click here to visit our web site?';return(true)">Sprezzatura Ltd</A>]

[<I>World Leaders in all things RevSoft</I>]

[<img src="http://www.sprezzatura.com/zz.gif">]

[<HEAD>]

[<script language="javascript">function openNewPage () {window.location.href=(document.TOCNavigator.pageToGoTo.options[document.TOCNavigator.pageToGoTo.selectedIndex].value);document.TOCNavigator.pageToGoTo.selectedIndex="0";}end hiding from non-JS browsers –></script>] [</HEAD>] [<FORM ACTION "" METHOD=GET NAME="TOCNavigator" <SELECT NAME="pageToGoTo" SIZE=1 onChange="openNewPage()"> <OPTION>Pull down this menu to choose whereabouts on Sprezz site to go <OPTION VALUE="http://www.sprezzatura.com">Home Page <OPTION VALUE="http://www.sprezzatura.com/whatsnew.htm">What's New <OPTION VALUE="http://www.sprezzatura.com/senl.htm">SENL <OPTION VALUE="http://www.sprezzatura.com/patches.htm">Download S/LIST <OPTION VALUE="mailto:[email protected]">Send mail to support at Sprezzatura <OPTION VALUE="mailto:[email protected]">Send mail to sales at Sprezzatura </SELECT> </FORM>][/notag] </QUOTE> View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/4a98241414fa53248525661b0062fe50.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1