Search found 8184 matches

by D.J.Peters
Nov 05, 2022 10:02
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197227

Re: FLTK-C-1.3.3 for FreeBASIC

I found this option 'FL_OPTION_DND_TEXT' :-) disable text drag and drop operation Fl_SetOption(FL_OPTION_DND_TEXT, 0) enable text drag and drop operation Fl_SetOption(FL_OPTION_DND_TEXT, 1) There are more ! Joshy ' Initiate a Drag And Drop operation. declare function Fl_Dnd() as long ' Gets or sets...
by D.J.Peters
Nov 05, 2022 8:26
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197227

Re: FLTK-C-1.3.3 for FreeBASIC

The fun part are FreeBASIC can extends classes self so as an expert it's posiible to write classes like the good old from VB 6 (Visual Basics) Don't worry it's an advanced OOP FreeBASIC example but hey we don't die stupid like Trump supporters :lol: take a look at "function HandleCB cdecl(byval...
by D.J.Peters
Nov 05, 2022 8:04
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197227

Re: FLTK-C-1.3.3 for FreeBASIC

But still, the question remains: is it possible to connect a callback to catch FL_DRAG , FL_RELEASE events, or is this not provided for with widgets? First of all I'm not sure you have only execute all "Ex" widget test's or do you read the 'Ex' widget code also ? And if you read about the...
by D.J.Peters
Nov 05, 2022 5:59
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197227

Re: FLTK-C-1.3.3 for FreeBASIC

Do you know the situation where you test or debug stuff and comment out temporary code and forgot to remove the changes at end ? I found the evil :-) I'm sure this is from a test or debug session ! Joshy s = Fl_Text_BufferLineStart(TextBuffer,s) e = Fl_Text_BufferLength(TextBuffer) 'e = Fl_Text_Buff...
by D.J.Peters
Nov 05, 2022 5:48
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197227

Re: FLTK-C-1.3.3 for FreeBASIC

I found this option 'FL_OPTION_DND_TEXT' :-) disable text drag and drop operation Fl_SetOption(FL_OPTION_DND_TEXT, 0) enable text drag and drop operation Fl_SetOption(FL_OPTION_DND_TEXT, 1) Joshy sub ModifyCb cdecl (byval p as long, _ byval nInserted as long, _ byval nDeleted as long, _ byval nResty...
by D.J.Peters
Nov 04, 2022 23:17
Forum: Beginners
Topic: Set optimize level using FBide and FBC 1.07.1
Replies: 13
Views: 1809

Re: Set optimize level using FBide and FBC 1.07.1

D.J.Peters wrote: Nov 04, 2022 7:48... show me your code ...
by D.J.Peters
Nov 04, 2022 8:27
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197227

Re: FLTK-C-1.3.3 for FreeBASIC

@VANYA this only a short test for "a litle bit syntax highlighting" not a working complete editor ! I never used mouse drag and drop inside this tiny example before. The error heppents in the sub Highlight() may be the drag and drop operation must be handled at first to be sure the pointer...
by D.J.Peters
Nov 04, 2022 7:48
Forum: Beginners
Topic: Set optimize level using FBide and FBC 1.07.1
Replies: 13
Views: 1809

Re: Set optimize level using FBide and FBC 1.07.1

first try -O 2 (may be you have something strange that are optimized in a bad way with -O 3)
or show me your code.

With my settings (I posted) I get maximal performes for example ray tracing an image 20 seconds with my settings 5 secods !!!

Joshy
by D.J.Peters
Nov 04, 2022 2:51
Forum: Beginners
Topic: Set optimize level using FBide and FBC 1.07.1
Replies: 13
Views: 1809

Re: Set optimize level using FBide and FBC 1.07.1

"excuse me wir haben 2022" It's a viral german TikTok meme :-)

time to upgrade your FreeBASIC compiler.

Joshy
by D.J.Peters
Nov 04, 2022 2:34
Forum: Beginners
Topic: Set optimize level using FBide and FBC 1.07.1
Replies: 13
Views: 1809

Re: Set optimize level using FBide and FBC 1.07.1

FBIDE change all program arguments in lower case so "-O 3" becomes "-o 3" and isn't what you need but you can use "#cmdline" to give the compiler/linker/assembler arguments directly in your *.bi or *.bas file! Joshy #cmdline "-O 3" print "bla bla bla"...
by D.J.Peters
Nov 04, 2022 2:24
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 179
Views: 54590

Re: Audio library for FreeBasic - Features

@hhr min() max() are macros defined in windows include files. file: "ntdef.bi" line: 76 #define min(a, b) iif((a) < (b), (a), (b)) #define max(a, b) iif((a) > (b), (a), (b)) and file: "windef.bi" line: 115 #define max(a, b) iif((a) > (b), (a), (b)) #define min(a, b) iif((a) < (b)...
by D.J.Peters
Nov 03, 2022 15:10
Forum: Windows
Topic: Browse for Folder - How?
Replies: 5
Views: 1226

Re: Browse for Folder - How?

#include "win\shlobj.bi" function BrowseForFolder(byval pszTitle As const zstring ptr = @"Choose A Folder") As String static as Zstring * MAX_PATH path Dim As BROWSEINFO bi bi.hwndOwner = HWND_DESKTOP bi.lpszTitle = pszTitle bi.ulFlags = BIF_USENEWUI var pidl = SHBrowseForFolder...
by D.J.Peters
Oct 31, 2022 22:16
Forum: Community Discussion
Topic: [offtopic] List of the most known display resolutions.
Replies: 5
Views: 1175

Re: [offtopic] List of the most known display resolutions.

If you manipulate the VGA registers or used the old HGC cards you got 720x480, 720x400, 640x400, 320x200.
By the way 320 x 200 is in real 640,400 (one pixel the half time in horizontal direction and the scanline counter are two times repeated)

But thank you for the response.

Joshy
by D.J.Peters
Oct 31, 2022 22:02
Forum: Documentation
Topic: New page '__THISCALL'
Replies: 10
Views: 5173

Re: New page '__THISCALL'

12 years to late :-) but better as never.
I remenber if I wrote the FreeBASIC Steinberg ASIO interface for 32-bit Windows the magic was putting the this pointer in ECX register instead pushing it on the stack.
viewtopic.php?p=148306#p148306

Joshy