Re: [fpc-pascal] How to get the borders and background color of the Message Box
nitinjain wrote: Hi, Looking for guidance on formatting of the attached application Output snippet. I'm having trouble on getting the borders and background color of the Message Box to display correctly. Any help will be appreciated. Nitin http://free-pascal-general.1045716.n5.nabble.com/file/n5719375/Application_Snippets.jpg You haven't told us what libraries etc. you eventually settled on, i.e. whether you're explicitly drawing the outline or relying on a library to do it. I think you've probably already noticed that spaces that you are explicitly outputting are OK, while background resulting from explicit text positioning aren't. Also there's an interesting possibility that the libraries or OS are ignoring the PC-style line drawing characters at some level. Tomas (and others) know far more about this than I do, but what I'd suggest is that you first investigate outputting some PC-style box-drawing characters as though they were text: You'll need to find a reference for the hex codes. Second, reduce your code to a stand-alone example program of no more than 10-15 lines, make sure it compiles, make sure that it still exhibits the problem, and post that together with details of exactly what compilation options you used and your OS. And for the avoidance of all doubt, that is exactly what would be expected of students when I was doing a university support job, or junior programmers in a commercial environment. We're trying to be helpful, but we've all got our own problems and priorities. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] How to get the borders and background color of the Message Box
Hi, Looking for guidance on formatting of the attached application Output snippet. I'm having trouble on getting the borders and background color of the Message Box to display correctly. Any help will be appreciated. Nitin http://free-pascal-general.1045716.n5.nabble.com/file/n5719375/Application_Snippets.jpg -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-to-get-the-borders-and-background-color-of-the-Message-Box-tp5719375.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to get the borders and background color of the Message Box
On Mon, May 26, 2014 14:04, nitinjain wrote: Hi, Looking for guidance on formatting of the attached application Output snippet. I'm having trouble on getting the borders and background color of the Message Box to display correctly. Any help will be appreciated. Nitin http://free-pascal-general.1045716.n5.nabble.com/file/n5719375/Application_Snippets.jpg You have already received a lot of help for this topic, haven't you? Which of the previously discussed approaches (unit Video, unit Crt, Free Vision with its unit msgbox, ...) do you try to use now? Drawing of the window border was exactly discussed here in the last message in the previous thread; the general window background could be basically covered by the same approach as drawing the window border by writing out width-2 instances of ' ' between the vertical lines at the beginning and end. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to get the borders and background color of the Message Box
Thanks Tomas Hajny-2, Actually I tried with video unit, but on freepascal.org site (http://www.freepascal.org/docs-html/rtl/video ) I was read that “The video unit should not be used together with the crt unit”. And I am using CRT unit as well. I posted same issue on previous blog also, but not getting any answers after that, so now I posted newly with snippets. If you have any another options instead of video unit then it will definitely helpful to us. Regards, Nitin -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-to-get-the-borders-and-background-color-of-the-Message-Box-tp5719375p5719386.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to get the borders and background color of the Message Box
On Mon, May 26, 2014 15:29, nitinjain wrote: Hi Nitin, Actually I tried with video unit, but on freepascal.org site (http://www.freepascal.org/docs-html/rtl/video ) I was read that “The video unit should not be used together with the crt unit”. And I am using CRT unit as well. I posted same issue on previous blog also, but not getting any answers after that, so now I posted newly with snippets. If you have any another options instead of video unit then it will definitely helpful to us. Assuming that previous blog = previous thread, I'm not aware of any messages appearing in this mailing list related to this discussion (appearing in various threads) which would not be answered by me and/or others. You seem to be accessing our mailing list via Nabble rather than by e-mail - I don't use Nabble myself, so I cannot judge whether there's been some post from you not getting to the list (and thus missing responses from people subscribed to the list). Let me summarize - if I look at the mailing list archive for May (http://lists.freepascal.org/pipermail/fpc-pascal/2014-May/thread.html), I see the following threads: - 'Identifier not found MEMW' (ended by Marco's question to which you have not responded) - 'How to get GO32 Unit file' (responded by me) - 'How To Rewrite/Replace Below MEM And MEMW' (ended by my response with a follow-up question to you) - 'Segmentation Error using VideoBuf' (started from another e-mail address, finished by my suggestion to post a compilable crashing code) - 'Drawing window out line' (again started from the other e-mail address, responded by me with information how to achieve the wanted result by using just unit Crt in one post, but also providing more detailed information about in/compatibility between units Video and Crt in another post - see http://lists.freepascal.org/pipermail/fpc-pascal/2014-May/041991.html; that thread also included suggestion from Mark Morgan Loyd for using FreeVision as another alternative). Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal