Search found 348 matches

by Lothar Schirm
Feb 28, 2021 14:00
Forum: Beginners
Topic: Convert vbscript to FB
Replies: 10
Views: 653

Re: Convert vbscript to FB

Thank you all!
by Lothar Schirm
Feb 27, 2021 18:41
Forum: Beginners
Topic: Convert vbscript to FB
Replies: 10
Views: 653

Re: Convert vbscript to FB

InputBox And MsgBox (MessageBox) Example: #define UNICODE #include once "windows.bi" #include once "/win/commctrl.bi" Dim Shared As HWND InputBoxWindow, EditBox, Button Dim Shared As WString * 255 TextMessage = "Type text here" Function WndProc(hWnd As HWND, msg As UIN...
by Lothar Schirm
Feb 21, 2021 10:14
Forum: Tips and Tricks
Topic: Easy Windows API Tutorial
Replies: 44
Views: 22508

Re: Easy Windows API Tutorial

Anyway, for Windows GUI programming it should be the full version, not the dialogs. It's not that difficult to add a DefWindowProc, right? Thank you for your encouragement! I took the code from "Hallo.bas" from the FreeBASIC folder "examples\gui\win32" and integrated menu and co...
by Lothar Schirm
Feb 18, 2021 16:31
Forum: Tips and Tricks
Topic: Easy Windows API Tutorial
Replies: 44
Views: 22508

Re: Easy Windows API Tutorial

Josep Roca, thank you very much for your clarification. jj2007, I appreciate your work very much, also the contributions of Xusinboy Bekchanov and you in https://www.freebasic.net/forum/viewtopic.php?f=6&t=28616 . I was really surprised to see the short and compact code in these posts, though I ...
by Lothar Schirm
Feb 17, 2021 18:59
Forum: Tips and Tricks
Topic: Easy Windows API Tutorial
Replies: 44
Views: 22508

Re: Easy Windows API Tutorial

This is not really necessary - fonts are not an OS-wide shared resource: DeleteObject(Font) End @Lothar: do you realise you woke up a really old thread? There would be a lot to comment on the OP's code, e.g. the use of "161" instead of WM_NCLBUTTONDOWN and "273" instead of WM_CO...
by Lothar Schirm
Feb 16, 2021 16:21
Forum: Tips and Tricks
Topic: Easy Windows API Tutorial
Replies: 44
Views: 22508

Re: Easy Windows API Tutorial

Here is a simple code: a window with a menu, a static text, a single line editbox, a multiline editbox, a listbox and buttons which might be used as a template for simple applications (of course also keeping in mind the other examples of this topic). First, however, some remarks regarding the menu e...
by Lothar Schirm
Feb 13, 2021 16:15
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 75
Views: 10694

Re: IUP_FB_EDITOR (simple development environment)

Vanya, thank you very much for the update!
by Lothar Schirm
Jan 28, 2021 14:55
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 75
Views: 10694

Re: IUP_FB_EDITOR (simple development environment)

Hallo Vanya, In "Options - Customizing the Editor - General" I disabled "Autocomplete", but in "Another" I activated all Parser functions. Now it works as I proposed, except that there is no automatic intention after beginning a new code block, but that is no problem fo...
by Lothar Schirm
Jan 27, 2021 14:17
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 75
Views: 10694

Re: IUP_FB_EDITOR (simple development environment)

Hi Vanya, if you will work again on your editor, I would propose a little change: In the actual version, when I write e.g. "For i = 1 To 10", the cursor does not jump to the next line, but one line further, so the code looks like this: For i = 1 To 10 Print i Next The same behaviour also f...
by Lothar Schirm
Jan 24, 2021 17:34
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 75
Views: 10694

Re: IUP_FB_EDITOR (simple development environment)

Thank you, Vanya! I could not reproduce that the Option window did not close. And I integrated cmd.exe into the Tools menu so that I can start compiled code from the command window in order to detect runtime error messages. I think your editor works fine now for me.
by Lothar Schirm
Jan 24, 2021 15:43
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 75
Views: 10694

Re: IUP_FB_EDITOR (simple development environment)

Hi Vanya, great editor! I like it, but I have some questions: 1. When I use autocompletion for keywords, I get a combobox also with keywords not defined in FreeBASIC, e.g. for Print ---> PrintImage, Printtext. 2. Is there a possibility to keep the console window open after running the compiled code ...
by Lothar Schirm
Dec 25, 2020 10:19
Forum: Projects
Topic: The ultimate FBGFX thread
Replies: 18
Views: 1532

Re: The ultimate FBGFX thread

Very old, but still funny? :p #include "fbgfx.bi" screenres 256,480,32,,FB.GFX_SHAPED_WINDOW dim as integer x, y dim as ubyte ptr buf = imagecreate(256,256) dim as ubyte ptr buf2 = imagecreate(1,256) line buf,(0,0)-(255,255),rgba(0,0,255,255),bf circle buf,(128,128),64,&hffffff00,,,,f...
by Lothar Schirm
Dec 06, 2020 14:23
Forum: Projects
Topic: The ultimate FBGFX thread
Replies: 18
Views: 1532

Re: The ultimate FBGFX thread

This one is a little bit simpler: interference of two circular waves. Your first demo (Ueberlagerung von Kreiswellen) is very heavy on the CPU. Even with a 'sleep 1' added, one core near 100% load. I measure around 25% on my machine (7 years old, Windows 8.1). I wanted to keep the code as simple as...
by Lothar Schirm
Dec 04, 2020 14:56
Forum: Projects
Topic: The ultimate FBGFX thread
Replies: 18
Views: 1532

Re: The ultimate FBGFX thread

Contour plot of a 3D function in polar coordinates: DIM AS SINGLE r, phi, dx, dy, x, y, f DIM AS INTEGER n CONST pi = 4 * ATN(1) ScreenRes 640, 480 WindowTitle "Function exp(-0.05 * r) * COS(r) * COS(n * phi)" Width 80, 30 WINDOW(-10, -7) - (10, 7) dx = 20 / 640 dy = 14 / 480 DO LOCATE 1, ...

Go to advanced search