How to make a quiz in Delphi? [closed] - delphi

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have to make a quiz in school, but I have a problem changing the questions and answers as the user clicks on the button which sends them to next question.
I tried using Case to change the questions as they click the button, but it doesn't seem to work.
So now i don't even know how to start the program.
I have:
Label - This changes into next question when the user clicks on the button.
RadioGroup - This holds up answers to the questions, this needs to change too.
Button - When user clicks on the button, RadioGroup and Label changes.
So what should I write to make sure that the questions changes when users clicks on the button?
Thanks.

The structure of the code inside Onclick() may look like this:
// (1) Save the response selected
...
// (2) Increment counter
Inc(ActualQuestion);
//..
// (3) Get the next Question/Responses
GetQuestion(ActualQuestion);
(1) and (3) will depend on how you have stored the questions and answers.
You can get from a DataBase, File on disk, array in memory...

Related

How can I automatically press a button on the keyboard when it pops up? For example the letter "A" [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 10 months ago.
Improve this question
I want the letter "A" to get pressed on the keyboard without the user pressing it manually.
Or the "return" button.
You should first think of the basic flow of how the app should work.
Do you want the A to be pressed after x amount of time? Create a counter.
Do you want it after x item appears? Use .onAppear {}
Do you want it after x data refreshes? Use .onChange..
Think about the flow of the app then use the right tool to trigger it.

Autoscrolling of images and perform action on click images [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to create autoscroll of images and want to perform action on click of image. [Same as iTune home page]. I really stuck to perform this task.
Please give me some suggestion or any reference how I can perform same.
Autoscroll is main thing for me as well images should scroll in infinite loop same as iTune Home Page . Thanks.
You can use table view for show each cell.
if you want to show images in each cell then use collection view inside a table view cell.
so it's look like a app store home page.

What is that? Cell or Table? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am finishing my first app adding an About Us section. I want to create something like this there:
I want to insert the FAQ and website link but what is that? Is a custom cell? a Table?
Now I am using a simple button but I think that the option in the picture is more.
It's probably something very simple, please help.
That is a simple grouped section in UITableView, though cell is more likely to be custom one.

iOS Secure Text Input For UITextfield [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
im making a Lib for online payment, which will be plugged in merchant's apps, in my Lib have a popup view with Textfield which letting the user to input their PIN code in it
As i think the merchant can write something to get the inputted key in their app in background when my view is show, so i would like to know if thats possible and how to prevent something like that?
Prevent something like capturing keyboard event without needing of textfield delegate like in click here or click here
Thanks
You can make it difficult for the hosting app, but you will never be able to make it impossible to read the PIN. To make it difficult, you will need to create your own PIN entry with its own "keyboard" possibly similar to the PIN entry for the iOS lock screen.
I would avoid using a keyboard, as users can insert their own keyboard, and thus wouldn't use any of the standard text entry fields. It shouldn't be too hard to create a matrix of 11 buttons (0-9 and a backspace) and the code to display it.

iOS: If 'swipe to delete' is enabled should I still have an edit button? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Basically, as the title of the question says: I would like to know how important it is to have an edit button when all I want the user to be able to do to a cell is delete and 'swipe to delete' is enabled. Is it intuitive enough if the edit button is not there? Are iOS users all very familiar with 'swipe to delete'??
I would rather not have the edit button there if I'm able to delete by swiping, but how would a user know?
It is personal preference. I believe the swipe to delete is more of a super-user feature and people new to iOS may not find it, if you see the Apple Message app, both are supported, you can swipe to delete or press edit then delete.
However, see the Apple Notes app, and swipe to delete is the only way to delete a note without actually going in to it.
Analyse your target user base and make a decision, or try observing some people using the feature. Is there a reason why you can't have an edit button? Is something else in the nav bar?
As CodeBox says, this is more of a user-experience discussion than a right/wrong programming question.
https://ux.stackexchange.com/

Resources