On 12 Mar 2009 at 12:04, Pritpal Bedi wrote: > > Please note that using CTWin like API in practice eliminates > > SAVESCREEN/RESTSCREEN making the whole code much simpler. > > GTWVW was addressing this aspect. > > > > I never used CTWIN so cannot comment. GTWVW is aimed > as you described but with a different approach.
Yes, as Przemek said, in gtwvw we rarely do savescreen/restscreen since we use windowing mechanism to displaying overlapping info on screen. In other cases where we do need to do savescreen/restscreen, gtwvw app need not care about native GUI controls (pushbuttons, toolbars, textboxes, etc) as they are on different layer (kept by Windows). As for bitmaps and other elements drawn as "pseudo GUI elements", yes we have to do tricky way to save/restore them in gtwvw. > > As long as user does not try to manipulate the contents of > > the screen buffer returned by savescreen then it should not > > cause any problems. Anyhow some window oriented GTs like > > CTWIN will not work correctly because they use own itenral > > buffers which are character oriented. They will have to be > > modified to work with bit map screen buffers what is not easy > > job but it's possible. Though probably it will be easier to > > leave CTW as is and create new similar GT for GTWVG and other > > GTs which will operate on bitmaps. > > > > I am not touching SaveScreen() and restScreen() so it will bot be > a problem at all. Yes, I agree that savescreen()/restscreen() must be backward compatible. Many applications (and libraries) I know doing things with the buffer returned by savescreen. Or even creating a buffer "by hand" and later display it using restscreen(). > > I think that many people will find it as very interesting. > > > > I use Windows Harbour builds very seldom so I'm not good person to > > answer but looking at xharbour.news I'm finding that many people are > > intersting in GTWVW port. > > > > I also think so. But as I am not a user of GTWVW, I cannot port > it as is. Rather I will port the concept in GTWVW. In the other email you said "port GTWVW in GTWVG", and here you say "port the concept in GTWVW"... I believe yo do mean the same thing with that two different clause :-). But, can you please explain in more detail? What are going to be changed and where? Thanks and regards, budyanto _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour