home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,029 of 2,978   
   Alan Brown to All   
   Screen Page swapping problem   
   07 Oct 04 06:37:36   
   
   From: rigelau@yahoo.nospam.com.au   
      
   Hi Ppl,   
      
   My program swaps from page(0) to page(1) to display a help screen and then   
   back to the main page.  The logic (very much simplified) looks something   
   like this -   
      
   SetActivePage(0);                 { Main Screen for program output }   
   SetVisualPage(0);   
      
   { program output.... }   
      
   If F1 then   
      
       SetActivePage(1);             { Page 1 for Help Screen output }   
       SetVisualPage(1);   
      
       { Help Screen output..... }   
      
       If Esc then   
      
          SetActivePage(0);            { Return to Main Screen to continue }   
          SetVisualPage(0);   
      
       { Back to Main program output... }   
      
   The program works OK and I can get the Help Screen (Page 1) up but it is   
   displaced upwards by about 1.5cm (about 80 pixels) so that I lose the top   
   part off the screen and the bottom 1.5cm is still part of the Main Screen   
   (Page 0).   
      
   When I return to the Main Screen (Page 0) everything is OK again.   
      
   Any suggestions?   
      
   I am using BP7 (Real Mode)under Windows 98SE, VGAHi, 640 * 480.  Everything   
   else is OK - graphics, graph plotting, text output and so on.   
      
   Thanks for any help   
      
   Alan.   
      
      [  There are 10 types of people -               ]   
      [    those who know binary and those who don't! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca