The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to get window name of freshly created window?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
marko Posted - 02/26/2001 : 05:32:07 AM
Hi,

does anybody know how to get the window name of a window which was made with the command
win -t data uname
or from within a user dll. Unfortunately the new window name 'uname' might already exist. So, Origin chooses another appropriate string instead.

In a normal labtalk script the real name of the created window can be accessed by '%h' since the window gets the active window automatically.

BUT, how to achieve this from within a user dll where the window is created with a command like

SendMessage
(h,WM_USER,0,lpString('win -t data uname'));

How to access the variable '%h' from a user dll, or which function should be used to ask for the name of the active window???

Regards,
Marko
2   L A T E S T    R E P L I E S    (Newest First)
marko Posted - 03/02/2001 : 03:25:58 AM
Hi,

It is even possible to call a function with WDLL_GET_STRING to get the same thing from within a non-moca DLL.
Thanks for the hint greg!
Marko
greg Posted - 02/26/2001 : 1:38:02 PM
Use:
lpfn(hWnd, WCB_GET_STRING, (LPSTR)szTemp, 7);

Origin Strings are enumerated from A=0 to Z=25. %H is 7.

See FITDEMO.C for an example.


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000