|
PowerBASIC Forums
![]() PowerBASIC Console Compiler
![]() Window Size from Random to Fixed.
|
| next newest topic | next oldest topic |
| Author | Topic: Window Size from Random to Fixed. |
|
Frank Ferrell Member |
UPDATE 6/11/2003 -- see latest post from me Greetings -- I am a newcomer to Console Compiler. My question is .. Is there a function or SUB-routine - which can be executed at the start of any program - that will automaticly change the program's Window Box size from Random to Fixed ?? Click on this image link - it illustrates what I'm inquiring about. The type of function (or SUB-routine) would be used in conjunction with a CONSOLE SCREEN setting of 26,80 and a non-CLS format where the screen is cleared with this SUB-Routine (or appropriate variations of it). SUB DaBlackGround The idea is to have a screen who size won't change, allowing for a PBCC program that closely resembles a old-fashioned DOS program. At least that's the theory! Thanx-A-Lot and Enjoy -- Frank [This message has been edited by Frank Ferrell (edited June 11, 2003).] IP: Logged |
|
Pierre Bellisle Member |
Welcome aboard Frank, is this what you want...
[This message has been edited by Pierre Bellisle (edited June 05, 2003).] IP: Logged |
|
Frank Ferrell Member |
Greetings -- I'm using PBCC v 2.0 - and have discovered the CONSHNDL statement/function is available only on PBCC v3 and up !!! No wonder I keep getting an error message! Guess it's time to upgrade -- thanks anyway for your reply. ------------------ [This message has been edited by Frank Ferrell (edited June 05, 2003).] IP: Logged |
|
Pierre Bellisle Member |
Frank, did some modification to the code above, it should work under CC/2... ------------------ IP: Logged |
|
Frank Ferrell Member |
Greetings -- Thanks Pierre -- the code worked this time -- it did expand the window and set it to maximized mode. However, it doesn't quite maximize when I try to run a test program of my own. Here's the code -- #COMPILE EXE Thanx-A-Lot and Enjoy, Frank [This message has been edited by Frank Ferrell (edited June 05, 2003).] IP: Logged |
|
Pierre Bellisle Member |
Ok, let's try it this way...
------------------ [This message has been edited by Pierre Bellisle (edited June 05, 2003).] IP: Logged |
|
Frank Ferrell Member |
Greetings -- EUREKA! -- Snooze Control -- aka Sleep 250/500 --- did the trick! Thanks Again Pierre, Frank [This message has been edited by Frank Ferrell (edited June 05, 2003).] IP: Logged |
|
Frank Ferrell Member |
Greetings -- The code that Pierre gave me works fine in Win-95 and 98 - not so well in Win-2000 and beyond. Suggestions? ------------------ IP: Logged |
|
Lance Edmonds Member |
PB/CC Full-screen/Windowed mode switching: http://www.powerbasic.com/support/forums/Forum7/HTML/001941.html ------------------ IP: Logged |
All times are EasternTime (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1999-2005 PowerBASIC, Inc. All Rights Reserved.