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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to get window name of freshly created window?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

marko

Germany
112 Posts

Posted - 02/26/2001 :  05:32:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1379 Posts

Posted - 02/26/2001 :  1:38:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

Go to Top of Page

marko

Germany
112 Posts

Posted - 03/02/2001 :  03:25:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000