Search found 332 matches

by Lothar Schirm
Jan 18, 2018 15:21
Forum: Community Discussion
Topic: Happy new year (I hope)
Replies: 10
Views: 1057

Re: Happy new year (I hope)

Hi D.J. Peters,

after you said good bye to FreeBASIC some weeks ago, I am happy to see you again in this forum. I wish you and all other forum members a happy new year and "happy coding"!

Lothar
by Lothar Schirm
Jan 07, 2018 15:51
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 53
Views: 9760

Re: Simple WinAPI GUI library

I was a little bit lazy during the last months regarding FreeBASIC due to my other hobby (playing classical guitar), but I think your contribution is very useful, so I placed a new update on FreeBASIC Portal. Thank you very much!
by Lothar Schirm
Feb 16, 2017 11:20
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 53
Views: 9760

Re: Simple WinAPI GUI library

This is my code: #Include "WinDialogs.bi" Dim As String fil, filename fil = "Basic Files (*.bas)" + Chr(0) + "*.bas" + Chr(0) _ + "Text Files (*.txt)" + Chr(0) + "*.txt" + Chr(0)_ + "Image Files (*.bmp)" + Chr(0) + "*.bmp" + Chr(0...
by Lothar Schirm
Feb 15, 2017 16:42
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 53
Views: 9760

Re: Simple WinAPI GUI library

Yes, indeed, I took the code of the the LoadSaveDialog from the FreeBASIC Portal (see URL in the comment of this function) as it is, so the matter with adding Chr(0, 0) seems not to be quite consistent. But I tested your filter and my filter in the comment with WinDialog.bi contained in the latest d...
by Lothar Schirm
Jan 08, 2017 15:18
Forum: Beginners
Topic: Windows GUI
Replies: 137
Views: 11243

Re: Windows GUI

Provoni, thank you for the presentation of your work! I am very pleased to see what you can do with my simple library.
I would be happy if somebody could help Kazuma, I never worked with icons and recource files.
by Lothar Schirm
Jan 03, 2017 17:09
Forum: General
Topic: GUI design
Replies: 47
Views: 3125

Re: GUI design

I made a command button and inspected CODEGEN_PROJECT1_MAIN.bas which is a lot of resulting FB source code!! When I inserted PRINT "HELLO WORLD" in the buttons mouse down code it printed to the Console Window so I have a bit of learning to do. I assume you can draw a string on the window ...
by Lothar Schirm
Jan 03, 2017 15:42
Forum: Tips and Tricks
Topic: Water Wave Simulation
Replies: 3
Views: 652

Re: Water Wave Simulation

A description in English of such waves can also be found in the Wikipedia https://en.wikipedia.org/wiki/Trochoidal_wave.
by Lothar Schirm
Jan 02, 2017 15:59
Forum: Tips and Tricks
Topic: Water Wave Simulation
Replies: 3
Views: 652

Water Wave Simulation

A water wave consists of particles moving on vertical circles. The phase angle for each particle increases along the direction of the wave's motion. I found this description in "Gerthsen: Physik" which is a very well known book about physisc used in german universities. I tried a small sim...
by Lothar Schirm
Jan 02, 2017 14:22
Forum: General
Topic: Simple Calendar (Show only one month)
Replies: 28
Views: 1879

Re: Simple Calendar (Show only one month)

Again, very impressive FreeBASIC GUI examples by dodicat and BasicCoder2! I like it.
by Lothar Schirm
Jan 01, 2017 10:19
Forum: General
Topic: Simple Calendar (Show only one month)
Replies: 28
Views: 1879

Re: Simple Calendar (Show only one month)

Wikipedia (Leap Year - Gregorian Calendar) says: Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100, but these centurial years are leap years if they are exactly divisible by 400. For example, the years 1700, 1800, and 1900 were not leap y...
by Lothar Schirm
Dec 31, 2016 15:33
Forum: General
Topic: Simple Calendar (Show only one month)
Replies: 28
Views: 1879

Re: Simple Calendar (Show only one month)

Ircvs, FreeBASIC offers a nice function for such applications: DateSerial . This could simplify your code very much. Example: #Include "vbcompat.bi" Dim As Integer d, m, y, a, col Cls Input "Month number 1...12 = ";m Input "Year number yyyy = ";y Cls Print "Mo Tu W...
by Lothar Schirm
Dec 13, 2016 15:46
Forum: Beginners
Topic: Is FreeBasic An IDE?
Replies: 2
Views: 1282

Re: Is FreeBasic An IDE?

Hi alejandro_62, welcome! FreeBasic is only a compiler. There are different IDEs. These are the most commonly used: 1. FBIDE: Simple editor for Windows with syntax highlighting etc., easy to use. Download: https://www.freebasic-portal.de/downloads/ides-fuer-freebasic/fbide-046-fuer-windows-patched-1...
by Lothar Schirm
Dec 07, 2016 15:00
Forum: Beginners
Topic: Getting PLAY to Work in FreeBasic
Replies: 9
Views: 1051

Re: Getting PLAY to Work in FreeBasic

Just for fun: Play keyboard with the mouse! '=============================================================================== ' Keyboard.bas ' Created Dec 07, 2016 '=============================================================================== #Include "windows.bi" Type TKey 'Type definiti...
by Lothar Schirm
Dec 03, 2016 16:29
Forum: Beginners
Topic: Getting PLAY to Work in FreeBasic
Replies: 9
Views: 1051

Re: Getting PLAY to Work in FreeBasic

I do not want to cause any problems for anybody who wants to use my downloads on FreeBASIC Portal. You can use all codes for whatever you want. The download "PLAY in FreeBASIC" can now be used without any restrictions, all my downlaods are now licensed under WTFPL http://www.wtfpl.net/ .

Go to advanced search