Search found 386 matches

by ike
Feb 23, 2015 2:18
Forum: Projects
Topic: wxFBE, editor for both Windows and Linux
Replies: 261
Views: 59650

Re: wxFBE, editor for both Windows and Linux

It works just fine here, although the button has no click-animation (not sure why, maybe you can figure it out).



RETURN Fl_ButtonExHandleBase(self, event)
and you will get animation

instead

RETURN 1

It is always like that with Ex widgets
by ike
Feb 04, 2015 16:28
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

LOTHAR, here is how not to use SHARED. If you use NAMESPACES then all variable are SHARED and STATIC main.bas #include once "fltk-c.bi" #include "form1.bi" Fl_WindowShow F.win Fl_Run form1.bi namespace F DIM AS Fl_Window PTR win DIM AS Fl_Button PTR btn1 DIM AS Fl_Input PTR in1, ...
by ike
Jan 17, 2015 3:35
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

@Boris

DrawSetLineStyle FL_DOT OR FL_CAP_FLAT , 1
DrawRectColor 11, 11, 111,111, FL_MAGENTA


then if I add DrawSetColor FL_MAGENTA at the beginning IT WORKS FINE which is strange
by ike
Jan 16, 2015 22:56
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

So you are saying that linestyle dont apply if you draw a rectangle But when I change color before that then it change line style for rectangle I am sure there is something wrong here - but we dont understand each other try just this: DrawSetColor FL_MAGENTA DrawSetLineStyle FL_DOT OR FL_CAP_FLAT , ...
by ike
Jan 16, 2015 6:14
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

#include once "fltk-c.bi" FUNCTION DrawCB1 CDECL(box AS ANY PTR) AS INTEGER DIM AS INTEGER x1 = Fl_WidgetGetX(box) DIM AS INTEGER y1 = Fl_WidgetGetY(box) DIM AS INTEGER w = Fl_WidgetGetW(box) DIM AS INTEGER h = Fl_WidgetGetH(box) drawpushclip(x1,y1,w,h) DrawSetColor FL_WHITE DrawRectFill ...
by ike
Jan 15, 2015 9:01
Forum: Community Discussion
Topic: Progamming in UK Schools
Replies: 97
Views: 10145

Re: Progamming in UK Schools

plenitudinous
by ike
Jan 15, 2015 5:04
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

This doesnot change STYLE:
DrawSetLineStyle FL_DOT OR FL_CAP_FLAT , 1


unless I do this way:
DrawSetColor FL_MAGENTA
DrawSetLineStyle FL_DOT OR FL_CAP_FLAT , 1

Even if I don't want to change color I have to add that statement to trigger line change stile
by ike
Jan 08, 2015 8:46
Forum: Beginners
Topic: A simple program: Sum of two numbers
Replies: 30
Views: 4028

Re: A simple program: Sum of two numbers

#include once "fltk-c.bi" enum Me, Input1, Input2, Input3, Btn7, LastItem = Btn7 end enum dim shared as any ptr ptr gList(LastItem) sub ButtonCB cdecl (byval self as Fl_Widget ptr, byval index as long) dim as double v1=val(*Fl_Input_GetValue (gList(Input1))), v2 =val(*Fl_Input_GetValue (g...
by ike
Jan 08, 2015 4:31
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

more than 12,000 hand written lines of code


DJ thank you for great work you have done. FLTK wrapper is very good tools.

Maybe, a little bit fine tuning, like your previous post and that is it: best gui 4 FB
by ike
Jan 08, 2015 2:39
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

Rod,

Can you make a simple sample: encapsulation using namespaces
Thx

Ike
by ike
Jan 04, 2015 7:46
Forum: Projects
Topic: Basic Forge Project
Replies: 20
Views: 4585

Re: Basic Forge Project

FLTK is the way to go!!
by ike
Jan 03, 2015 1:05
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

Fl_WindowSetLabel works if label1 is SHARED

Fl_WidgetCopyLabel works!!!!
by ike
Jan 03, 2015 0:35
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

This is better. I declared label1 as SHARED and it worked?
But this is better solutions. Why is that?

because CONST

title as const zstring ptr=0
by ike
Jan 02, 2015 23:31
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98707

Re: FLTK C Wrapper (Fast Light Toolkit v 1.3.3)

What I am doing wrong here:

Code: Select all

dim label1 as string
label1 = exepath()
dim as zstring ptr nn  = strptr(label1)
? *nn
mainwin = Fl_Double_WindowNew2((ww-1000)/2, (hh-800)/2, 1000, 800, nn)


I want to create main window with label = exepath
by ike
Jan 01, 2015 0:05
Forum: Community Discussion
Topic: 7 hours and 2014 is gone
Replies: 3
Views: 609

7 hours and 2014 is gone

But what to drink. I did not decide yet. 1. Fine scotch whiskey -> Johnnie Walker - Black Label 2. Carlsberg 3. Fine croatian grappa from iseland Hvar (father of my friend send one for me, it is home made) I know what DJ will vote for, but I looks it will be GRAPPA this year Anyway best wishes to al...

Go to advanced search