Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Code Samples
  New Posts New Posts RSS Feed - mouse supports in Visual Styles
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum Lockedmouse supports in Visual Styles

 Post Reply Post Reply
Author
Message
riszky View Drop Down
Newbie
Newbie


Joined: June 14 2004
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote riszky Quote  Post ReplyReply Direct Link To This Post Topic: mouse supports in Visual Styles
    Posted: June 25 2004 at 2:05am
Dear All,

I have tested Visual Styles of Accuterm, generally I am happy with the result, but I am still not able to move the cursor from input field to another input field with using mouse.

Does Anyone has the experiences how to do that ..?,

Regards,
Riszky
Riszky Baisal Risyad
MVIS Indonesia
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: June 28 2004 at 11:06am
Hi Riszky -

Visual Styles simply displays the text using a Windows-like style, but does nothing to change the way the program interprets keyboard (or mouse) input. However, AccuTerm does support the mouse, but your program will need to interpret what to do when it receives a mouse click. To enable the mouse, do:


PRINT CHAR(27) : CHAR(2) : '1' :


To disable the mouse, do:


PRINT CHAR(27) : CHAR(2) : '0' :


When the mouse is enabled, if the user clicks any location on the screen, AccuTerm sends a string that resembles a function key followed by the coordinates where the mouse was clicked. The exact format of this string depends on whether you are using one of the VT emulations or not, and is documented in the Programmers Guide which you can download from the Manuals link on the Support page of this site.

Then you need to modify your application so that when it detects the mouse click, it changes the input field to the field the user clicked on.

We are getting ready to publish a library of routines that help simplify this process as well as decoding all typical keyboard commands like function keys, cursor keys, etc. This library also includes a powerful text entry routine that supports single and multi-line text input, cursor keys, etc. Hope to have it posted this week (at least as a beta version).

Thanks,

Pete
Back to Top
riszky View Drop Down
Newbie
Newbie


Joined: June 14 2004
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote riszky Quote  Post ReplyReply Direct Link To This Post Posted: July 01 2004 at 7:00pm
Hi Pete,

I am glad to hear you would publish the new library, and I believed that would be helpfull.

Thanks very much,
Riszky.
Riszky Baisal Risyad
MVIS Indonesia
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.