

- #Purebasic window outer size update#
- #Purebasic window outer size code#
- #Purebasic window outer size windows#
Added: new optional 'v' and 'w' parameter to MeshVertexTextureCoordinate() Added: new optional 'SpecularColor' parameter to MaterialShininess() Added: new optional 'Color' parameter to CreateMaterial() Added: new modes for SetMaterialAttribute(): #PB_Material_PointSprite, #PB_Material_DepthBias Added: predefined shaders: #PB_Material_ColorShader, #PB_Material_PerpixelShader, #PB_Material_BumpShader, #PB_Material_SkyShader, #PB_Material_WaterShader, #PB_Material_WaterShaderRTT, #PB_Material_OceanShader, #PB_Material_PointSpriteSphereShader Added: new structures: Vector3, Vector4 Added: new mode to CreateDataMesh(): #PB_Mesh_DiagonalShortestLength, #PB_Mesh_DiagonalClosestNormal, #PB_Mesh_DiagonalAlternate, #PB_Mesh_DiagonalRegular1, #PB_Mesh_DiagonalRegular2 Added: GetEntityMesh(), CreateCubicTexture(), CreateAnimatedMaterial() Added: optional position mode to ApplyEntityForce() Added: optional force vector to WorldGravity() Added: optional parameter to MeshFace() to create a quad Added: CreateShader(), CreateShaderMaterial(), MaterialShaderAutoParameter(), MaterialShaderParameter(), MaterialShaderTexture() Added: WebGadget() support for GTK3 on linux Added: auto DPI support for Menu and ToolBar library (Windows)
#Purebasic window outer size code#
Added: /OPTIMIZER, -z, -optimizer flag to the commandline, and a 'Use code optimizer' checkbox in IDE 'Compiler Options' to turn on C optimizations
#Purebasic window outer size windows#
Added: support for Windows 11, OS X 11 and 12 for OSVersion() Added: #PB_Compiler_Optimizer which is set to #True if the optimizer is enabled Added: #PB_Compiler_64Bit and #PB_Compiler_32Bit compiler constants Added: #PB_Compiler_Backend, #PB_Backend_C and #PB_Backend_Asm compiler constants Added: a new C backend compiler for all PureBasic versions
PrintN("")Īll being well the output should appear in a console window looking something like this:įile List of C:\Documents And Settings\user\.- Added: Raspberry support (32-bit and 64-bit) ! Wait for the return key to be displayed, so the results can be viewed before the screen closes. Msg = Space(4) + Create + " " + Access + " " + Modify + " " + Attrib + " " + Size Convert the attributes to a string, for now.Īttrib = RSet( StrU( Files()\Attributes), 6, " ") Convert the file size to a padded string the same as with the index value above, but allow space for the maximum size of a quad. Modify = FormatDate("%dd/%mm/%yyyy", Files()\DateModified) These lines convert the three date values to something more familiar.Ĭreate = FormatDate("%dd/%mm/%yyyy", Files()\DateCreated)Īccess = FormatDate("%dd/%mm/%yyyy", Files()\DateAccessed) Num = RSet( StrU( ListIndex( Files()) + 1), 3, " ") Here we use it to make sure all the index numbers are padded to 3 characters in length. RSet pads a string to a set length with the necessary number of a specified character at the front. StrU converts an unsigned number into a string. ListIndex() returns the current position in the list, counting from zero. Loop through the list to display the results. Msg = Space(4) + "Create" + Space(5) + "Access" + Space(5) + "Modify" + Space(5) + "Attrib Size" PrintN displays the string given in the console window and moves the print position to the start of the next line afterwards. Open a text mode screen to show the results. If there are some entries in the list, show the results in the debug window. Next, remove the output section of code completely, from the comment line: Now we define a new list of files using the structure previously specified NewList Files.FILEITEM()ĭefine.s Access, Attrib, Create, Folder, Modify, Msg, Num, Size


#Purebasic window outer size update#
So let's update our example to use it instead.įirst, we will need some extra working variables to make this work properly. PureBasic provides a text mode window, or console window, Give us much control over how our output looks. PureBasic IDE which means its only useful to programmers, secondly it doesn't really Firstly, this window is only available in the Now we're going to revisit this example to improve the data output section to resolve Topic Storing Data in Memory, we started to build a smallĪpplication to display the properties of files in a particular folder to the In the previous topic Input & Output you already sawĪn overview about the different possibilities to output text to the user, and in the UserGuide - Displaying text output (Console)
