FLTK C for FreeBASIC Jan 09, 2017

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Lost Zergling
Posts: 154
Joined: Dec 02, 2011 22:51
Location: France

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby Lost Zergling » Oct 11, 2018 11:33

Hello Joshy,
"FreeBASIC FLTK-C (C++ wrapper) is free for any usage only the C++ wrapper source code is copyright by me"
Yes true, but from the moment you inform us of the claim of a copyright on your code, which is quite legitimate, it must be understood that the persons potentially interested in the use of your work need visibility on the rights of use. I was confronted with this type of problem with my list engine: how to preserve your own copyright while sharing it: which choice? My personal opinion is that it should be clear on the conditions, even and especially if the right of use is not granted. If a restricted right of use is granted, it may take the form, for example, of a copyleft (a way of authorizing use while symbolically retaining intellectual property) or provide as I have done, a more restrictive license trying to be as transparent as possible on until one is ready to go : the option can not be hidden or variable geometry, I have to choose and say especially when a new features leads to new licence terms. If there is no information on the presence of a copyright and that there is indeed a copyright (worst case), then someone could use your work in good faith without having previously realized the seriousness of the consequences on both sides, since copyright is opposed to good faith. A simple copyright without a license specification concretely results in the blocking of usage rights, as if you were building a reinforced concrete wall around FB to isolate it from other open source projects. I am not sure that this is the goal you are looking for. If this is not the case, each time you claim your copyright, it is important to specify the rights of use (none, copyleft, restricted rights or conditions). I know it's hard because it means making up your mind, but you have to know what you want. If there is no right of use, then no right of use, no problem. Personally I think that it is preferable that the transparency must be explicit for the reason that this site is not only dedicated to professionals.
Lost Zergling
Posts: 154
Joined: Dec 02, 2011 22:51
Location: France

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby Lost Zergling » Oct 11, 2018 14:00

I also take the opportunity to make some clarifications in connection with the messages of marcov. My legal knowledge is quite lacunary and old. First of all on copyright: it is important to distinguish the copyright itself from the rights that are attached to it. It is possible to voluntarily give up all or part of the rights attached to a copyright. It is clear that any waiver must be irrevocable (ie this version https://freebasic.net/forum/viewtopic.p ... ne#p219506 wich is MIT licence terms). If you are a prisoner of your copyright so much that you can not give up attached rights, it is because you have no copyright!
On the item you mention : " So if you assert your copyright, but accompany it by a note that it is in the public domain, while not officially legalese, a party could argue that you meant it free to use." : It is clear, seem to me, that the license is NOT CeCCIL-C. I understand that you are telling me that the public domain is a bit all-or-nothing: you have to put all the rights attached to copyright or nothing. But it's not up to the license to say what is the perimeter of the public domain but to the judge. The license provides a normative framework but nothing prevents to have a part of the rights attached which would fall in the public domain and benefiting for this reason from a particular protection (in the case of species a set of instructions), the author reserving the right to claim its right to the excluded part in the event (near to 0, perhaps) that it is valid but specified in a different scope. In French law, a third party could not seem to me, in good faith, to claim that the right of use is free based on its own (oppressive) interpretation of what must be the public domain while same time missunderstanding the clauses specified by author.
"The chance that it really matters is near zero" : yes true but on the contrary, the protection granted to the dedicated set of instructions might be more effective (see my post here https://freebasic.net/forum/viewtopic.p ... 5f#p253209)
Ps addendum : "I doubt you could raise the funds to mount an effective defence" : In FreeBasic, the keyword lib is (now) full free for use (when you post it was almost). I hope so. Other usage is freeware. Why should I need a defense ? I make no judgement on the real valor of the licence I think I'm in my right to grant in a specified scope of use. I may be wrong, I hope not. Protecting the scope of use is different than making money.
From this point of view, I join mostly D.J.Peters opinion (I suppose) : the more you give, the more your copyright might be attacked. Giving (granting) a licence even though on a code and a concept that is yours might be hazardous.
Lost Zergling
Posts: 154
Joined: Dec 02, 2011 22:51
Location: France

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby Lost Zergling » Oct 16, 2018 12:55

Joshy,
Please forgive me if I could be rude. Choice can only be yours and never mine, please take it as a mark of respect. In any case and as you must know, I would never use your work without an explicit right of use (except for TinyDialog for which you have granted me an implicit right and till you do not cancel it). I will never allow myself to claim in your place for FreeBasic any of your contributions.
D.J.Peters
Posts: 7507
Joined: May 28, 2005 3:28

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby D.J.Peters » Nov 14, 2018 7:24

I'm working in my rare spare time on a new FLTK add on.
May be my next Christmas gift for you.
It becomes easier than ever before :-)

Joshy
Image
Old C style:

Code: Select all

#include once "fltk-c.bi"
sub ButtonClick cdecl (byval button as FL_WIDGET ptr, byval arg as any ptr)
  Fl_WidgetCopyLabel(button,"do it again") : beep
end sub

var Win = Fl_WindowNew(320,200, "What a shiny Window :-)")
var Btn = Fl_ButtonNew(10,10,120,32, "click me")
Fl_WidgetSetCallback(Btn,@ButtonClick)
Fl_WindowShow(Win)
Fl_Run()
New Add on:

Code: Select all

#include once "fltk-oop.bi"
sub ButtonClick(me as Button)
  me.Label("do it again") : beep
end sub

var Win = Window("What a shiny Window :-)")
Win.AddButton(10,10,120,32,"click me",@ButtonClick)
Win.Show()
srvaldez
Posts: 1767
Joined: Sep 25, 2005 21:54

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby srvaldez » Nov 14, 2018 14:46

hello D.J.Peters :-)
I am looking forward to your gift :-)
D.J.Peters
Posts: 7507
Joined: May 28, 2005 3:28

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby D.J.Peters » Nov 15, 2018 20:13

Reminds me on good old Visual Basic 4/5/6 days :-=)

type Control extends object
type Button extends Control
...
type Container extends Control
type Listbox extends Container
type Toolbar extends Container
...
type Form extends Container

Joshy

How easy is that:

Code: Select all

#include once "fltk-addon.bi"
dim as Form frmMain
frmMain.Show()

Why not:

Code: Select all

#include once "fltk-addon.bi"
var frmMain = Form(320,240,"VB 6 or what ?")
frmMain.Show()

click me:

Code: Select all

#include once "fltk-addon.bi"
sub Button1_Click() : beep : end sub
var frmMain = Form("What a fun !")
var Button1 = Button(10,10,64,32,"ok",@Button1_Click)
frmMain.Add(Button1)
frmMain.Show()

do it again:

Code: Select all

#include once "fltk-addon.bi"
sub Button1_Click() : beep : end sub
var frmMain = Form("What a fun !")
frmMain.Add(Button(10,10,64,32,"ok",@Button1_Click))
frmMain.Show()

Like a VB6 boss:

Code: Select all

#include once "fltk-addon.bi"
sub Button1_Click() : beep : end sub
sub Form_Load(me as Form)
  me.CreateButton(10,10,64,32,"ok",@Button1_Click)
  me.Show()
end sub
var frmMain = Form(@Form_Load)
srvaldez
Posts: 1767
Joined: Sep 25, 2005 21:54

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby srvaldez » Nov 16, 2018 18:26

hi D.J.Peters
I like it :-)
Lost Zergling
Posts: 154
Joined: Dec 02, 2011 22:51
Location: France

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby Lost Zergling » Nov 19, 2018 12:04

Hello Joshy
"I'm working in my rare spare time on a new FLTK add on. May be my next Christmas gift for you."
I Like it too. Thank you. Friendly greetings.
nimdays
Posts: 212
Joined: May 29, 2014 22:01
Location: ID

Re: FLTK C for FreeBASIC Jan 09, 2017

Postby nimdays » Nov 19, 2018 23:49

Nice to see visual FLTK

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 3 guests