1. win32Lib: modal windows problem; & text to label problem
- Posted by Dan Moyer <DanMoyer at PRODIGY.NET> Oct 19, 1999
- 491 views
- Last edited Oct 20, 1999
David, I'm getting sorta close to finishing my first windows program using Win32Lib, & I have two remaining main problems (that I know of). They are: 1. MODAL WINDOWS: open, minimize, REOPEN, close; click in main: hang. If I open a modal window, click on "active" icon at bottom of screen to minimize, click on a BUTTON IN MAIN WINDOW to REOPEN the modal window (which succeeds), close modal(which succeeds), then click anywhere in main, my system HANGS. This is a problem because a user (children in particular) might or could do that. 2. SETTEXT IN A LABEL: reversed "text" parameters don't display right. If I want to put TWO THINGS in a label, one from quoted text & the other from a sequence variable (by concatenating them), putting the quoted text first correctly puts BOTH in the label, but putting the sequence variable first only puts the variable there by itself. This works: sequence ItemFromList ItemFromList=getItem( aList, anIndex ) setText(aLabel, "some text " & ItemFromList) -- displays BOTH "some text" and ItemFromList This doesn't: sequence ItemFromList ItemFromList=getItem( aList, anIndex ) setText(aLabel, ItemFromList & "some text" ) -- only displays ItemFromList What am I doing wrong?? setText takes a sequence as 2nd parameter, and both ItemFromList and "some text" are sequences, concatenated, so I would think either order would work. Dan Moyer
2. Re: win32Lib: modal windows problem; & text to label problem
- Posted by David Cuny <dcuny at LANSET.COM> Oct 19, 1999
- 465 views
- Last edited Oct 20, 1999
Dan Moyer : > 1. MODAL WINDOWS ... I'll try to duplicate the problem; I've seen this complaint before. It appears that the modal flag is not being cleared when the window is minimized. You should probably not be allowed to minimize modal windows; I need to look at this. >2. SETTEXT IN A LABEL ... Just glancing at the example, I'd guess that perhaps there is a zero terminator at the end of the first string. I'll have to take another look at the code. Thanks! -- David Cuny