Search found 358 matches

by Lothar Schirm
Apr 05, 2021 14:01
Forum: Documentation
Topic: SCREEN_EXIT
Replies: 9
Views: 768

Re: SCREEN_EXIT

Thank you, fxm!
by Lothar Schirm
Apr 05, 2021 10:36
Forum: Documentation
Topic: SCREEN_EXIT
Replies: 9
Views: 768

SCREEN_EXIT

In the FreeBASIC manual I found in the index "Screen(Graphics)" the following note: Note on using Screen 0 Screen 0 closes any graphics window, but also clears the console window if it exists. Screen 0, , , SCREEN_EXIT (with SCREEN_EXIT=&h80000000) also closes any graphics window, but ...
by Lothar Schirm
Mar 17, 2021 15:22
Forum: Windows
Topic: Dialog Example does not run
Replies: 11
Views: 558

Re: Dialog Example does not run

dodicat, thank you! But anyway for own applications you will have to write your own resource file, I think that is most easily done with FBEdit. FBEdit does all that work for you with its GUI designer: resource file, .bi file and .bas file. I think other IDEs are not so well usable for working with ...
by Lothar Schirm
Mar 17, 2021 11:08
Forum: Beginners
Topic: Presentation and questions about freebasic
Replies: 32
Views: 1488

Re: Presentation and questions about freebasic

"bit" ---> "un poco"? Not so bad! A bit is not much. only 1 or 0
by Lothar Schirm
Mar 17, 2021 11:01
Forum: Windows
Topic: Dialog Example does not run
Replies: 11
Views: 558

Re: Dialog Example does not run

Hi Vortex, thank you again. I think FBEdit would be the best solution to create and use resource files. For the moment, however, I am not interested to use resource files. I use my own template which can be modified or extended easily to create a Windows GUI: '=======================================...
by Lothar Schirm
Mar 16, 2021 15:48
Forum: Beginners
Topic: Presentation and questions about freebasic
Replies: 32
Views: 1488

Re: Presentation and questions about freebasic

You could also look for tutorials on the german FreeBASIC Portal if you use Google Translate https://www.freebasic-portal.de/tutorials/, especially "FreeBasic-Grundlagen".
by Lothar Schirm
Mar 16, 2021 14:59
Forum: Windows
Topic: Dialog Example does not run
Replies: 11
Views: 558

Re: Dialog Example does not run

Thank you, Vortex and Sarg. For the moment, regarding dialog boxes, I do not need much more than the standard Windows messagebox and an inputbox which I built as a normal windows GUI and which can be modified and extended easily. Additionally, I found two simple file dialog boxes by MichaelW https:/...
by Lothar Schirm
Mar 15, 2021 18:57
Forum: Windows
Topic: Dialog Example does not run
Replies: 11
Views: 558

Re: Dialog Example does not run

Strange! Here is my copy from command prompt: C:\FreeBASIC>fbc.exe -s gui examples\gui\win32\dialogres\dialog.bas dialog.rc examples\gui\win32\dialogres\dialog.bas(22) warning 3(1): Passing different poin ter types, at parameter 4 of DIALOGBOXPARAM() Error! Could not open source file (dialog.RC) OBJ...
by Lothar Schirm
Mar 15, 2021 15:24
Forum: Windows
Topic: Dialog Example does not run
Replies: 11
Views: 558

Dialog Example does not run

I use FreeBASIC 1.07.1 64 bit. The following example from the FreeBASIC examples folder gui\win32\dialogres\dialog.bas does not run, I believe. '' '' Dialog Example, by fsw '' '' compile with: fbc -s gui dialog.rc dialog.bas '' '' #include once "windows.bi" #include "dialog.bi" d...
by Lothar Schirm
Mar 14, 2021 11:36
Forum: Beginners
Topic: Presentation and questions about freebasic
Replies: 32
Views: 1488

Re: Presentation and questions about freebasic

Hi zelda64bit, welcome to the forum! I found this link: Programacion en BASIC http://www.nachocabanes.com/basic/#cursos . There are several Cursos de BASIC "clásicos", en modo texto . They are not directly related to FreeBASIC, but as an introduction they might help you to understand also ...
by Lothar Schirm
Feb 28, 2021 14:00
Forum: Beginners
Topic: Convert vbscript to FB
Replies: 10
Views: 901

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: 901

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: 23798

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: 23798

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: 23798

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...

Go to advanced search