Browse Prior Art Database

Implementation of Direct Edit Capability of a Window's Titlebar Text

IP.com Disclosure Number: IPCOM000113099D
Original Publication Date: 1994-Jul-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 92K

Publishing Venue

IBM

Related People

Morgan, SA: AUTHOR [+2]

Abstract

In the Workplace Shell* of OS/2*, users have the ability to edit the icon text of icons in a container. The icon text, which displays beneath the icon itself, is also used as the title of the window when the iconized object is opened by the user.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Implementation of Direct Edit Capability of a Window's Titlebar Text

      In the Workplace Shell* of OS/2*, users have the ability to
edit the icon text of icons in a container.  The icon text, which
displays beneath the icon itself, is also used as the title of the
window when the iconized object is opened by the user.

      The Workplace Shell does not provide the ability to directly
edit the title text of the opened window, however, even though the
title of the window and the icon's text represent the same object.
From a usability viewpoint, the same object (the title text) should
be able to be manipulated in the same manner regardless of the
particular form in which the object is currently represented.  This
disclosure describes how an application can implement the direct edit
capability of a window's titlebar text so that it can be manipulated
in the same manner as the icon's text.

      The same mouse and keystroke combinations provided by OS/2 that
activate the icon text editing can be used for editing the titlebar
text.  These can be remapped by the user on the Mappings pages of the
Mouse and Keyboard objects in the System Setup folder on the desktop.

      When the mouse combination is clicked on the titlebar, or the
proper keystroke combination is hit when the window has the focus, a
WM_TEXTEDIT message is received by the window message procedure.
This indicates that the user wishes to toggle the edit state of the
titlebar.  If currently in edit mode, the modified text is saved, set
to be the titlebar text, and the titlebar is switched back to normal
titlebar appearance.  If not currently in edit mode, the titlebar is
changed to an entry field initialized with the current title text
string.

      The first time the user requests to edit the titlebar text, the
application must create the entry field that allows the text editing.
The size of the titlebar is queried, and an entry field is created
with the same size and positioned to exactly fit over the titlebar.
The entry field is made a child of the titlebar and is owned by the
titlebar.  The titlebar is also given the window style
WS_CLIPCHILDREN so that the titlebar does not attempt to paint over
this child, even though both occupy the same area on the screen.  The
text of the titlebar is queried, and the text of the entry field is
set to be the same text.

      The visual effect to the user will be the titlebar changing
from its normal appearance to become an entry field, containing the
same text as before, but now being directly ed...