Search found 1439 matches

by St_W
Jul 01, 2009 17:41
Forum: Projects
Topic: FbEdit
Replies: 961
Views: 146699

I think I've found a bug in FBedit 1.0.7.0 try the following Code: type test_udt a as Integer b as String declare function mySecondFunction(a as Integer, b as String) as Integer End Type 'function myFunction(a_ as Integer, b_ as Integer) as Integer ' return a_ + b_ 'End Function func...
by St_W
May 31, 2009 21:19
Forum: Windows
Topic: Windows GUI
Replies: 8
Views: 3111

Thank you for you quick answer. Some guys from the german freeBasic forum also told me that GUI-programming is very inconvenient with the current version of the freeBasic compiler. But on the other hand I see great applications like FBedit, which are written (mainly) in freeBasic. I can't believe th...
by St_W
May 31, 2009 19:40
Forum: Windows
Topic: Windows GUI
Replies: 8
Views: 3111

Windows GUI

Hi! I want to learn how to write FreeBasic programs that have an attractive user interface. I'm completely new to the Win32 API and Windows programming techniques. So I created a simple application using some of the basic controls provided by windows like buttons, list boxes, labels, progress bars a...
by St_W
May 25, 2009 8:33
Forum: Windows
Topic: Convert FBedit Form-Designer Units into Pixels
Replies: 9
Views: 3283

Thank you very much! The program rc2code is great, but doesn't create an example how the controls are resized. But the function "MapDialogRect" is really great - i didn't know that such a function existed. The conversion from DLU into Pixels works without problems (up to now :-) ). I've read in the ...
by St_W
May 24, 2009 10:26
Forum: Windows
Topic: Convert FBedit Form-Designer Units into Pixels
Replies: 9
Views: 3283

I'm a Microsoft-Windows-Programming-beginner. I'd like to resize the Controls (Buttons, Textboxes, Listboxes, Labels, etc.) when the outer Window (maybe Dialog? I don't know the difference yet.) gets resized. #Include Once "windows.bi" #include once "win/commctrl.bi" #include onc...
by St_W
May 23, 2009 18:34
Forum: Windows
Topic: Convert FBedit Form-Designer Units into Pixels
Replies: 9
Views: 3283

Convert FBedit Form-Designer Units into Pixels

Hi, I'd like to calculate the position of a control when a Windows gets resized, because the Controls within this windows should change their size too. I use the Win32-API Function "MoveWindow" which asks for the coordinates of the controls in Pixels. Case WM_SIZE GetClientRect(hWnd,@rect) M...
by St_W
May 22, 2009 11:41
Forum: Community Discussion
Topic: Bug using Unix LineFeed
Replies: 1
Views: 845

Bug using Unix LineFeed

Hi, I don't know if it's a real bug, so i'd like to get some opinions from you before I submit it to the bugtracker at sourceforge. Please try and think over the following code: 'Prepare Bug-Situation if dir("File.txt")<>"" then kill "File.txt" open "File.t...
by St_W
Feb 19, 2009 18:03
Forum: Community Discussion
Topic: Bug in InStrRev Function ??
Replies: 9
Views: 1716

As mentioned above I've written an InStrRev-Function in FreeBasic+Inline Assembler that should work correctly, can handle larger strings and is multiple times faster than the origin. If somebody needs such a function - here's the source: function InStrRev2(byref searchstr as string, byref search...
by St_W
Feb 19, 2009 9:47
Forum: Community Discussion
Topic: Bug in InStrRev Function ??
Replies: 9
Views: 1716

I'd like to read some data from a file and search for a pattern. The file(s) contain NULL-Characters. I store them also in a big string, which contains the whole content of the file. But then there are also these NULL-Chars in the string and some of the string functions wouldn't work correctly. What...
by St_W
Feb 19, 2009 0:49
Forum: Community Discussion
Topic: Bug in InStrRev Function ??
Replies: 9
Views: 1716

The source-code above is only an example. Usually I don't append a chr(0) to strings, of course. I've encountered the problem while reading Data from various files which contain binary data. It's also possible (but uncommon) that the files end with a chr(0) as last character. I think a Null-Characte...
by St_W
Feb 18, 2009 23:21
Forum: Community Discussion
Topic: Bug in InStrRev Function ??
Replies: 9
Views: 1716

Bug in InStrRev Function ??

The following Code shows the strange behavior of the InStrRev Function: DIM StrData AS STRING DIM SearchPat AS STRING DECLARE FUNCTION instrrev2(BYREF searchstr AS STRING, BYREF searchpat AS STRING) AS INTEGER SearchPat = "TEST" StrData = SearchPat+SearchPat+SearchPat+CHR(0)...
by St_W
Feb 18, 2009 20:21
Forum: Libraries
Topic: [wxWidgets] wxWidgets + linux = problem ?
Replies: 0
Views: 1282

[wxWidgets] wxWidgets + linux = problem ?

When I try to run the following code, the conversion from a wxString into a ZSTRING PTR fails. The first 8 bytes contain weird characters, the remaining string is normal. When reading the characters byte for byte the string is read correctly. Is this a bug of the FBC, the wx-C wrapper or wxWidgets? ...
by St_W
Feb 12, 2009 8:11
Forum: Libraries
Topic: [WX-C] Compiling and using wx-c.dll
Replies: 2
Views: 1578

I've already tried this version of the DLL and it works, but I also want to compile it myself if it's possible and do some changes to the code (for example I didn't find any function to disable a checkbox with the c-wrapper).

I've read, that the version 0.7.1 does work ... I'll try it ...
by St_W
Feb 11, 2009 14:50
Forum: Libraries
Topic: [WX-C] Compiling and using wx-c.dll
Replies: 2
Views: 1578

[WX-C] Compiling and using wx-c.dll

Hello, I want to use the GUI Lib wxWidgets in my little program, but I didn't manage to compile and build the "WX-C.DLL", the *.DEF, *.A, .... files. I've already tried the binary release of wx-c from http://wxnet.sourceforge.net/, but my compiled program doesn't work with this version of the DLL-fi...

Go to advanced search