eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ActiveHelpView':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ActiveHelpView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--ActiveHelpView

Package:
stx:libview2
Category:
Interface-Help
Version:
rev: 1.58 date: 2018/04/16 15:04:10
user: stefan
file: ActiveHelpView.st directory: libview2
module: stx stc-classLibrary: libview2
Author:
Claus Gittinger

Description:


a bubbleHelp view.

Instances of myself show up either as a comics-like talking
view, or as a simple square popup. This is configured via the
styleSheet; the default is simple-square. 
To get the fancy comics style, add a resource 'activeHelpStyle' with 
a symbol-value of #cartoon.
However, be aware that some servers have performance problems with
these view-shapes (or do not support shapes at all).
Therefore, the default style is a rectangular popupView.


Related information:

    ActiveHelp

Class protocol:

instance creation
o  for: someText
create a bubble-view for some text

o  for: someText onDevice: aDevice
create a bubble-view for some text

o  with: aView
create a talking-view wrapping some other view
usage example(s):
     (ActiveHelpView with:(TextView new)) realize
     (ActiveHelpView with:(TextView new)) open
     (ActiveHelpView with:(Button label:'ok')) open


Instance protocol:

accessing
o  contents: someText
set the text

o  controllingHelpListener: something

o  shapeStyle: aStyleSymbol
set the shapeStyle.
Currently, only nil and #cartoon are supported

o  withView: aView
set the component view

event handling
o  keyPress: key x: x y: y

initialization
o  initStyle
setup viewStyle specifics

o  realize

private
o  computeShape
compute the shape, based upon the size of my component view

o  resizeToFit
resize myself to make the component view fit

queries
o  isPopUpView
return true - I am a popUp type of view (no decoration, pop-to-top)

o  wantsFocusWithButtonPress



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sun, 26 May 2019 13:06:01 GMT