| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Dialog Help |
I posted a message a week or so back asking for help with a certain area of PM programming, but I'm not sure if that message ever got out (I didn't get any responses...). Anyway, I got a couple of responses on Internet telling me to use the following "equivalents" to do what I wanted to do: Windows/MFC code OS/2 PM/C code ================================================================== GetDlgItem() WinWindowFromID(hwnd,ID) SetWindowText() WinSetWindowText(hwnd,string) What I'm trying to do is to set up an "empty" modeless dialog box (with static strings assigned a resource ID number) and then, depending on what the user of the program picks from menu items, send certain data and "plug it into" the various fields on the "empty" modeless dialog box. Under Windows/MFC I used the following code to do this sort of thing: // ID_CONTROL is the resource ID of the control, buf[0] is the buffer char *string[] = "New string for dialog"; ((CStatic *)GetDlgItem(ID_CONTROL))->SetWindowText(string[0]); I've experimented with the equivalents in a Hello World style PM program and I can't seem to get it to do what I want it to do. In fact, it doesn't work at all (I know it's probably something I'm doing wrong, but I'm flying blind here...) One major problem is, I don't have a working example of how to set up a MODELESS dialog in an OS/2 PM program. I also don't have any (working) examples of how to actually impliment these suggestions. I've looked around on Internet, but haven't seen anything that does what I want to do (I've seen actual programs do what I want to do, though, so I figure it can be done, somehow ). Does anyone have either a Hello World example of doing a modeless dialog in a PM program, or an example of how to use these PM equivalents to do something even remotely like I want to do? Or is there other, easier methods to go about doing this kind of thing? Any help would be GREATLY appreciated. Even a pointer to some Internet online resource or FAQ file. Sorry to be such a clueless newby... --- PPoint 2.00* Origin: ** Snake-Byte Incorporated ** (1:3819/128.103) SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 3819/128 157 3615/50 396/1 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.