Search found 535 matches

by bcohio2001
Aug 12, 2019 20:09
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

D.J.Peters wrote:Windows vs Linux don't use chr(13,10) use !"\n" instead.

I am aware of this. It was a "quick and dirty" example of my problem.
I am on windows so I naturally used Chr(13,10).
by bcohio2001
Aug 11, 2019 22:36
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

Thank you.
Fl_ALIGN_INSIDE is what I needed. Weird that you have to specify it to "stay inside" the widget.
by bcohio2001
Aug 11, 2019 15:08
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

Sorry to bother you again. Did a search through your "test" programs for Fl_BoxNew and came up with 39 files. Of the ones I looked at, none addressed the issue that I am having. I might be using the wrong widget for it. The equivalent of a "Static" area in Win32. Involving multi-...
by bcohio2001
Aug 08, 2019 20:04
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

D.J.Peters wrote:Question why not looking at the test files ?

I have been. But it also helps to know WHAT you are looking for!
by bcohio2001
Aug 08, 2019 19:59
Forum: Game Dev
Topic: The 50 years ago moon landing 4K contest!
Replies: 32
Views: 1618

Re: The 50 years ago moon landing 4K contest!

badidea wrote:... who would volunteer to sit in the top of this fuel filled thing?

A lot of brave men.
by bcohio2001
Aug 07, 2019 23:10
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

Another quick question. Is there any setting for Fl_Window() to eliminate the system menu. (Minimize/Maximize/Close) In my "Include Digger" while parsing out the .bi files, I have a window with only a progress bar showing. I do not want the user to minimize or close it. I think my only 2 c...
by bcohio2001
Aug 07, 2019 20:40
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

Thanks for the assistance.
This is my first time using FLTK, trying to adapt a large "window's only" program.

From what I read, Fl_Run() repeatably calls Fl_Wait(), so figured that would not need to call anything more.
by bcohio2001
Aug 06, 2019 22:53
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

I cannot find an example in this topic, or in any of your "test" programs. How to create and use multiple windows. This is how I started, but the "Config" dlg does not have it's button shown. The dialog itself shows, but not the enclosed button. (PS. No weird undefined code this ...
by bcohio2001
Aug 05, 2019 23:38
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

Thanks for looking into this for me. I am sorry, I forgot all about the defined variables in the If/Then checks. Was not expecting for you to run it, just look it over to see if I did something wrong. Ok. So "Win32" cannot be used as a variable. (Assuming will be fine now in 64 bit compile...
by bcohio2001
Aug 04, 2019 14:06
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

Run into a little snag in my large project. C:\FreeBASIC-1.06.0-win64\fbc -s console -exx -w pendantic "FbTemp.bas" FbTemp.c:1102:35: error: expected identifier or '(' before numeric constant struct $21FL_RADIO_ROUND_BUTTON* WIN32; ^ FbTemp.c:14:47: error: size of array '__$fb_structsizech...
by bcohio2001
Jul 26, 2019 0:44
Forum: Projects
Topic: Polynominals chart - plots library based on WinApi & FbEdit designer.
Replies: 9
Views: 692

Re: Polynominals chart - plots library based on WinApi & FbEdit designer.

I haven't looked at the code yet, but from the screenshots at sourceforge, looks pretty good.
by bcohio2001
Jul 23, 2019 19:42
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

So the answer to my question is … Events are handled as they come in. #Include "fltk-c.bi" Sub D(s As String) Dim As Integer x = FreeFile Open "Test Handles.txt" For Append As #x Print #x, s Close #x Sleep 700 'just to give time to write and not mix up any other calls End Sub fun...
by bcohio2001
Jul 22, 2019 1:35
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

THIS IS A HACKED TOGETHER CODE JUST TO GIVE EXAMPLE Sub DoSomething() var win = Fl_WindowExNew(640,480,"Do something....") 'create other "controls" Fl_WindowShow win End Sub function HandleCB cdecl (byval self as any ptr,byval event as FL_EVENT) as Long select case as const event...
by bcohio2001
Jul 20, 2019 0:44
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 350
Views: 39006

Re: FLTK-C-1.3.3 for FreeBASIC

I understand that I can use Fl_WindowExSetHandleCB to trap window events.
If I trap for the FL_EVENT_SHOW, is this run before or after the call to Fl_Run.

I would like to run a little init code that might create another window, other than the main.
by bcohio2001
Jul 13, 2019 21:07
Forum: Projects
Topic: Include Digger
Replies: 44
Views: 6111

Re: Include Digger

Modifying now with FLTK … Going to be a while until done. But am working on it.

Go to advanced search