Search found 386 matches

by ike
Dec 29, 2014 0:32
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

@Boris

Look at
Fl_Group line 3375 in fltk-c.bi

Searches the child array for the widget and returns the index
declare function Fl_GroupFind(byval grp as Fl_Group ptr,byval wgt as const Fl_Widget ptr) as integer
by ike
Dec 28, 2014 18:22
Forum: Community Discussion
Topic: Icons - I have 7500 icons in XPM format
Replies: 4
Views: 1377

Re: Icons - I have 7500 icons in XPM format

http://wikisend.com/download/891988/ALL.zip 26 MB zip file As per D.J. request: 1. Renamed all files to *.bi 2. Removed - character from all file names 3. Fixed line number 3 to None (but still keep old as an comment) 4. Also in line 2 @" 32 32 256 2", _ removed double blanc char
by ike
Dec 28, 2014 17:24
Forum: Community Discussion
Topic: Icons - I have 7500 icons in XPM format
Replies: 4
Views: 1377

Re: Icons - I have 7500 icons in XPM format

LINK: http://sourceforge.net/projects/openiconlibrary/ ============ im as zstring ptr accessories-calculator-3_result_xpm(...) => { _ must be dim as zstring ptr accessories_calculator_3_result_xpm(...) => { _ IT IS ORIGINAL NAME - I JUST ADD _result_ when converting ============== bbb vs bi You are ...
by ike
Dec 28, 2014 4:52
Forum: Community Discussion
Topic: Icons - I have 7500 icons in XPM format
Replies: 4
Views: 1377

Icons - I have 7500 icons in XPM format

I downloaded 'em on sourceforge in *.ico format, then I made a program to convert it to this: http://sourceforge.net/projects/openiconlibrary/ dim as zstring ptr accessories-calculator_result_xpm(...) => { _ @" 48 48 256 2", _ @"`` c #040204", _ @"`. c #1caefc", _ @&quo...
by ike
Dec 27, 2014 20:19
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

OK DJ I did not feel it is real project, because look at that mess with SHARED variables. I am strugling with a very basic question . How can I pass 4 widgets to callback function. To be more precise here is example. Press button2 How I can do this without having SHARED in1, in2, in3, bb1 ?? #includ...
by ike
Dec 26, 2014 18:05
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

FB editor in 400 lines: because it is not finished yet you have to create project.fbp manually (make sure there is no empty lines) first line is path for your FBC c:\fb100 test1.bas test1.bas test3.bas 1. create new folder and compile it there 2. create project.fbp in same folder and edit it (see sa...
by ike
Dec 24, 2014 3:25
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

FL_TEXTEDITOR03.bas example Interesting? It is slow even if I use binary search (maximum 10 iterations per search list is smaler then 2000) It is slow just when colorin first time ' some FLTK stuff function IsUserlib(byval s as string) as integer '? s 'Dim sArray(1 to 1796) As string => { _ ' whole ...
by ike
Dec 23, 2014 22:29
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

? lineN(buf, NUMBER_LINE) FUNCTION lineN(bf AS Fl_Text_Buffer PTR, line_number AS INTEGER) AS STRING DIM AS STRING ret, sss DIM AS INTEGER CL, LL, p1, p2 sss = *Fl_Text_BufferGetText(bf) LL = Fl_Text_BufferLength(bf) CL = Fl_Text_BufferCountLines(bf, 0, LL) IF line_number > CL THEN ret = "&quo...
by ike
Dec 23, 2014 21:33
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

What is the best way to read lines in text editor?

if I get whole text:
dim as string sss = *Fl_Text_BufferGetText(buf)

do I need to split text to lines OR THERE IS ALREADY a function to read line by number?

?? Fl_Text_BufferSkipLines ??
by ike
Dec 23, 2014 17:54
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

If I have no idea how to name a variable then it is a1 or a2, or b1 or b2, b3

But now it is in conflict with

enum Page_Format
A0 = 0, A1, A2,

I have renamed mine now, that is not problem, but I think you should use something like:

PAGE_FORMAT_A1 instead A1
by ike
Dec 23, 2014 16:51
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

Fl_File_BrowserSetFiletype (fbr, FL_SINGLE)

Variable not declared, FL_SINGLE in 'Fl_File_BrowserSetFiletype (fbr, FL_SINGLE)'
by ike
Dec 20, 2014 10:18
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

POSSIBLE BUG in your NEW version I had this code. It worked well, and then I got new DLL and Fl_TableCallbackRow ALWAYS GIVE ME 0 Then I restore old DLL and it works well AGIAN function TableHandleCB cdecl (self as any ptr, event as Fl_Event) as integer '? Fl_TableCallbackCol(self) '? event '? row1 ...
by ike
Dec 20, 2014 9:54
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

try row number 5 #include once "fltk-c.bi" ' Demonstrate simple spreadsheet editor that includes editing row/col headers as well as table cells ' from here: http://seriss.com/people/erco/fltk/#Fl_Table_Spreadsheet_Cell_Row_Col_Edit const as integer MAX_COLS = 10 const as integer MAX_ROWS =...
by ike
Dec 20, 2014 2:07
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

@TJF I have tried it. All I can say is: IT IS NOT FOR ME.
=========================================================
by ike
Dec 19, 2014 11:51
Forum: Libraries
Topic: FLTK 1.3.x C Wrapper (obsolete)
Replies: 753
Views: 98711

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

@SARG, I am experimenting (learning) with texteditor, buffer, display ... I want make a text editor and to be able to search all opened files at the same time. And also, what I would like to have: right click on any variable -> dropdown menu -> jump to definition What else I would need is bookmarks ...

Go to advanced search