• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 538
  • Last Modified:

Display on Mouse Click

I see on screens we have from software packages that on the bottom of the screen, for example, F3-Exit, the F3 has a "button" look to it.  

How is that done?
0
nickmbnabb
Asked:
nickmbnabb
  • 5
  • 3
1 Solution
 
nickmbnabbAuthor Commented:
Also, my intention is to have something besides a function key show with that "button" look?  DOes this work only for function keys?
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
What terminal emulator are you using when you see this?

- Gary Patterson
0
 
nickmbnabbAuthor Commented:
Mocha TN5250
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
tliottaCommented:
If this only happens on specific (3rd-party) screens, it seems likely that the display files used the PSHBTNFLD and PSHBTNCHC keywords. If it happens more widely, it's possible that the emulator setting is enabling it. In the PC Comm emulator from iSeries Access, this can be enabled for all/most screens through the Edit menu bar option -- Edit-> Preferences-> Hotspots...

Tom
0
 
nickmbnabbAuthor Commented:
It shows on certain things across the board, including the DDS that's part of the OS.   Screen Capture
I used the PSHBTNFLD and PSHBTNCHC and it came enclosed in <> instead of a button.
0
 
nickmbnabbAuthor Commented:
I found some source code that displays F10 as a "button":
 F10buttonIt even shows as a "button" in the source.  I'm not seeing anything in the source code that's causing this.
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
This is a feature of the Mocha emulator, and has nothing to do with the DDS for the screens.  Mocha recognizes certain common patterns and renders them as buttons.  You can disable this feature if you like.  

I got rid of Mocha when I upgraded from Win XP to Win 7 and they didn't honor their "upgrades for life" promise, so I can't check it myself.

It looks like the pattern "Fxx=" is probably what Mocha recognizes at the "Hotspot" pattern, since it even rendered F10 as a button when that pattern appeared in source code.  

This isn't something special that the DDS programmer did.

- Gary Patterson
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
Since Tom mentioned it, here is a nice little example of the PSHBTNFLD / PSHBTNCHC keywords, as rendered by the emulator in IBM Client Access:

http://www.martinvt.com/Code_Samples/Pushbutton/pushbutton.html

- Gary Patterson
0
 
nickmbnabbAuthor Commented:
Thanks for saving me from any further knocking myself out trying to figure this out.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now