BBC BASIC for Windows
« Dialogue boxes »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:24pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Dialogue boxes  (Read 853 times)
Charlie6
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Dialogue boxes
« Thread started on: Dec 3rd, 2008, 10:29am »

I have just rediscovered BB4W after a lapse of about 10 years. I am sure I will have many questions because memory is poor.

But first, how do I enter a negative value in a numeric edit box?

Peter W
User IP Logged

Michael Hutton
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 248
xx Re: Dialogue boxes
« Reply #1 on: Dec 4th, 2008, 10:51pm »

If you specify the ES_NUMERIC you can only enter DIGITS into the edit box, so it will not accept signed negative numbers a user types in. You can put them there with SETDLGINT where the last parameter is a boolean signed/not signed.

The other way is to not specify ES_NUMERIC and use a noraml text box and poll what the user is entering yourself in a loop..only allowing him/her to enter the digits 0-9 and a - sign.

I hope this is valid advice!

Michael
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls