forms

How can I pass TForm to a DLL as parameter?

别说谁变了你拦得住时间么 提交于 2020-03-22 07:52:09
问题 i want to make dll that using tform as parameter, the simple plan is if that form passed to dll the dll file return array that contain components name. it possible to passing tform as parameter? 回答1: Most likely you will have two instances of the VCL in your process, one for the host exe and one for the DLL. And that is one instance too many. The TForm class from your host exe is a different class from the TForm class in your DLL. The basic rule is that you cannot share VCL/RTL objects across

Angular 6: How to hide radio circle using Angular Material and use NgStyle for checked answer?

末鹿安然 提交于 2020-03-22 03:41:07
问题 I'm having trouble with two things: Hide circles of mat-radio-group Change p tag background to blue if checked I've tried using ::ng-deep to override css properties and change colors to white, tried to configure invisibility:hidden but none worked. Also, I tried to use ngStyle to configure that the background color of p tag will be blue if checked but it didn't work. This is the HTML: <div class="container-fluid"> <header class="lesson-heading" *ngIf="currentQuestion"> <span class="title"><

Remove white spaces from both ends of a string inside a form - React

寵の児 提交于 2020-03-21 22:22:07
问题 I have a simple form that receives the first name and last name, and I need to remove the whitespaces in the beginning and end of the string. I can do this with the .trim() method, but because is a form, it doesn't let me write a name that has two words, such as Ana Maria, because it doesn't let me press the space key at the end of a word. How can I remove white spaces from both sides of a string but still let me press space and write more than one word? This is the component: export default

Multidimensional array values not inserted through PDO loop

隐身守侯 提交于 2020-03-21 10:24:55
问题 I have a dynamic HTML form with three fields (item, number, cost). Users can add as many rows as they need. Because of this, I have set the fields names as item[], number[], cost[] in order to loop through the post and insert the values in the DB. I have verified that the values are posted correctly up correctly through vardump, and I have checked that the following loop is picking up the values (both key and value) through printr. (and also simply echoing $value1). foreach ($_POST as $field

Reenable a form submit button on response of a file download

ぃ、小莉子 提交于 2020-03-21 06:21:06
问题 This is probably a really easy question, but I actually haven't seen many search results on this. I have a very basic submit button within a form that takes some user input, and generates a downloadable file in the server's temp directory, then prompts the user to download this file, which is then disabled by this on submit: <form action="Home" method="post" onsubmit="Submit.disabled = true; return true;"> ... <input type="submit" name="Submit" value="Submit" id="Submit" /> We need it to be

Reenable a form submit button on response of a file download

[亡魂溺海] 提交于 2020-03-21 06:20:50
问题 This is probably a really easy question, but I actually haven't seen many search results on this. I have a very basic submit button within a form that takes some user input, and generates a downloadable file in the server's temp directory, then prompts the user to download this file, which is then disabled by this on submit: <form action="Home" method="post" onsubmit="Submit.disabled = true; return true;"> ... <input type="submit" name="Submit" value="Submit" id="Submit" /> We need it to be

Does Delphi offer an event handler for form creation notifications?

China☆狼群 提交于 2020-03-19 04:46:37
问题 Does Delphi provide some kind of event or hook for form creation (or more generally, form lifecycle events)? So that if somewhere in the code a form is created and shown (modal or non-modal, dynamically or in the usual app starup stage), Delphi calls an event handler which allows to log / analyse / modify the form before it is shown? I know there are options which involve introducing a base form class or a custom form creation procedure, but for existing applications which already have many

Does Delphi offer an event handler for form creation notifications?

孤街醉人 提交于 2020-03-19 04:45:32
问题 Does Delphi provide some kind of event or hook for form creation (or more generally, form lifecycle events)? So that if somewhere in the code a form is created and shown (modal or non-modal, dynamically or in the usual app starup stage), Delphi calls an event handler which allows to log / analyse / modify the form before it is shown? I know there are options which involve introducing a base form class or a custom form creation procedure, but for existing applications which already have many

how to add own CAPTCHA for my own contact form

折月煮酒 提交于 2020-03-16 07:51:13
问题 I am creating a form using dreamweaver cc. the form is written in php and working good. now i want to add captcha image or text for verification method. how to possible using my code to add a captcha. My form looking like this <table width="100%" border="1" align="center" cellpadding="2"> <form method="post" action="contact_process.php"><tr> <td><input type="text" name="name" placeholder="Enter Name" class="add_input_data" required/></td> </tr> <tr> <td><input type="text" name="mobile"

How to increase the upload limit for files on a Symfony 2 form?

百般思念 提交于 2020-03-14 08:43:21
问题 I have a form in Symfony where the user uploads files to. These files can be up to 50Mb in size. However, when I try to upload a file that is about 10Mb (before this, the files were no bigger than 7.2Mb) the form reloads with this error: The uploaded file was too large. Please try to upload a smaller file This is a validation error, it doesn't appear as a proper Symfony2 error. I've set the upload_max_filesize setting in the PHP.ini file to 50MB, so a 10MB file shouldn't be an issue? 回答1: You