Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am using VBA code to get data from user by using InputBox function. I want a user to write in Arabic.
But, when I run it, I found strange characters although I can write in Arabic normally in Excel sheets.
Can anyone help?
Make a custom form, that works as InputBox.
There you would be able to write in any other language than English.
Otherwise you would be getting the ?????????????????????
Simply add a label element for the input and button elements for Ok and Cancel.
In general, this is much better than InputBox, because you can control the TextAlign property, which is different in Arabic than in English.
Related
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 9 months ago.
Improve this question
I'm trying to make an program in DXL whos asks the user some data. For this reason, I would like show the instruction to user with an Dialog Box. How can I do put a bold strings in the Dialog Box? (I'm new in this language).
Although the question is already answered, I update the question so that future readers can understand it better:
I know how dialog boxes are created and displayed in DXL, as follows:
DB dialog = create("My DB box.", styleCentered | styleFixed);
label(dialog, "ALL");
show dialogue
But what I want to do is add bold text inside it.
This depends on where you need the bold text. As far as I know it is e.g. not possible to make a label of a field bold, but you could perhaps create a DBE of type richField (or richText) on your dialog box and fill it with richtext, like in
void doSomething (DBE x) {ack "boo!"}
DB dialog = create("hi there")
richField (dialog, "", "Remember to {\\b save your module} before calling this function", 60, true)
button (dialog, "Do something", doSomething)
show dialog
For more complex texts you might want to look at drawing text on a DBE canvas
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am trying to write an If statement in VBA that is somewhat in this format:
If Button A is clicked
Then
Open a file
End If
I am stuck at the first part where I am not sure how to write the portion for the "If Button A is clicked". Would greatly appreciate any advice on this.
Code
The expected result would be that the file opens when the user presses button A and specifies the location of the file that is to be opened.
A button being clicked is an ephemeral event that happens, not state that you can test with an "if". Set an event handler to call the code when the button is clicked, and don't worry about an "if".
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I created a button and I assigned a macro to it. The button does not work, but if I run the macro manually by using the "run" option in the developer tab or if I press the "play" button in the VBA window, everything works perfectly. I do not think that adding the code will be useful.
Regards,
It's possible the macro got "un-assigned".
Right-click the button in design mode, and select "Assign Macro"
Re-assign the macro in the dialog, exit design mode and click the button - it should "just work".
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
net Programmers
I am in a trouble
I want to display messagebox after a while of time
i did this but the problem is that the messagebox appears behind the other windows of the active programs
I want a code that displays the messagebox over all opened windows to make the user see it
and THANKS
You can't set TopMost on a message box. However, you could create your own class/dialog set TopMost to true on it and then use ShowDialog to display it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm a newbiwe. I building a mac app, i want to set type input in password textfield displayed as **. And then user check on Checkbox, text in password textfield displayed normal. I created NStextfield and Checkbox programmitically. Thanks for your help.
Take a look at KSPasswordField...
From the page:
Shows the password in plain text on-demand
On the basis that password visibility is likely being toggled for editing, makes the field the first responder
Automatically cleans up likely unwanted whitespace when pasting or dragging in passwords
To make it work:
Add KSPasswordField.h and KSPasswordField.m to your project.
In Interface Builder, create a regular NSSecureTextField and then set
its custom class to be KSPasswordField.
(Or, in your case, programatically create a KSPasswordField instead of an NSTextField)
Hook up a checkbox (NSButton) to the toggleTextShown: action of your KSPasswordField. In your case, do this:
[myCheckbox setTarget:myPasswordField];
[myCheckbox setAction:#selector(toggleTextShown:)];