🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer.misc
3 messages
3 total messages Started by trindflo Thu, 16 Apr 1998 00:00
Initial Session Title? Tried WinQuerySwitchList,WinQueryWindowText,LM_QUERYITEMTEXT
#39
Author: trindflo
Date: Thu, 16 Apr 1998 00:00
22 lines
1871 bytes
Could somebody help me with a tricky session manager question?  I am
attempting to find the "initial" Title field of a task as displayed
in the Window List or Task List which is displayed when Ctl-Esc is
typed.  Session Manager yields some of this information with the
WinQuerySwitchList function, but the szSwtitle which is returned is
replaced with the name of the currently running program in the case of
an OS/2 Full-Screen or Window.  WinQueryWindowText always yields the
same text.  Both the initial task name and the currently running program
are displayed in the Window List, but I have been unable to get this
window to return this string using LM_QUERYITEMTEXT.  TIA.

--
* Do not send me Spam, Junk email, or UCE.  Using the internet this way is *
* theft and harassment. Doing so will cost $20 per word of offending email.*

-Rick Curry (Team OS/2) http://www.fishnet.net/~trindflo http://www.cauce.org
GCS/M/S d? s+:+ a+ C++++$ UL- P L+ E---- W+ N+ o? K? !w--- O+++ M@ V PS++
PE Y+ PGP t@ 5++ X- R* tv+ b++ DI+ D+ G e++ h++ r+++ y++++       v3.12

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading
Re: Initial Session Title? Tried WinQuerySwitchList,WinQueryWindowText,LM_QUERYITEMTEXT
#38
Author: Jim Lewis
Date: Thu, 16 Apr 1998 00:00
37 lines
2461 bytes
trindflo@fishnet.net wrote:
> 
> Could somebody help me with a tricky session manager question?  I am
> attempting to find the "initial" Title field of a task as displayed
> in the Window List or Task List which is displayed when Ctl-Esc is
> typed.  Session Manager yields some of this information with the
> WinQuerySwitchList function, but the szSwtitle which is returned is
> replaced with the name of the currently running program in the case of
> an OS/2 Full-Screen or Window.  WinQueryWindowText always yields the
> same text.  Both the initial task name and the currently running program
> are displayed in the Window List, but I have been unable to get this
> window to return this string using LM_QUERYITEMTEXT.  TIA.
> 
> --
> * Do not send me Spam, Junk email, or UCE.  Using the internet this way is *
> * theft and harassment. Doing so will cost $20 per word of offending email.*
> 
> -Rick Curry (Team OS/2) http://www.fishnet.net/~trindflo http://www.cauce.org
> GCS/M/S d? s+:+ a+ C++++$ UL- P L+ E---- W+ N+ o? K? !w--- O+++ M@ V PS++
> PE Y+ PGP t@ 5++ X- R* tv+ b++ DI+ D+ G e++ h++ r+++ y++++       v3.12
> 
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/   Now offering spam-free web-based newsreading

 I can't tell what you're asking for here, but I think I have an answer
for you anyway. Years ago I wrote an app which would always show you the
titlebar of whatever object had the focus. I'll see if I can did it up
and send the source to you. With a little tweaking I think it will do
what you want.

-- 
Please remove "nospam" from address to reply by e-mail.

Jim Lewis
Try my Lunar Lander and Targ for Java games at
http://www.rytebyte.com/jimlewis
Re: Initial Session Title? Tried WinQuerySwitchList,WinQueryWindowText,LM_QUERYITEMTEXT
#36
Author: Rick Curry
Date: Wed, 22 Apr 1998 00:00
58 lines
3669 bytes
In article <353665BC.15FB@austin.ibm.nospam.com>,
Jim Lewis <jklewis@austin.ibm.nospam.com> wrote:
>trindflo@fishnet.net wrote:
>> 
>> Could somebody help me with a tricky session manager question?  I am
>> attempting to find the "initial" Title field of a task as displayed
>> in the Window List or Task List which is displayed when Ctl-Esc is typed.
>
> I can't tell what you're asking for here, but I think I have an answer
>for you anyway. Years ago I wrote an app which would always show you the
>titlebar of whatever object had the focus. I'll see if I can did it up
>and send the source to you. With a little tweaking I think it will do
>what you want.

Jim,

Thanks for responding.  I think that I am getting this text (the title
bar text) with WinQueryWindowText.  Unfortunately, it is also changed to
the name of the currently running program.

I have created ICONs which I use to start full-screen sessions in
various sub-directories with whatever settings are appropriate.  When I
launch one of these ICONs, the ICON/Program-Object title from the
General page of the settings notebook is entered as the session title in
the Window List.  This is the string I am looking for.  When I run a
program in this session the session title in the Window List changes to
the name of the program which is running.  I have found two or three
different ways to ask for this sort of information and it always seems
to yield the name of the program which is running.  I was able to
determine the name of the program which was initially running in the
session (CMD or in my case 4OS2), but I have not been able to get at the
title.

I just got through attempting to access the information with container
controls and found that the task list window does not respond to a
CM_QUERYCNRINFO command.

I don't think that the Workplace shell wants me to do things this way.
It is trivial to attach an object-ID (a <str> identifier) to a program
ICON and control the program that way.  Unfortunately, this would
preclude controlling multiple sessions which had been started with the
same ICON (many attempts to control would start a new session).  This
"Create a new session" behavior is the default for the OS/2 Full Screen
ICON, as an example.  What I am looking for is a way to identify the
origin of a session.  Since the information I am looking for is
displayed in a window (the task list), I have been assuming that I could
get at it.

Thanks again to you and the others who responded.

-- 
* Do not send me Spam, Junk email, or UCE.  Using the internet this way is *
* theft and harassment. Doing so will cost $20 per word of offending email.*

-Rick Curry (Team OS/2) http://www.fishnet.net/~trindflo http://www.cauce.org
GCS/M/S d? s+:+ a+ C++++$ UL- P L+ E---- W+ N+ o? K? !w--- O+++ M@ V PS++
PE Y+ PGP t@ 5++ X- R* tv+ b++ DI+ D+ G e++ h++ r+++ y++++       v3.12
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads