50% Success (or, "Re: Re: Questions")
- Posted by Travis Beaty <travisbeaty at HOTMAIL.COM> Sep 12, 2000
- 575 views
Hello All! <flame directed at third party> First, a preliminary announcement. In light of that wonderful merger between Xoom, Snap, and NBCi, the folks that run xoommail decided in thei= r infinite lack-of-wisdom to change my email address and start kicking back whatever mail I was to receive as "undeliverable." In fact, I couldn't e= ven get into my mailbox, considering they didn't bother to tell me what my da= mn address was. So, I've switched to a hotmail address and xoom/Snap/NBCi c= an kiss my heifer. </flame> <Travis kicks hole in wall, goes outside and screams, cows look at him an= d wonder, "Who pee'ed in his Wheaties?"> OK, I'm better now. Anyone who might have sent me a private post in the last seven days will need to send it to the new address, which I've inclu= ded below on the off-chance that it is not automatically displayed with this message. I'm sorry for the tardiness of this response to the help that y'all offered about a week ago; it took me that long to realize that "temporarily down" =3D "no longer exists." Mr. Lewis: The correction that you passed along for putStreamCallback() worked like a charm. My rich edit will now load win32lib.ew without a problem, although it understandably takes a few seconds. But here are a = few more questions. 1. Getting Scrollbars on the Rich Edit How do I get vertical and horizontal scrollbars? I tried or_all({ES_AUTOHSCROLL, ES_AUTOVSCROLL}) but this appeared to have no effect. I also tried or_all({WS_HSCROLL, WS_VSCROLL}) and managed to get a vertical scrollbar; however, no horizontal scrollbar appeared, and it caused severe formatting problems in the rich edit when = I tried to manually add information to the end of the text. Keep in mind t= hat my knowledge of the internal workings of Windows is very limited, so more than likely I told your rich edit control to shoot itself in the foot! :-= ( 2. More angst over getPrinter()! <M. Lewis snip> You need to delete the structure code that appears right above where PRINTDLG is defined. </snip> This confused me. I found a definition for the type PRINTDLG, and what appeared to be an initialization block for the structure. Could you pass= me the line number for the structure to be deleted? Or would it just be simpler for me to pick up the bleeding-edge version over at SourceForge? 3. Possible Trouble with getStream() I have been using the following code to save the text in the rich edit control to a file. procedure saveFile(sequence FileName) -- global object junk ... generic variable for "junk" results. -- global object rtxEdtior ... the rich edit control. integer FileID sequence StreamedText FileID =3D open(FileName, "w") if FileID =3D -1 then junk =3D message_box( "Vision Euphoria cannot open the file you've specified! " & "Please make sure that this file is not write protected, " & "and that no other program is currently using the file.\n\n" = & "This file was not saved.", APPNAME, MB_ICONERROR) return end if StreamedText =3D getStream(rtxEditor, StreamText) for i =3D 1 to length(StreamedText) do puts(FileID, StreamedText[i]) end for close(FileID) end procedure -- end code When changes are made in the rich edit control, and then a save with the above procedure is attempted, only information from the top of the contro= l to the line above the caret's position is saved. At the time that the procedure was called, the rich edit control was loaded with a 10.8K plain-text file. This also occurred with a 2.6K plain-text file as well. There seems to be a point at which the entire file will be saved regardle= ss of the caret's position, however that came only after numerous saving attempts, and I am not sure what I did to cause it to finally work correctly. 4. My 2=A2 on win32lib.ew Documentation Mr. Parnell: In future documentation for win32lib.ew, perhaps it would be a good idea = to list all the flags that belong to a particular control, and very briefly describe them. As an example ... Control: HappyFace Makes a happy face Flags: HF_OPENGRIN -- Mouth open for smile HF_WINK -- Left eye closed HF_AUTOCOLOR -- Color automatically matches mood of user and so on. This would help those of us who don't know much about the Windows flags -- presently, less-than-initiated Windows users such as mys= elf have to look through all the flag constants and use the WAG method to determine which flags to use for what. It would also be helpful for IDE builders, etc., to see what flags are available for a particular componen= t. (Yes, there is the Win32.hlp file; however, for those of us whose machine= s are not directly connected to the Net, that would be a frighteningly larg= e download!) Of course, there would have to be a limit set somewhere in the event that= a component takes an inordinate amount of flags; after all, there's a good thing, and then there's overkill. Y'all are doing a very good job with win32lib.ew, and your work is extrem= ely appreciated. 5. Listserv Catch-22 Mr. Craig: If the mailing list gets its mail returned to it as undeliverable, will i= t automatically unsubscribe the address? If not, could you be so kind as t= o unsubscribe atora at xoommail.com? I tried to do this through the listserv itself, but it wanted a password. When I got the password, it sent a confirmation to that address ... I can't reply to the confirmation since = the address, as far as I can tell, no longer exists. I have resubscribed usi= ng my hotmail address, so at this point, I have a double subscription. Well, thanks to all. Happy Hunting! God Bless and Blessed Be, Travis Beaty Claude, Texas travisbeaty at hotmail.com P.S. About the "how should one be addressed?" question posed a few days ago. I write Mr., Mrs., Ms., simply because of my redneck upbringing and the fact that I always equate an email to the good-old paper and pen lett= er. As far as I'm concerned, just call me Travis -- heck, I've been called = a lot worse! _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.