Search found 293 matches

by demosthenesk
Nov 12, 2024 5:50
Forum: Community Discussion
Topic: FreeBASIC GUI
Replies: 15
Views: 9936

Re: FreeBASIC GUI

Berkeley wrote: Nov 11, 2024 17:29
hey, have you tried window9 lib gui https://www.freebasic.net/forum/viewtopic.php?t=17058
it is for windows/linux
by demosthenesk
Nov 01, 2024 11:27
Forum: Community Discussion
Topic: FreeBASIC 'destroys' Rust
Replies: 12
Views: 7402

Re: FreeBASIC 'destroys' Rust

SlugX wrote: Nov 01, 2024 3:45 What's wrong with sourceforge. Why does he think it's weird to put binary files on sourceforge?
fb is on github with no releases and with binaries at sf... this is it !
by demosthenesk
Oct 30, 2024 5:09
Forum: Libraries Questions
Topic: FreeImage linking problems
Replies: 10
Views: 6102

Re: FreeImage linking problems

1) Try to set -l freeimage with lowercase 2) Check that dll are in win32/win64 lib folder according to your architecture 32/64 3) try to set the include and lib path, -i inc_path, -p lib_path example from gui lib w9 c:/users/demos/bin/freebasic-1.10.1-winlibs-gcc-9.3.0/fbc64.exe -c -m "main&quo...
by demosthenesk
Oct 29, 2024 19:36
Forum: Libraries Questions
Topic: FreeImage linking problems
Replies: 10
Views: 6102

Re: FreeImage linking problems

1) checkin .bi file if there are these functions
2) set a -l freeimage option to compiler setting
by demosthenesk
Oct 28, 2024 18:35
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 8885

Re: Happy birthday dodicat

Thank you everybody. demosthenesk, your tune sounds good here. Lothar Schirm, your moonlight shadow plays OK here on Win 11. The crt.bi has _beep, which plays demosthenesk's tune just fine, using the arrays in the same way. Strange! With _beep from crt.bi I have the same problem. Maybe a hardware p...
by demosthenesk
Oct 28, 2024 12:01
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 8885

Re: Happy birthday dodicat

Thank you everybody. demosthenesk, your tune sounds good here. Lothar Schirm, your moonlight shadow plays OK here on Win 11. The crt.bi has _beep, which plays demosthenesk's tune just fine, using the arrays in the same way. i like that you are happy with my freebasic gift for your birthday.... be w...
by demosthenesk
Oct 28, 2024 11:58
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 8885

Re: Happy birthday dodicat

I experienced problems using sequences of beep_ in Windows 11 without a short pause between each sound. Is this the reason for your changed code? I created a subset of the good old PLAY command (QBASIC) for FreeBASIC using beep_ in order to reactivate some nice melodies programmed by my daughter in...
by demosthenesk
Oct 28, 2024 0:58
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 8885

Re: Happy birthday dodicat

A quick fix for the tempo

Code: Select all

For i As Integer = 0 To UBound(melody)
    Beep_ melody(i), rhythm(i)       ' Play note with frequency and duration
    Sleep(rhythm(i) - 200)           ' Pause with adjusted timing
Next i
by demosthenesk
Oct 26, 2024 20:12
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 8885

Re: Happy birthday dodicat

Happy Birthday from freebasic #Include "windows.bi" ' Define frequencies for each note (in Hz) Const C4 = 261 Const D4 = 293 Const E4 = 329 Const F4 = 349 Const G4 = 392 Const A4 = 440 Const B4 = 493 Const C5 = 523 ' Higher octave C ' Melody and rhythm for "Happy Birthday" Dim As...
by demosthenesk
Oct 26, 2024 20:01
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 8885

Re: Happy birthday dodicat

Hey let's create a freebasic bas file that beeps happy birthday song...

Is there a beep() function that creates 8-bit sound tone in some duration ?
by demosthenesk
Oct 26, 2024 11:46
Forum: Community Discussion
Topic: Happy birthday dodicat
Replies: 18
Views: 8885

Re: Happy birthday dodicat

Oh happy birthday !!!
how old are you becoming ?

My best wishes... good health, happy years !
by demosthenesk
Oct 23, 2024 23:03
Forum: General
Topic: Color text in control ... scintilla or something else !
Replies: 15
Views: 6380

Re: Color text in control ... scintilla or something else !

Below is main.bas for scintilla and window9 GUI lib #include "window9.bi" #include "scintilla.bi" #include "scilexer.bi" ' Declare handles for Scintilla control and Lexilla DLL Dim Shared As HWND hwndScintilla Dim Shared As Any Ptr hLexilla Dim Shared As Any Ptr hScinti...
by demosthenesk
Oct 23, 2024 21:14
Forum: General
Topic: Color text in control ... scintilla or something else !
Replies: 15
Views: 6380

Re: Color text in control ... scintilla or something else !

Well we found it.... keywords should be in LOWERCASE and must use ZSTRING pointer main.bas #include "windows.bi" #include "scintilla.bi" #include "scilexer.bi" ' Declare handles for Scintilla control and Lexilla DLL Dim Shared As HWND hwndScintilla Dim Shared As Any Ptr...
by demosthenesk
Oct 23, 2024 15:09
Forum: General
Topic: Color text in control ... scintilla or something else !
Replies: 15
Views: 6380

Re: Color text in control ... scintilla or something else !

one fix about COLORS RGB, in win32 API it is BGR, https://stackoverflow.com/questions/367449/what-exactly-is-bgr-color-space so the correct code is below main.bas #include "windows.bi" #include "scintilla.bi" #include "scilexer.bi" ' Declare handles for Scintilla contro...