I am planning to make a maths game there will be one question like 1+ 1 as an image in Javafx. The textbox provided will give the user to input the number how do for example for 1+1 just allow the user to put in 2 and for everything else it will not accept then number in the text box. and display a message try again or something similar.
Basicly how do I restrict the text box for a specific number
Related
I am trying to put together a multiple choice grid in a google form, which should have some logic in it.
The idea is that people can use the form to predict a starting line up from a football team. I want to keep the form as easy and small as possible, thus going for a multiple choice grid.
The design I had in mind to use is pretty simple:
The logic I need is:
you can and must put only 1 player on goal
the total number of players selected should be 11
if you reach the 11 selection, you shouldn't be able to select any more players
if you have selected 1 player on goal, you shouldn't be able to select any more players on goal
Ideally: the check should be dynamic, while you are filling in the form. As soon as you reach the 11th name, you shouldn't be able to continue selecting options.
I have already tried tinkering with some add-ons for google forms, but they all struggle with the multiple choice grid.
Does any one have any advice how and if I can even achieve this with google forms or maybe it's wiser to move on to another solution?
In order to do what you want (a different number of selections for each column) you'd need to have them as separate questions. I haven't used a survey platform that would do what you want the way you've been thinking about it.
So, you'd have a question asking who they want the goalie to be. Then you'd have another question where you ask which 10 other players they'd select for the other positions. To get fancy, you'd make a separate question for each person that's selected for goalie, that would ask about the other positions, leaving out who the goalie.
I implemented Gauss Jordan Algorithm in eclipse and now I am trying to make it be a software, however I have no experience at all with GUI.
I have a window that asks for input of 2 things number of variables and number of equations and when user enters the numbers and presses submit button, second window opens.
In that second window I need certain number of textfields to appear itself, which will be dependent on the two variables mentioned above.
My question is there any way to grab the value from first class(first window where user entered variables which I stores in first class) pass it to second one(second window where the textfields will appear) to tell it how many rows and columns should be generated with textfields and then the program would generate it?
I tried looking up on youtube, because I do not understand documentations well, so any answer would be very appreciated!
Well the MVC pattern could help you to do this, check something like this:
http://www.austintek.com/mvc/
I am doing a registration system by using vb 6.0. I want for user to enter the mobile number. So I want the mobile number to be limited to 8 digits only. If the number is over 8 digits, when the user click save button, a message box will pop out to ask user to recheck the data again and it will not be save until the data is inserted correctly. What is the coding for me to do that?
Don't let your user enter more characters than allowed, then tell them later they can't do that. The TextBox control has a property you can access from the designer named MaxLength. Set that property to 8 to limit the use to a maximum of 8 characters. Better still would be to use the MaskedEditBox and use the Mask property to enter a mask that limits and formats the user input. To add a MaskEditBox you need to open the Components window and add the Microsoft Masked Edit Control 6.0 to your toolbox. You can then add the control to your form.
I have four textboxes and 10 buttons for digits. I need to change
background of textboxes when one of four is focused. But when i click
on button there i loose textbox focus and background return to normal
(from focused visual state). So how can i prohibit buttons to catch focus when i clicked
them and save focus on textboxes?
Are you using numbers on your buttons? If so, is there a specific reason that you're making your own number pad? If it is just because you want to have a number pad instead of the regular keyboard, are you aware that you can add this property to your textboxes InputScope="TelephoneNumber" which will give you a number pad similar to the telephone dialing pad.
I have an app where users select images they wish to print, the print sizes they wish for each image, and a quantity for each image/print size pair.
I'm wondering what sort of GUI I can use to do this well. I do have to allow for 'batch adds' - i.e. clients are often professional photographers and may print a whole lot of images at several sizes, so I don't want to create a flow where they have to select a single image and go from there.
Currently, I allow selection of images and print sizes independently, with a qty field and an 'add' button. This works well for adding but I need a whole other UI to edit/remove items, and it doesn't represent the order state well.
Any ideas? Thanks.
Sure, what about something like this:
(source: fullahead.org)
Initially all image thumbnails would have the blue Order Prints link. On click it would create a Size dropdown and Quantity text field.
Once the user entered in both fields, a red "X" would appear beside it, allowing them to delete that specific order.
The user would also be able to keep clicking Order Prints on a single thumbnail to add multiple size/quantity orders for a single image.
As a nice usability feature, you could add a subtle selected indicator to thumbnails that have a print request on them. This would let your users quickly see what images they have pending print orders on.