Hi

> I converted an old application written in clipper and I used the gtwvg library
> and particularly the Wvg_BoxRaised Wvg_BoxRecessed functions to give a graphic
> look for my application. I got excellent results only I can not erase the 
> boxes
> drawn with wvg_box... when I return to the main menu: the boxes stay on the
> screen. It seems to me that RestScreen() does not work the same way as with
> clipper. Here is a portion of my code:
> I thank you in advance for your assistance
> My function()
> Local SvE := SaveScreen (0 , 0, Maxrow(),MaxCol())
> Local wvtScr := Wvt_SaveScreen( 0, 0, MaxRow(), MaxCol() )
> cls
> .
> .
> .
> wvg_BoxRaised ( 02,01,17,77, {-5,-5,5,5} )
> wvg_BoxRecessed( 02,01,17,77 )
> 
> wvg_BoxRaised ( 03,02,16,76 )
> 
> wvg_BoxRaised ( 19,01,22,44, {-5,-5,5,5} )
> wvg_BoxRecessed( 19,01,22,44 )
> 
> wvg_BoxRaised ( 19,47,22,77, {-5,-5,5,5} )
> wvg_BoxRecessed( 19,47,22,77 )
> wvg_InvalidateRect( 0, 0, maxrow(), maxcol() )
> DBEDIT(3,02,16,76,aDCol,fon,aDColSayPict,aDEnteCol, 'ÂÄ','³',)
> Close DataBases
> Clear TypeAhead
> RestScreen ( 0 , 0, Maxrow(),MaxCol(), SvE)
> Wvt_RestScreen( 0, 0, MaxRow(), MaxCol(), wvtScr )
> Release aDCol,aDColSayPict,aDEnteCol
> Return


Wvg_Box* family of functions always stays on top of the console contents 

always. The way you are using it is wrong. To take use of it you need to 
initiate 

a new console, modal or threaded, which get destroyed when you are done.

 

Please examine contrib/gtwvg/tests/wvgcuigdialog.prg. 

Restore/savescreens are ineffective here.

 

Regards
 
Pritpal Bedi  |  a student of software analysis & design
.
http://www.vouch.in  |  Vouch, the software that GROWS with you
http://www.vouch32.com  |  Home of Vouch32 ActiveX Server ( Free Unrestricted )
http://www.vouchcac.com/vouch32/vouch32.htm   |   A Windows Extended
                Utilities Library for Clipper, Xbase++ and (x)Harbour ( Free 
Unrestricted )
http://hbide.vouch.info  |  An IDE for Harbour, xHarbour, Xbase++

                                          
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
Harbour-users@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour-users

Reply via email to