Search found 203 matches

by RNBW
Aug 26, 2018 17:10
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

The thing I don't like about it, is that when an inadmissable character is entered the cursor returns to the beginning of the entry. I would rather it stayed where it was, or moved to the end, but I don't know how to achieve this. By subclassing the edit control. Looking back at your earlier post o...
by RNBW
Aug 26, 2018 16:29
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 834
Views: 180501

Re: FBGUI library for windows 2

Those who have been following my thread in Tips & Tricks for Numeric Entry Into a Textbox may be interested in my first attempt to convert it to use the FBGUI for windows 2 library https://www.freebasic.net/forum/viewtopic.php?f=7&t=26816&start=60.
by RNBW
Aug 26, 2018 16:23
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

I rather like the FBGUI library for windows 2 https://www.freebasic.net/forum/viewtopic.php?f=14&t=17058 . It is very much like Purebasic of which I am also a fan. This is my first attempt at adapting the code for Lothar Schirm's library to FBGUI for windows 2. The thing I don't like about it, i...
by RNBW
Aug 26, 2018 10:28
Forum: General
Topic: FBGUI for Windows: Problem
Replies: 19
Views: 1465

Re: FBGUI for Windows: Problem

Can anyone help me with the following code. It is a transfer of the code I wrote "Grid Transfer" for Lothar Schirm's Simple Win API Library, which he kindly included in his library. It works without a problem in Lothar's code, but when I try to transfer it to FBGUI it transfers the values...
by RNBW
Aug 24, 2018 20:17
Forum: General
Topic: FBGUI for Windows: Problem
Replies: 19
Views: 1465

Re: FBGUI for Windows: Problem

Wrong assumption. Google points me to https://www.freebasic.net/forum/viewtopic.php?f=14&t=17058&start=705 but that's not the library. Assuming that you want help: Where is the library? This forum/LIBRARIES/FBGUI library for windows 2 [url]FBGUI library for windows 2[/url]. Click on the red...
by RNBW
Aug 24, 2018 19:38
Forum: General
Topic: FBGUI for Windows: Problem
Replies: 19
Views: 1465

Re: FBGUI for Windows: Problem

jj2007 wrote:error 23: File not found, "window9.bi"

Assuming that you have downloaded FBGUI library, where have you stored "window9.bi". I stored it in the Freebasic inc folder. I found it always works for me there.
by RNBW
Aug 24, 2018 17:30
Forum: General
Topic: FBGUI for Windows: Problem
Replies: 19
Views: 1465

FBGUI for Windows: Problem

Can anyone help me with the following code. It is a transfer of the code I wrote "Grid Transfer" for Lothar Schirm's Simple Win API Library, which he kindly included in his library. It works without a problem in Lothar's code, but when I try to transfer it to FBGUI it transfers the values ...
by RNBW
Aug 24, 2018 15:24
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

> The last para of SetWindowLongPtr is definitely a pointer - to the WndProc. Looks like a FB bug. In any case, it works, and you can ignore the warning. It is not a FB bug. In the declare, it is defined as a LONG (32-bit) or LONG_PTR (64-bit), that is an scalar. Therefore, if you want to pass a po...
by RNBW
Aug 12, 2018 9:59
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

> The last para of SetWindowLongPtr is definitely a pointer - to the WndProc. Looks like a FB bug. In any case, it works, and you can ignore the warning. It is not a FB bug. In the declare, it is defined as a LONG (32-bit) or LONG_PTR (64-bit), that is an scalar. Therefore, if you want to pass a po...
by RNBW
Aug 11, 2018 19:00
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

Postby jj2007 » Aug 09, 2018 21:26 The best and most straightforward solution (at least for Windows) is to subclass the edit control, and to intercept keyboard messages before they get displayed in the box. See Numbers only for a working example. Subclassing is outside Lothar Schirm's library. Loth...
by RNBW
Aug 11, 2018 15:04
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

Please note that I have deleted the code that allows editing of numbers with one digit before the decimal point. Regrettably, it just doesn't work. That particular code would be my preferred option, but unfortunately, I just can't get it to work. It works for all other editing, but not if there is j...
by RNBW
Aug 10, 2018 17:11
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

This example is for single textbox. I have changed the EM_SETSEL message and this results, where there is a single character before the decimal point and it is deleted, in the character being deleted and replaced with a highlighted 0 which is then overwritten by your change 1.234 --> move caret to r...
by RNBW
Aug 08, 2018 21:55
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

When you click the mouse just before the decimal point with a number in it such as 3.000, to say change it to 4.000, and then back space the cursor to erase the 3 the cursor jumps to the end of the number. One thing that is important if a program is to be of use to others is consistent and expected...
by RNBW
Aug 08, 2018 16:18
Forum: Tips and Tricks
Topic: Numeric Entry in an EditBox
Replies: 111
Views: 13310

Re: Numeric Entry in an EditBox

The following may not be something that everyone wants to do, I have formatted the number cells so that they display numbers to 3 decimal places after the calculation button is clicked. Of course this can be changed in the program to other figures or REMd out if preferred. I now also have the last r...
by RNBW
Aug 08, 2018 10:56
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 66
Views: 32047

Re: Simple WinAPI GUI library

For the latest code for entering numerics into a grid of textboxes using Lothar Schirm's Simple WinAPI Library please see this post https://www.freebasic.net/forum/viewtopic.php?f=7&t=26816 . You may also wish to view BasicCoder2's thread at https://www.freebasic.net/forum/viewtopic.php?f=7&...

Go to advanced search