Announcement

Collapse
No announcement yet.

Set console to full screen on Ctrl+E

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lynn Wakefield
    replied
    Originally posted by Adam J. Drake View Post
    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
    This seems to work for me also, thanks to you Adam and all that helped!!

    Leave a comment:


  • Adam J. Drake
    replied
    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

    Leave a comment:


  • Fred Buffington
    replied
    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)
    of course this is not full screen but rather maximized window.
    Actually the hConsole = Findwindow.... is used later to put an icon on the window caption
    Last edited by Fred Buffington; 24 Feb 2008, 09:01 AM.

    Leave a comment:


  • Lynn Wakefield
    replied
    Originally posted by Eric Pearson View Post
    Lynn --

    What version of Windows are you using?

    -- Eric
    Eric,
    I'm running XP Pro on my laptop and XP on my Dell desktop.
    Both act the same.

    Leave a comment:


  • Eric Pearson
    replied
    Lynn --

    What version of Windows are you using?

    -- Eric

    Leave a comment:


  • Lynn Wakefield
    replied
    Originally posted by Adam J. Drake View Post
    So you want maximized, but not full screen?
    Yes I want the Console Screen to go to the 'CONSOLE SET SCREEN 60,128' that I set in the program. As it is, on start up with Ctrl E, the CONSOLE window goes to a small window with side bars. Then I have to click on maximize window button to get full screen (a real pain)!
    Thanks, Lynn

    Leave a comment:


  • Adam J. Drake
    replied
    So you want maximized, but not full screen?

    Leave a comment:


  • Lynn Wakefield
    replied
    I don't want to go to DOS, I want to maximize the console window to the CONSOLE SET SCREEN on start up of the application.
    Last edited by Lynn Wakefield; 22 Feb 2008, 04:26 PM. Reason: Bad spelling

    Leave a comment:


  • Adam J. Drake
    replied
    There are two ways to do so programatically mentioned here:

    Leave a comment:


  • Lynn Wakefield
    started a topic Set console to full screen on Ctrl+E

    Set console to full screen on Ctrl+E

    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
    Last edited by Lynn Wakefield; 22 Feb 2008, 04:24 PM. Reason: Maybe a better understanding!
Working...
X
😀
🥰
🤢
😎
😡
👍
👎