Search found 332 matches

by Lothar Schirm
Oct 23, 2016 15:08
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

I optimized the code a little bit (not so many "Dim Shared ..."): 'TwoWindows(2).bas 'October 23, 2016 #Include "WinGUI.bi" Dim Shared As HWND Window_Main, Edit_1, Edit_2, Edit_3, Button_OpenWindow_Text, Button_Exit Dim Shared As MSG msg Sub CreateWindow_Main 'Main window Window_...
by Lothar Schirm
Oct 22, 2016 15:41
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

I tried a little bit, this is my solution: 'TwoWindows.bas 'October 22, 2016 #Include "WinGUI.bi" Dim Shared As HWND Window_Main, Window_Text, Edit_1, Edit_2, Edit_3, Button_OpenWindow_Text, _ Button_Exit, Edit_4, Edit_5, Edit_6 Dim Shared As MSG msg1, msg2 Sub CreateWindow_Main 'Main wind...
by Lothar Schirm
Oct 20, 2016 12:56
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

WinGUI is updated, see project site
by Lothar Schirm
Oct 20, 2016 12:55
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 54
Views: 11810

Re: Simple WinAPI GUI library

New update on October 20, 2016. It is now possible to change between controls or group of controls using the TAB key. See description in the Sub WaitEvent in WinGUI.bi. WaitEvent has been changed accordingly, and all active controls have a WS_TABSTOP style in the parameter list of the function which...
by Lothar Schirm
Oct 19, 2016 14:42
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

Regarding RNBW's and Josep Roca's answers, I will implement solution 3 (style = WS_TABSTOP) as parameter in all functions for all active controls, changeable by the user. Function WaitEvent will have the handle of the window as a new parameter because IsDialogMessage needs it.
by Lothar Schirm
Oct 19, 2016 14:34
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

I used Window9 more than 2 years ago with Windows 8.1. I do not know how it works now. If you need support, please contact the project site (see my post dated Oct 16). It doesn't work now because somewhere along the line it appears that FBC started making #includes case-senstive, even on Windows. S...
by Lothar Schirm
Oct 18, 2016 15:36
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

@Provoni, RNBW, ... I ask your and other people's opinion regarding Josep Roca's proposal for using the TAB key. The modification of WinGUI.bi is nearly ready and tested so far. I could do the following: 1. Use WS_TABSTOP in CreateWindowEx for each control so that the user can use the TAB key to cha...
by Lothar Schirm
Oct 18, 2016 13:22
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

I used Window9 more than 2 years ago with Windows 8.1. I do not know how it works now. If you need support, please contact the project site (see my post dated Oct 16).
by Lothar Schirm
Oct 16, 2016 15:48
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

Thank you very much, this seems to be a very useful information. I will try to integrate that into my WinGUI. It should be as simple as before, but there are of course other more complex packages for users who need more features, for example: 1. Your library CWindow on PlanetSquires Forums http://ww...
by Lothar Schirm
Oct 15, 2016 17:55
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

What is a message pump?

I studied a little bit the different window styles in the documentation about CreateWindow in win32_fb.chm and saw that you must use the WS_TAB style and the WS_GROUP style for the relevant controls. Is this additional necessary? Could you please give a short example?
by Lothar Schirm
Oct 13, 2016 13:45
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

There is also a tutorial "Erste Schritte in der WinAPI mit FBEdit" (First Steps in WinAPI with FBEdit), but only in german (https://www.freebasic-portal.de/tutorials/erste-schritte-in-der-winapi-mit-freebasic-fbedit-104.html.
by Lothar Schirm
Oct 12, 2016 11:23
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 54
Views: 11810

Re: Simple WinAPI GUI library

New update on October 12, 2016 (see first post). Changes: - Function Window_New: Window style can be changed (new parameter "style" in the parameter list) - In previous versions, adding, deleting or replacing an item in a listbox or combobox by an empty string caused the program to crash. ...
by Lothar Schirm
Oct 10, 2016 16:19
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

Hi Provoni, that's a lot. I try to answer. 1. You can prevent the resizing of the window if you change the window style in the function Window_New. I tried "WS_OVERLAPPED Or WS_SYSMENU Or WS_VISIBLE". 2. WM_LBUTTONUP, releasing the mouse outside of the button: No idea how to solve that pro...
by Lothar Schirm
Oct 09, 2016 14:39
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

Lothar, There seems to be a problem with the listbox. I modified the code listbox.bas to show it. Run it and click Erase list, only the even entries are removed. My program needs all entries to be removed. Also replacing an item in the list with an empty string crashes the program. In order to eras...
by Lothar Schirm
Oct 09, 2016 13:51
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 14065

Re: Windows GUI

Lothar, What is the keyword to close a window? I've not been able to find it going through the code examples. My program needs multiple windows for various functions. This is what I have for the main window. loop until window_event_close(window_main,msg) And want something like this for a secondary...

Go to advanced search