Windows or Panels - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: Windows or Panels (/showthread.php?tid=841) |
Windows or Panels - johnno56 - 09-02-2022 Before starting on a game I need to know if QB64 is capable of creating multiple (3) display "screens or panels" that can handle scrolling text; not re-sizeable and without GUI borders.... Each panel will need to be able to have text and or graphics directed to them. I am not sure that I am explaining this properly. This is a sample of the panel sizes.... Overall image size is 1024x768. Top left panel: Graphics and a little text. Top right panel: Graphics and text: Bottom panel: Text only. (this panel may need to be able to scroll... but not too sure) RE: Windows or Panels - mnrvovrfc - 09-02-2022 You will have to manage them yourself on a single "SCREEN _NEWIMAGE()". Each "panel" is the LONG return value of "_NEWIMAGE" and then you could manage each one hidden from the user by using "_SOURCE" and "_DEST" statements to assign which screen. "_DEST" is to assign which screen to use for drawing, and "_SOURCE" is usually to use "POINT()" to read colors off the screen. You use "_PUTIMAGE" to put the "panels" into the "main" screen. It sounds complicated but it really isn't, imagine trying to do it all with interpreted QBasic. P.S. Are you able to use sdlBasic? How?! I'm trying to get it going even on 32-bit "Precise Pangolin" and can't! I only wanted to check out the games. This appeared as package for Mageia 8, couldn't believe it... RE: Windows or Panels - bplus - 09-02-2022 For scrolling text in a section of the screen just use View. So setup Views for different parts of screen? https://qb64phoenix.com/qb64wiki/index.php/VIEW Looks like you can direct all the graphics into a View box as well. I don't know how it'd take to different fonts? I am getting curious enough to experiment if no one else knows. RE: Windows or Panels - mnrvovrfc - 09-02-2022 Keep things simple and use monospaced fonts. The "_FONT 8" might be enough but maybe stretch it a bit horizontally, like "WIDTH 40" type. The ancient CRT screens seen in cheesy sci-fi movies all had monospaced fonts... as well as the fake Unix terminal screens in television series seen more recently such as "Blindspot". RE: Windows or Panels - SMcNeill - 09-02-2022 This sounds like my frame library at work. Code: (Select All) '$INCLUDE:'FrameLibrary.BI' The demo here sets us up with just 2 frames (leftframe and rightframe here), but there's no reason why you can't have 3 or 12 or 127... I shared this waaay back on the old *.rip forums, but you can find a copy of the original post on the subject here in you're interested: Frame Library (alephc.xyz) RE: Windows or Panels - bplus - 09-02-2022 That looks like old Trick or Treat Word Search thing I did way back... RE: Windows or Panels - SMcNeill - 09-02-2022 (09-02-2022, 08:49 PM)bplus Wrote: That looks like old Trick or Treat Word Search thing I did way back... That was from waay back then. I just adapted my version to the frame library for output. RE: Windows or Panels - johnno56 - 09-02-2022 mnrvovrfc, As you are using Ubuntu 12.04LTS, I seriously doubt that you would be able to install much at all, as the 2012 version of Ubuntu is no longer supported. My recommendation is to install a current version of Ubuntu. Sdlbasic (if memory serves correctly) is still available in the software repository. If you need any assistance, I would be happy to help, or there is always the sdlbasic forum http://sdlbasic.epizy.com Regards J RE: Windows or Panels - mnrvovrfc - 09-04-2022 @johnno56 Thank you for your offer. I looked up how to install sdlBasic on Fedora XFCE. I wish I had this with the old Ubuntu Studio, while I didn't have Internet. Otherwise LOL, ten years old, I would rather keep QB64 at this point. |