Announcement

Collapse
No announcement yet.

Set console to full screen on Ctrl+E

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

  • 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, 05:24 PM. Reason: Maybe a better understanding!

  • #2
    There are two ways to do so programatically mentioned here:

    http://www.powerbasic.com/support/pb...ht=keybd_event
    Adam Drake
    Drake Software

    Comment


    • #3
      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, 05:26 PM. Reason: Bad spelling

      Comment


      • #4
        So you want maximized, but not full screen?
        Adam Drake
        Drake Software

        Comment


        • #5
          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

          Comment


          • #6
            Lynn --

            What version of Windows are you using?

            -- Eric
            "Not my circus, not my monkeys."

            Comment


            • #7
              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.

              Comment


              • #8
                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, 10:01 AM.
                Client Writeup for the CPA

                buffs.proboards2.com

                Links Page

                Comment


                • #9
                  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
                  Drake Software

                  Comment


                  • #10
                    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!!

                    Comment

                    Working...
                    X