User contributions for BigRon55

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

25 April 2022

  • 20:1720:17, 25 April 2022 diff hist +3,780 N Alternative circle routineCreated page with "'''Circle.BI Include file or SUB to use when using PAINT with pie charts or arc slices:'''</center> {{TextStart}} 'CIRCLE.BI '** '** QB64 replacement CIRCLE command. '** '** The CIRCLE command in QB64 has a few issues: '** '** - radian end points are not calculate properly when creating arcs '** - center line to radian end points do not close properly due to previous bug listed '** '** This circle command replacement works very similiarly to the native CIRCLE co..."
  • 19:3919:39, 25 April 2022 diff hist +27 CALL ABSOLUTERemove "CALL" from page title. Tag: visualeditor
  • 18:1618:16, 25 April 2022 diff hist +4,151 N ScreenModeCreated page with "<center>'''Screen Mode Detection Function'''</center> {{CodeStart}} '' '' DO {{Cl|PRINT}} {{Cl|PRINT}} {{Cl|PRINT}} " Screen W H Colors " {{Cl|PRINT}} " 0 80/40 (25) 16 " {{Cl|PRINT}} " 1 (320) (200) 4 " {{Cl|PRINT}} " 2 (640) 200 2 " {{Cl|PRINT}} " ........................ " {{Cl|PRINT}} " 7 320 200 16 " {{Cl|PRINT}} " 8 640 200 16 " {{Cl|PRINT}} " 9 (6..."
  • 18:0418:04, 25 April 2022 diff hist +12,517 N GIF CreationCreated page with "<center>'''GIF File Creator'''</center> The following routine can be used with QBasic or QB64 to create a Graphic Information File image of a program screen. * Accommodates _NEWIMAGE screen pages with up to 256 colors and image files loaded with _LOADIMAGE. * The maximum screen coordinates are always one pixel LESS than the screen mode's resolution! (SCREEN 13's are 319 and 199) * The $INCLUDE text file can be created using Notepad and is REQUIRED when th..."

22 April 2022

  • 20:4320:43, 22 April 2022 diff hist +720 QB.BINo edit summary
  • 20:2920:29, 22 April 2022 diff hist +3,119 N QB.BICreated page with "The '''QB.BI''' file can be used for INTERRUPT or INTERRUPTX routines by $INCLUDEing the file in a program. It is useful for the TYPE and SUB declarations. The contents follow: * Create your own BI files to $INCLUDE to hold your own TYPE definitions. Use notepad and save as All Files as ''filename.BI'' * In Qbasic the BI library or support file MUST be included in a program package or download! * '''QB64''' programs do not require any INCLUD..."
  • 20:2220:22, 22 April 2022 diff hist +1,657 N HandleCreated page with "In QB64 '''handles''' are created and used by various statements and functions to reference screen surfaces, images, sounds, fonts and IP users. {{PageSyntax}} ::: '''handle& =''' _NEWIMAGE(800, 600, 32) ::: _FREEIMAGE '''handle&''' ''Usage:'' * SCREEN and image handles in use cannot be freed without error! Change screens or fonts before freeing the handle from memory! * The actual value of the handle is only important if it fails to return a value in the range s..."
  • 18:5818:58, 22 April 2022 diff hist +3,460 N Base ComparisonsCreated page with "{{WhiteStart}} <tt> '''Comparing the Base Numbering Systems'''</tt> '''<tt>Decimal (base 10) Binary (base 2) Hexadecimal (base 16) Octal (base 8)</tt>''' 0 0000 0 0 1 0001 1 1 2 0010 2 2 3 0011 3..."
  • 18:4718:47, 22 April 2022 diff hist +13 HEX$ 32 Bit ValuesNo edit summary
  • 18:4418:44, 22 April 2022 diff hist −9 HEX$ 32 Bit ValuesNo edit summary
  • 18:1618:16, 22 April 2022 diff hist +3,431 N HEX$ 32 Bit ValuesCreated page with "LONG Hexadecimal values can be used to set a _PALETTECOLOR instead of using _RGB32 or _RGBA32 values. * Hexadecimal digits can be represented as any number or letter up to F: '''0 1 2 3 4 5 6 7 8 9 A B C D E F''' * Byte values up to 255 can represented by two hexadecimal digits such as 1C, 23, FA, etc. * The hex value for bright white(attribute 15) is &HFFFFFFFF or: ::: Alpha = FF (255), Red = FF (255), Green =..."
  • 17:5017:50, 22 April 2022 diff hist +2,835 N Screen Saver ProgramsCreated page with "<center>'''Creating a QB64 Screen Saver'''</center> Screen savers are simply graphics EXE programs renamed with the SCR file extension. The program should NOT use a lot of Window's CPU resources! To check the CPU usage, open '''Task Manager''' by pressing ''Ctrl + Alt + Delete'' keys and look for the QB64 program running in the ''Processes'' tab list. CPU usage should be less than 50% and ideally less than 20%. Use _LIMIT or SLEEP when needed. <center>'''Renam..."
  • 17:4317:43, 22 April 2022 diff hist +4,150 N ThirtyTwoBit MEM SUBCreated page with "<center>'''Fast Bitmap Export routine using memory for use with 32-bit color images ONLY'''</center> {{CodeStart}} '' '' {{Cl|PRINT}} "This program will create a 32 bit bitmap of the desktop!" {{Cl|PRINT}} " IN 2 SECONDS..." {{Cl|_DELAY}} 2 picture& = {{Cl|_SCREENIMAGE}} x1% = 0: y1% = 0 x2% = {{Cl|_WIDTH (function)|_WIDTH}}(picture&) - 1 y2% = {{Cl|_HEIGHT}}(picture&) - 1 SaveBMP32 x1%, x2%, y1%, y2%, picture&, "ScreenShot.bmp" '' '' {{CodeEnd}} {{Te..."
  • 17:3117:31, 22 April 2022 diff hist +5,527 N ThirtyTwoBit SUBCreated page with "<center>''' ThirtyTwoBit Screen Shot SUB for QB64 Screen and Image Handles'''</center> ''Syntax:'' ThirtyTwoBit left_column%, top_row%, right_column%, bottom_row%, handle&, new_filename$ * Copies portions or all of a Screen or image using the handle value to a new bitmap. SAVEIMAGE does full screen only! * Make sure the maximum coordinates used are one less than the '''screen''' image's size or an Illegal Function call error will occur! * A handle..."
  • 17:2517:25, 22 April 2022 diff hist +9,320 N Program ScreenShotsCreated page with "<center> '''Creating Screenshot Bitmaps inside of your Programs'''</center> ''Syntax:'' EightBit Minimum_Column%, Minimum_Row%, Maximum_Column%, Maximum_Row%, NewFileName$ * The values of x1%, y%1, x2% and y2% can be any ON SCREEN area coordinates in the screen mode used. * You MUST subtract one when using the '''QB64''' FULL SCREEN _WIDTH and _HEIGHT values! Otherwise POINT will return an Illegal function error! The maximum is one pixel..."
  • 17:2017:20, 22 April 2022 diff hist +10,602 N SelectScreenCreated page with "This screen mode selector shows a list of common video modes found on desktop and laptops graphics cards, and some square modes. It has full mouse support. It also has the ability to filter video modes for a specific aspect ratio. Some of you might have seen this in my previous graphics program. I'm now releasing it as a library. It's a two-part library that can be plugged into any program (using $INCLUDE). It's two-part because it contains definitions at the start..."
  • 17:0517:05, 22 April 2022 diff hist +12,578 N FILELIST$Created page with "<center>''' FILELIST$ Function Automatic Setup Version'''</center> This version of the FILELIST$ string Function can be set up as a separate Window or be positioned anywhere on program screens larger than 640 X 480. Two position parameters are added to place the top left corner position on a QB64 custom _NEWIMAGE screen. It can be used with ANY screen mode either as a separate window or combined with your program screen! Simply set the parameters to zero if you wan..."
  • 16:5916:59, 22 April 2022 diff hist +18,369 N FILELIST$ (function)Created page with "The '''FILELIST$''' function can be used in place of the old Qbasic FILES statement to view a list of files. Displays long and short(8.3) DOS filenames with the last modified information. Function name returns the short filename while '''SHARED''' string variables '''LFN$''' and '''Path$''' return the long name and absolute path from the current root drive. The leading underscore should make it compatible with most older Qbasic program code run in '''QB64'''. The fun..."
  • 16:2816:28, 22 April 2022 diff hist −2 DACNo edit summary
  • 16:2716:27, 22 April 2022 diff hist +5 DACNo edit summary
  • 16:2716:27, 22 April 2022 diff hist 0 DACNo edit summary
  • 16:2516:25, 22 April 2022 diff hist −17 DACNo edit summary
  • 16:2416:24, 22 April 2022 diff hist −12 DACNo edit summary
  • 16:2316:23, 22 April 2022 diff hist +3,388 N DACCreated page with "'''DAC''' stands for the QBASIC Digital to Analog Converter color attributes used in screens 0, 7 and 9. ::::: ''' IMPORTANT: QB64 screens do not use the DAC index!''' * DAC colors are preset and cannot be changed in Qbasic easily(see example). * DAC color attribute settings cannot be changed using PALETTE or OUT RGB statements. * Screen 0 and 9 can use up to 64 DAC color hues. Only attributes 0 to 5 and 7 can have RGB values altered using OUT. * [[PALETTE]..."
  • 16:1916:19, 22 April 2022 diff hist +1,405 N LOCK (access)Created page with "The LOCK statement restricts access to parts of a file by other programs or processes. {{PageSyntax}} :LOCK [#]{{Parameter|fileNumber%}} :LOCK [#]{{Parameter|fileNumber%}}, {{Parameter|record&}} :LOCK [#]{{Parameter|fileNumber%}}, [{{Parameter|firstRecord&}}] TO {{Parameter|lastRecord&}} {{PageDescription}} * {{Parameter|fileNumber%}} is the file number of the file to lock. * In the first syntax, the entire file is locked. * In the second syntax, {{Pa..."
  • 16:0516:05, 22 April 2022 diff hist +14,027 N ASCII TableCreated page with "{|border="1" | | -0 | -1 | -2 | -3 | -4 | -5 | -6 | -7 | -8 | -9 | -A | -B | -C | -D | -E | -F |- | 0- | | <code>NUL</code><br /><sup>0000</sup><br />'''0''' | | <code>SOH</code><br /><sup>0001</sup><br />'''1''' | | <code>STX</code><br /><sup>0002</sup><br />'''2''' | | <code>ETX</code><br /><sup>0003</sup><br />'''3''' | | <code>EOT</code><br /><sup>0004</sup><br />'''4''' | | <code>ENQ</code><br /><sup>0005</sup><br />'''5''' | | <code>ACK</code><br /><sup>0006..."
  • 13:4613:46, 22 April 2022 diff hist +3,729 N Sub (explanatory)Created page with "A '''SUB''' procedure is a procedure within a program that can calculate and return multiple parameter values just like a full program. {{PageSyntax}} :: '''SUB Procedure_name''' [(''parameter''[, ''list''...])] :: ... :: ... 'procedure variable definitions and statements :: ... :: '''END SUB''' {{Parameters}} * Parameters passed after the procedure call must match the variable types in the SUB parameters in order. * If there are no ''parameter''s passed or they are..."
  • 13:3613:36, 22 April 2022 diff hist −89 Function (explanatory)No edit summary
  • 13:2613:26, 22 April 2022 diff hist +1,963 N Function (explanatory)Created page with "A BASIC '''function''' is a procedure that returns one value in it's name. A function can be used as a statement argument or be assigned to a variable. User-defined functions are possible and behave the same way, with the only exception that user-defined functions cannot currently have optional arguments. Altering the variables that are used as arguments within the function will cause the same changes to the variables outside of the function. This also ap..."
  • 13:2213:22, 22 April 2022 diff hist +865 N StatementCreated page with "A '''statement''' is, as far as BASIC is concerned, a keyword that can be executed in run-time which doesn't return any value. It can contain several arguments or no arguments at all. The arguments in a statement are usually not enclosed with paranteses. When a graphical x-coordinate and y-coordinate is to be specified they are enclosed with paranteses though. {{PageExamples}} ''Example 1:'' Demonstrates how x- and y-coordinates are enclosed with paranteses (in..."
  • 13:1913:19, 22 April 2022 diff hist +1 ArgumentNo edit summary
  • 13:1813:18, 22 April 2022 diff hist +1,511 N ArgumentCreated page with "A '''argument''' or parameter is information that a statement, sub, function or metacommand needs to carry out the task it has been given. Sometimes a argument can be optional and is not needed for the task to be carried out, in such case it will use a default instead of the argument when carrying out the task. It is currently not possible to make arguments optional in user-defined SUBs or FUNCTIONs, but..."
  • 13:1513:15, 22 April 2022 diff hist +3,950 N VariableCreated page with "A '''variable''' is a "container" name that can hold a numerical or string value which can be referenced or changed by the program (as opposed to CONSTant values which never change). <center>'''Variable names'''</center> Variables in QB64 can be any name except the names of QB64 or Qbasic keywords and may not contain spaces or non-alphabetical/non-numerical characters (except "." and "_"). Numerical characters cannot be used as the first character of a variable or..."
  • 13:0113:01, 22 April 2022 diff hist +4,564 Data typesNo edit summary

21 April 2022

  • 19:5819:58, 21 April 2022 diff hist +30,209 N Code PagesCreated page with "__NOTOC__ <center>'''UNICODE CODE PAGES'''</center> This is a list of the current Code Pages supported by the '''QB64 IDE'''. The data can be copied to a file or made into a DATA field. Each section has a description of the Code Page, the data required for '''characters 128 TO 255''', and a LINK to the Code Table. :::'''NOTE: When copying data to create a CSV file, make sure the cursor ends up below last line at home!''' <center>'''See: Code_Pages#Unicode Mapping..."
  • 19:5319:53, 21 April 2022 diff hist +9,414 N GET and PUT DemoCreated page with "The following code demonstration shows how GET and PUT can be used to place a sprite on a background image using a mask. {{CodeStart}} '' '' {{Cl|DIM}} Image(3000) AS {{Cl|INTEGER}} {{Cl|SCREEN}} 9 {{Cl|PALETTE}} 'reset colors to normal visible ones {{Cl|PALETTE}} 12, 26 'Set DAC which do not respond to OUT {{Cl|PALETTE}} 10, 0 'set palette values for DAC attributes 'set palette values for attributes that respond to OUT {{Cl|OUT}} {{Cl|&H}}3C8, 0: {{Cl|OUT}} {{Cl|&H}..."
  • 19:3319:33, 21 April 2022 diff hist +3,296 N Creating Sprite MasksCreated page with "Sometimes your program may need to place a shaped sprite over background objects. To do that you cannot use the default PUT using XOR. XOR only works on black backgrounds! It distorts underlying colors. You could use the PSET option, but that places a square sprite only. To get irregularly shaped objects you need to create a "mask" of the sprite. After you have created your sprite with a BLACK background, GET the image to an Arrays|arra..."
  • 19:3019:30, 21 April 2022 diff hist +3,364 N Creating Icons from BitmapsCreated page with "The following program can create a single icon from square bitmaps up to 128 X 128. Best to use sizes 32 X 32 or 64 X 64. {{CodeStart}} '' '' {{Cl|CONST}} dat = 14~& {{Cl|DIM}} Dword {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} size {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} wide {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} high {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|LONG}} {{Cl|DIM}} Word {{Cl|AS}} {{Cl|_UNSIGNED}} {{Cl|INTEGER}} {{Cl|DIM}} Byte {{Cl|AS}} {{..."
  • 19:2919:29, 21 April 2022 diff hist +6,672 N SaveIcon32Created page with "The following Icon creation procedure was adapted from Galleon's SAVEIMAGE sup-procedure that creates 8 BPP or 32 bit bitmaps: '''NOTE: QB64 can use .ico files natively for Windows executables with $EXEICON.''' {{CodeStart}} '' '' DO {{Cl|LINE INPUT}} "Use 8 bit(256 colors) or 32 bit image? ", bit$ clrmode% = {{Cl|VAL}}(bit$) {{Cl|LOOP}} {{Cl|UNTIL}} clrmode% = 8 {{Cl|OR (boolean)|OR}} clrmode% = 32 {{Cl|IF...THEN|IF}} clrmode% = 8 {{Cl|THEN}} clrmode% = 256..."
  • 19:2819:28, 21 April 2022 diff hist +24,106 N Creating Icon BitmapsCreated page with "==Icon Viewer and Bitmap Creator== The following program can be used to view Icon or Cursor images and save them as Bitmaps. When you answer Y the bitmap is saved with a black background so that it can be PUT using XOR on to the AND image. The AND image will be black and white if the image is irregularly shaped(not a full box image). It is placed first using PUT with the AND action or can be placed using _PUTIMAGE with the color w..."
  • 19:2619:26, 21 April 2022 diff hist +709 N FONTWIDTH (function)Created page with "{{DISPLAYTITLE:_FONTWIDTH (function)}} The {{KW|_FONTWIDTH (function)|_FONTWIDTH}} function returns the point-size width of a monospace font. {{PageSyntax}} :<code>''result&'' = {{KW|_FONTWIDTH (function)|_FONTWIDTH}}({{Parameter|fontHandle&}})</code> {{PageDescription}} * If {{Parameter|fontHandle&}} is omitted, it is assumed to be the font of the current write page. * If {{Parameter|fontHandle&}} is an invalid handle, an invalid handle error is thr..."
  • 19:2619:26, 21 April 2022 diff hist +2,056 N FONTHEIGHT (function)Created page with "{{DISPLAYTITLE:_FONTHEIGHT}} The _FONTHEIGHT function returns the font height of a font handle created by _LOADFONT. {{PageSyntax}} :{{Parameter|pixelHeight%}} = _FONTHEIGHT[({{Parameter|fontHandle&}})] {{PageDescription}} * Returns the height of the last font used if a handle is not designated. * If no font is set it returns the current screen mode's text block height. {{PageExamples}} ''Example:'' Finding the font or text block size of pri..."
  • 19:0519:05, 21 April 2022 diff hist +2,930 N Scientific notationCreated page with "'''Scientific notation''' or exponential notation is used to express very large or small numerical values by SINGLE or DOUBLE accuracy. ''Usage:'' -9.7587E+04 or 4.6545D-9 * '''E''' denotes SINGLE precision accuracy and '''D''' denotes DOUBLE precision accuracy in Qbasic. D and E are considered numbers! * To translate the notation, multiply the number preceding the letter by the value of 10 raised to the power following the letter. * PRINT US..." Tag: visualeditor-switched
  • 16:2316:23, 21 April 2022 diff hist +325 N EXIT FORCreated page with "The '''EXIT FOR''' statement allows a condition other than the counter value to exit a FOR...NEXT loop. {{PageSyntax}} :: EXIT FOR * Used with a conditional statement to exit a FOR counter loop early. ''See also:'' * FOR...NEXT * EXIT DO, IF...THEN * _CONTINUE {{PageNavigation}}"
  • 16:2316:23, 21 April 2022 diff hist +286 N EXIT DOCreated page with "The '''EXIT DO''' statement can be used to exit a DO...LOOP from inside of the loop. {{PageSyntax}} :: EXIT DO * Used to exit a DO loop when a condition exists regardless of any loop conditions. ''See also:'' * EXIT FOR, IF...THEN * _CONTINUE {{PageNavigation}}"
  • 16:2216:22, 21 April 2022 diff hist +956 N LOOPCreated page with "The '''LOOP''' statement denotes the end of a DO...LOOP where the program jumps to the beginning of the loop if the optional condition is true. {{PageSyntax}} :: DO ::. ::. ::. :: LOOP [{UNTIL|WHILE} ''condition''] * LOOP indicates the bottom or end of a DO...LOOP block of code. * Either the DO statement or LOOP statement can set a condition to end the loop. * When a loop uses a LOOP condition, the code inside of it will run at least ONCE. : *..."
  • 15:3115:31, 21 April 2022 diff hist +14,321 N Using OFFSETCreated page with "<center>'''_OFFSET Explanation By Michael Calkins'''</center> An '''_OFFSET''' means a pointer. Use it any time that you need to pass or receive a pointer. With the API, types that start with P or LP, and parameters that start with p or lp are generally pointers. As for when to use the _OFFSET data type, it is basically any time that you need to pass a pointer to a function as a parameter, or have a pointer returned from a function as a return value. The _OFFSET t..."
  • 15:2615:26, 21 April 2022 diff hist +18,366 N GIF ImagesCreated page with "<center>'''Animated GIF File Decoder'''</center> GIF files can be one frame or animated images made up of many frames that are displayed at a set frame rate. The following program allows you to view either kind of image or use them in a program. _LOADIMAGE can only return one frame of an animated image. <center>'''NOTE: Include the FILELIST$ (function) or create your own File INPUT routine!'''</center> {{CodeStart}} '##########################################..."
  • 15:2615:26, 21 April 2022 diff hist +17,925 N Icons and CursorsCreated page with "<center>'''Icons''' and '''Cursors''' are image files with ICO or CUR filename extensions.</center> {| align="right" | __TOC__ |} * Both can use 1 BPP(B & W), 4 BPP(16), 8 BPP(256) or 24/32 BPP(16 million) colors. * They are formatted similar to bitmaps, but each file can hold more than one image. * Images can be different sizes and use different color palettes. The image width and depth are usually the same and multiples of 16 up to 128. Use _UNSIGNED [[_BYTE]..."
  • 15:2515:25, 21 April 2022 diff hist +22,151 N BitmapsCreated page with "<center>'''Bitmaps''' are image files with the .BMP file name extension.</center> {| align="right" | __TOC__ |} * Bitmaps can use 1, 4, 8 or 24/32 bits per pixel(BPP) color palettes. * Unlike Qbasic, QB64 is capable of working with 24 bit per pixel color(16 million) bitmaps and can create 32 bit screens to use them with the _NEWIMAGE function. * Text SCREEN mode 0 cannot be screen saved in Qbasic or QB64. * The structure of the Bitmap header can be placed in a [..."
(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)