Search found 56 matches

by Linuxbob
Mar 07, 2020 23:53
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 85344

Re: FLTK-C-1.3.3 for FreeBASIC

Fl_WidgetCopyLabel worked, thanks!
by Linuxbob
Mar 07, 2020 15:51
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 85344

Re: FLTK-C-1.3.3 for FreeBASIC

The data to which zs points is not valid any more? Do you have complete code to test with? Try with: dim shared as string sz The data is still valid...the statement "print zs,*zs" just before WidgetSetLabel gives me both the pointer's address contents and the correct string data. The prog...
by Linuxbob
Mar 07, 2020 14:51
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 85344

Re: FLTK-C-1.3.3 for FreeBASIC

Follow up question on setting a box value. dim shared as Fl_Box ptr bxanswer dim as string sz dim as const zstring ptr zs ... bxAnswer = Fl_BoxNew(360,240,170,30," ") ... '-- display the results Fl_WidgetRedraw(bxxPlotAnswer) sx = str(Datapoint.xval): sy = str(Datapoint.yval) if SolveR the...
by Linuxbob
Jan 01, 2020 17:31
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 85344

Re: FLTK-C-1.3.3 for FreeBASIC

D.J.Peters wrote:No it's const zstring ptr

Joshy


That's what I was missing, thanks.
by Linuxbob
Jan 01, 2020 15:06
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 85344

Re: FLTK-C-1.3.3 for FreeBASIC

I need a little advice. I am working on a small program to learn how to use FLTK. Part of a callback function retrieves the information in Fl_Input controls. The return type for the function Fl_Input_GetValue() is a Zstring pointer. The Fl_Input controls are initialized properly so the pointers to t...
by Linuxbob
Oct 31, 2019 14:19
Forum: Community Discussion
Topic: [offtopic] retro computing VASM
Replies: 10
Views: 1003

Re: [offtopic] retro computing VASM

I am also a Z-80 hobbyist, from my Radio Shack days. Still have a Model 4P, along with a couple Timex/Sinclair computers (also Z-80 machines.)
by Linuxbob
Apr 29, 2019 19:13
Forum: Community Discussion
Topic: Are you happy with your office's lightings?
Replies: 20
Views: 2616

Re: Are you happy with your office's lightings?

Ok, thanks for making it clearer (I was thinking of something else but I'll check for it later). I just can't believe right now that I ignored lightings for so long. And now it starts becoming my new passionata :D Perhaps you are thinking about light sources that provide more of a daylight 'quality...
by Linuxbob
Apr 29, 2019 19:08
Forum: Community Discussion
Topic: Are you happy with your office's lightings?
Replies: 20
Views: 2616

Re: Are you happy with your office's lightings?

Really encouraging that you in US are making it mandatory. This means that this will probably follow here in the old Europe! Actually, most of the US tends to run behind Europe on energy efficiency. The US energy codes are based on the IECC (International Energy Conservation Code.) The IECC is also...
by Linuxbob
Apr 29, 2019 18:21
Forum: Community Discussion
Topic: Are you happy with your office's lightings?
Replies: 20
Views: 2616

Re: Are you happy with your office's lightings?

I've been doing lighting design professionally for over 30 years. During that time, the rules of thumb for lighting in a workspace (specifically workstation) environment has changed quite a bit. Hi Linuxbob, thanks for your feedback. Did you never install some of those ligthing that are supposed to...
by Linuxbob
Apr 29, 2019 18:01
Forum: Community Discussion
Topic: Are you happy with your office's lightings?
Replies: 20
Views: 2616

Re: Are you happy with your office's lightings?

Linuxbob sounds like a person who would not tolerate windows in any shape or form. Who works in the terminal gloom with a bare flickering light bulb hanging by a yellowish cable, and a moth circling around. Actually, I've had to work in a lot of 'mushroom farm' places, and I detest them. The more w...
by Linuxbob
Apr 25, 2019 19:12
Forum: Community Discussion
Topic: Are you happy with your office's lightings?
Replies: 20
Views: 2616

Re: Are you happy with your office's lightings?

I've been doing lighting design professionally for over 30 years. During that time, the rules of thumb for lighting in a workspace (specifically workstation) environment has changed quite a bit. In the 80s and 90s, the emphasis was on moderate light levels at the desk surface but serious control of ...
by Linuxbob
Jan 19, 2019 2:09
Forum: General
Topic: Select Case operating like the C 'switch'
Replies: 15
Views: 1187

Re: Select Case operating like the C 'switch'

jj2007 wrote:
caseih wrote: and spiced with some German, apologies ;-)


Ist mir egal, Englisch oder Deutsch.
by Linuxbob
Jan 15, 2019 15:32
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 4882

Re: The Birth of BASIC.

That's an excellent example. This is something I wrote in the mid 80's for a TRS-80 Model 4 using one of the BASIC compilers. Not quite as structured as yours, but not spaghetti either. 'DOLLAR POKER REPEATABILITY CALCULATOR 'FOR PRO-ENHCOMP ON TRS-80 MODEL 4 'PURPOSE: THIS PROGRAM WILL RUN A SERIES...
by Linuxbob
Jan 15, 2019 14:53
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 4882

Re: The Birth of BASIC.

It is a mystery to me how that "Basic is not a proper programming language" urban legend survived all these years. In my experience, a lot of it comes from programmer snobbery: "there is only one way to do programming, and BASIC isn't it because it's a toy language." Spaghetti c...
by Linuxbob
Jan 15, 2019 13:15
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 4882

Re: The Birth of BASIC.

I would rather think it was lack of structured programming. Basic was later heavily modified for structured programming (e.g. sub's with parameters like QB got instead of just gosub <linenr>), and removed the need for goto/gosub in most common scenario. [/quote] IMHO, the worst impediments to the o...

Go to advanced search