Author | Topic: CRT and background image ? | |
---|---|---|
FJ Herbers | CRT and background image ? on Sat, 08 Jul 2006 15:20:47 +0200 Hello everybody, here is my next migration question for you. Is it possible to have a kind of background image in a CRT (hybrid) window ? My idea was to define a XbpStatic, load a bitmap into it (and if this works, to make it later on the size of the CRT window). I expected then that other text output or GRA* output would be drawn on top of this. But it seems I can't get there. See attached app as a sample. So: Can a CRT have a background image ? Is this possible at all or what do I miss here. Thanks for your time and help Franz Josef Herbers xx.zip | |
James Loughner | Re: CRT and background image ? on Sat, 08 Jul 2006 11:45:19 -0400 Try the :ToBack() method. In a full GUI you could make the Static the parent of the parts but I don' know how that would be done in a CRT. Also you might simply draw the static on the CRT window but then you would need a Paint call back to repaint it and any parts on top of it. Jim FJ Herbers wrote: > Hello everybody, > > here is my next migration question for you. > > Is it possible to have a kind of background image in a CRT (hybrid) window ? > > My idea was to define a XbpStatic, load a bitmap into it (and if this works, > to make it later on the size of the CRT window). I expected then that other > text output or GRA* output would be drawn on top of this. But it seems I > can't get there. See attached app as a sample. > > So: Can a CRT have a background image ? Is this possible at all or what do I > miss here. > > Thanks for your time and help > > Franz Josef Herbers > > | |
FJ Herbers | Re: CRT and background image ? on Sat, 08 Jul 2006 19:30:54 +0200 Hi James, thanks for your idea. I already tried the :ToBack() method, but this didn't work. Thanks Franz Josef "James Loughner" <jwrl@charter.net> schrieb im Newsbeitrag news:37810a65$5ea00c5b$dbd93@news.alaska-software.com... > Try the :ToBack() method. In a full GUI you could make the Static the > parent of the parts but I don' know how that would be done in a CRT. > > Also you might simply draw the static on the CRT window but then you would > need a Paint call back to repaint it and any parts on top of it. > > Jim > > FJ Herbers wrote: >> Hello everybody, >> >> here is my next migration question for you. >> >> Is it possible to have a kind of background image in a CRT (hybrid) >> window ? >> >> My idea was to define a XbpStatic, load a bitmap into it (and if this >> works, to make it later on the size of the CRT window). I expected then >> that other text output or GRA* output would be drawn on top of this. But >> it seems I can't get there. See attached app as a sample. >> >> So: Can a CRT have a background image ? Is this possible at all or what >> do I miss here. >> >> Thanks for your time and help >> >> Franz Josef Herbers | |
James Loughner | Re: CRT and background image ? on Sat, 08 Jul 2006 15:46:19 -0400 Did you try setting Clipsiblings := .T. for the static object? XBPCRT does not have a Draw call back so you can't just draw on the CRT as I suggested, any repaint would cause the other objects to be over painted. Maybe it is time to move to full GUI. It is easy to do for a dialog Window. Just set oDlg:DrawingArea:Bitmap := a XbpBitmap or resource ID Jim FJ Herbers wrote: > Hi James, > > thanks for your idea. I already tried the :ToBack() method, but this didn't > work. > > Thanks > > Franz Josef > > > "James Loughner" <jwrl@charter.net> schrieb im Newsbeitrag > news:37810a65$5ea00c5b$dbd93@news.alaska-software.com... >> Try the :ToBack() method. In a full GUI you could make the Static the >> parent of the parts but I don' know how that would be done in a CRT. >> >> Also you might simply draw the static on the CRT window but then you would >> need a Paint call back to repaint it and any parts on top of it. >> >> Jim >> >> FJ Herbers wrote: >>> Hello everybody, >>> >>> here is my next migration question for you. >>> >>> Is it possible to have a kind of background image in a CRT (hybrid) >>> window ? >>> >>> My idea was to define a XbpStatic, load a bitmap into it (and if this >>> works, to make it later on the size of the CRT window). I expected then >>> that other text output or GRA* output would be drawn on top of this. But >>> it seems I can't get there. See attached app as a sample. >>> >>> So: Can a CRT have a background image ? Is this possible at all or what >>> do I miss here. >>> >>> Thanks for your time and help >>> >>> Franz Josef Herbers > > | |
FJ Herbers | Re: CRT and background image ? on Sun, 09 Jul 2006 09:54:17 +0200 James, I tried that as well, again no luck. GUI might be at the end of the road, but for the moment I just wanted the conversion to hybrid. Thanks Franz Josef "James Loughner" <jwrl@charter.net> schrieb im Newsbeitrag news:f8d592b$60b6354$e34a3@news.alaska-software.com... > Did you try setting Clipsiblings := .T. for the static object? > > XBPCRT does not have a Draw call back so you can't just draw on the CRT as > I suggested, any repaint would cause the other objects to be over painted. > > Maybe it is time to move to full GUI. It is easy to do for a dialog > Window. Just set oDlg:DrawingArea:Bitmap := a XbpBitmap or resource ID > > Jim > > FJ Herbers wrote: >> Hi James, >> >> thanks for your idea. I already tried the :ToBack() method, but this >> didn't work. >> >> Thanks >> >> Franz Josef >> >> >> "James Loughner" <jwrl@charter.net> schrieb im Newsbeitrag >> news:37810a65$5ea00c5b$dbd93@news.alaska-software.com... >>> Try the :ToBack() method. In a full GUI you could make the Static the >>> parent of the parts but I don' know how that would be done in a CRT. >>> >>> Also you might simply draw the static on the CRT window but then you >>> would need a Paint call back to repaint it and any parts on top of it. >>> >>> Jim >>> >>> FJ Herbers wrote: >>>> Hello everybody, >>>> >>>> here is my next migration question for you. >>>> >>>> Is it possible to have a kind of background image in a CRT (hybrid) >>>> window ? >>>> >>>> My idea was to define a XbpStatic, load a bitmap into it (and if this >>>> works, to make it later on the size of the CRT window). I expected then >>>> that other text output or GRA* output would be drawn on top of this. >>>> But it seems I can't get there. See attached app as a sample. >>>> >>>> So: Can a CRT have a background image ? Is this possible at all or what >>>> do I miss here. >>>> >>>> Thanks for your time and help >>>> >>>> Franz Josef Herbers >> | |
Roger Donnay | Re: CRT and background image ? on Thu, 13 Jul 2006 13:33:37 -0600 FJ - This will paint a nice tiled bitmap in your CRT window. oBMP:= XbpBitmap():new():create( ) oBMP:loadfile("Kaffeetasse.bmp") FOR i := 0 TO oCrtSize[1] STEP oBmp:xSize FOR j := 0 TO oCrtSize[2] STEP oBmp:ySize oBMP:draw( nil, { i, j } ) NEXT NEXT Roger "FJ Herbers" <FJ_Herbers@web.de> wrote in message news:6fbdcbdc$3342f9bb$dac4c@news.alaska-software.com... > Hello everybody, > > here is my next migration question for you. > > Is it possible to have a kind of background image in a CRT (hybrid) window > ? > > My idea was to define a XbpStatic, load a bitmap into it (and if this > works, to make it later on the size of the CRT window). I expected then > that other text output or GRA* output would be drawn on top of this. But > it seems I can't get there. See attached app as a sample. > > So: Can a CRT have a background image ? Is this possible at all or what do > I miss here. > > Thanks for your time and help > > Franz Josef Herbers > > | |
FJ Herbers | Re: CRT and background image ? on Wed, 19 Jul 2006 19:13:57 +0200 Hi Roger, thanks for answering: But the problem was not to get the bitmap itself to display - this works fine. The problem was that later on some text output or GRA* output is shown partly behind the bitmap and hence not readable. Kind regards Franz Josef "Roger Donnay" <rogerdonnay@donnay-software.com> schrieb im Newsbeitrag news:44d88aae$30980643$d844@news.alaska-software.com... > FJ - > > This will paint a nice tiled bitmap in your CRT window. > > oBMP:= XbpBitmap():new():create( ) > oBMP:loadfile("Kaffeetasse.bmp") > > FOR i := 0 TO oCrtSize[1] STEP oBmp:xSize > FOR j := 0 TO oCrtSize[2] STEP oBmp:ySize > oBMP:draw( nil, { i, j } ) > NEXT > NEXT > > Roger > > "FJ Herbers" <FJ_Herbers@web.de> wrote in message > news:6fbdcbdc$3342f9bb$dac4c@news.alaska-software.com... >> Hello everybody, >> >> here is my next migration question for you. >> >> Is it possible to have a kind of background image in a CRT (hybrid) >> window ? >> >> My idea was to define a XbpStatic, load a bitmap into it (and if this >> works, to make it later on the size of the CRT window). I expected then >> that other text output or GRA* output would be drawn on top of this. But >> it seems I can't get there. See attached app as a sample. >> >> So: Can a CRT have a background image ? Is this possible at all or what >> do I miss here. >> >> Thanks for your time and help >> >> Franz Josef Herbers >> >> > > | |
Roger Donnay | Re: CRT and background image ? on Wed, 19 Jul 2006 13:02:11 -0600 Have you tried this solution? "FJ Herbers" <FJ_Herbers@web.de> wrote in message news:146ed6d4$598f2688$174ef@news.alaska-software.com... > Hi Roger, > > thanks for answering: But the problem was not to get the bitmap itself to > display - this works fine. > The problem was that later on some text output or GRA* output is shown > partly behind the bitmap and hence not readable. > > Kind regards > > Franz Josef > "Roger Donnay" <rogerdonnay@donnay-software.com> schrieb im Newsbeitrag > news:44d88aae$30980643$d844@news.alaska-software.com... >> FJ - >> >> This will paint a nice tiled bitmap in your CRT window. >> >> oBMP:= XbpBitmap():new():create( ) >> oBMP:loadfile("Kaffeetasse.bmp") >> >> FOR i := 0 TO oCrtSize[1] STEP oBmp:xSize >> FOR j := 0 TO oCrtSize[2] STEP oBmp:ySize >> oBMP:draw( nil, { i, j } ) >> NEXT >> NEXT >> >> Roger >> >> "FJ Herbers" <FJ_Herbers@web.de> wrote in message >> news:6fbdcbdc$3342f9bb$dac4c@news.alaska-software.com... >>> Hello everybody, >>> >>> here is my next migration question for you. >>> >>> Is it possible to have a kind of background image in a CRT (hybrid) >>> window ? >>> >>> My idea was to define a XbpStatic, load a bitmap into it (and if this >>> works, to make it later on the size of the CRT window). I expected then >>> that other text output or GRA* output would be drawn on top of this. But >>> it seems I can't get there. See attached app as a sample. >>> >>> So: Can a CRT have a background image ? Is this possible at all or what >>> do I miss here. >>> >>> Thanks for your time and help >>> >>> Franz Josef Herbers >>> >>> >> >> > > | |
Franz Josef Herbers | Re: CRT and background image ? on Thu, 20 Jul 2006 08:37:17 +0200 Good morning Roger, yes of course. But didn't work - same problem as before. Kind regards Franz Josef "Roger Donnay" <rogerdonnay@donnay-software.com> schrieb im Newsbeitrag news:7032842c$57fe97f$176d3@news.alaska-software.com... > Have you tried this solution? > > "FJ Herbers" <FJ_Herbers@web.de> wrote in message > news:146ed6d4$598f2688$174ef@news.alaska-software.com... >> Hi Roger, >> >> thanks for answering: But the problem was not to get the bitmap itself to >> display - this works fine. >> The problem was that later on some text output or GRA* output is shown >> partly behind the bitmap and hence not readable. >> >> Kind regards >> >> Franz Josef >> "Roger Donnay" <rogerdonnay@donnay-software.com> schrieb im Newsbeitrag >> news:44d88aae$30980643$d844@news.alaska-software.com... >>> FJ - >>> >>> This will paint a nice tiled bitmap in your CRT window. >>> >>> oBMP:= XbpBitmap():new():create( ) >>> oBMP:loadfile("Kaffeetasse.bmp") >>> >>> FOR i := 0 TO oCrtSize[1] STEP oBmp:xSize >>> FOR j := 0 TO oCrtSize[2] STEP oBmp:ySize >>> oBMP:draw( nil, { i, j } ) >>> NEXT >>> NEXT >>> >>> Roger >>> >>> "FJ Herbers" <FJ_Herbers@web.de> wrote in message >>> news:6fbdcbdc$3342f9bb$dac4c@news.alaska-software.com... >>>> Hello everybody, >>>> >>>> here is my next migration question for you. >>>> >>>> Is it possible to have a kind of background image in a CRT (hybrid) >>>> window ? >>>> >>>> My idea was to define a XbpStatic, load a bitmap into it (and if this >>>> works, to make it later on the size of the CRT window). I expected then >>>> that other text output or GRA* output would be drawn on top of this. >>>> But it seems I can't get there. See attached app as a sample. >>>> >>>> So: Can a CRT have a background image ? Is this possible at all or what >>>> do I miss here. >>>> >>>> Thanks for your time and help >>>> >>>> Franz Josef Herbers >>>> >>>> >>> >>> >> >> > > | |
AUGE_OHR | Re: CRT and background image ? on Fri, 14 Jul 2006 01:08:11 +0200 hi, > Is it possible to have a kind of background image in a CRT (hybrid) window ? util yesterday i woud have say no ... but today : have a look at Newsgroup "public.xbase++.generic". Osvaldo have ask : "Can I Paint CRT Windows with a Color different from Clipper pattern ?" and we have find out that it is possible. i have enhance Carlos Beling sample to :loadfile a Bitmap into XbpCRT :presSpace. have fun with it greetings by OHR Jimmy | |
FJ Herbers | Re: CRT and background image ? on Wed, 19 Jul 2006 19:15:31 +0200 Hi Jimmy, thanks a lot for your hint. I did not notice that thread, but will surely have a look at it, as it seems promising. Kind regards Franz Josef "AUGE_OHR" <AUGE_OHR*AT*CSI.COM> schrieb im Newsbeitrag news:68c0bf13$33b0e5d5$dbfc@news.alaska-software.com... > hi, > >> Is it possible to have a kind of background image in a CRT (hybrid) >> window > ? > > util yesterday i woud have say no ... > > but today : have a look at Newsgroup "public.xbase++.generic". Osvaldo > have > ask : "Can I Paint CRT Windows with a Color different from Clipper pattern > ?" > and we have find out that it is possible. i have enhance Carlos Beling > sample > to :loadfile a Bitmap into XbpCRT :presSpace. > > have fun with it > greetings by OHR > Jimmy > > |