The console window does not start in CONSOLE SET SCREEN mode as set with CONSOLE SET SCREEN. Is there a way to set it to CONSOLE SET SCREEN on start up? I have to click on the Maximize button to start the application, Thanks
Announcement
Collapse
No announcement yet.
Set console to full screen on Ctrl+E
Collapse
X
-
Originally posted by Adam J. Drake View PostSo you want maximized, but not full screen?
Thanks, Lynn
Comment
-
-
Lynn, try something like (chage rows/cols to your liking)
may be able to use hConsole AS DWORD
Code:LOCAL sTitle AS STRING, hConsole AS LONG sTitle ="MENU" CONSOLE NAME sTitle CONSOLE SCREEN 26,80 hConsole = FindWindow(BYVAL %NULL, BYVAL STRPTR(sTitle)) ' use findwindow to get hwnd lResult&=ConsoleWindow(%MAXIMIZE)
Actually the hConsole = Findwindow.... is used later to put an icon on the window captionLast edited by Fred Buffington; 24 Feb 2008, 09:01 AM.
Comment
-
-
Does this work?
Code:' Needed Declare, equate DECLARE FUNCTION ShowWindow LIB "USER32.DLL" ALIAS "ShowWindow" (BYVAL hWnd AS DWORD, BYVAL nCmdShow AS LONG) AS LONG %SW_MAXIMIZE = 3 '=========================================== ' This seems to maximize for me ShowWindow CONSHNDL, %SW_MAXIMIZE
Adam Drake
PowerBASIC
Comment
-
-
Originally posted by Adam J. Drake View PostDoes this work?
Code:' Needed Declare, equate DECLARE FUNCTION ShowWindow LIB "USER32.DLL" ALIAS "ShowWindow" (BYVAL hWnd AS DWORD, BYVAL nCmdShow AS LONG) AS LONG %SW_MAXIMIZE = 3 '=========================================== ' This seems to maximize for me ShowWindow CONSHNDL, %SW_MAXIMIZE
Comment
-
Comment