Create a Custom Print Dialog before printing - printing

Here is my problem:
I want to create a virtual "driver" that creates a custom dialog.
In this dialog there should be 2 buttons: "Color" and "Black".
Depending on this decision I want to send the print to a "real" printer driver to print it on my color / not color printer.
Is it possible to create such a dialog? How can I do it?

I solved the problem with Printer++.
I wrote a processor class that asks me if I want to print Color or not and depending on my anwser I send the file with RawPrinterHelper to a real printer

Related

How to show printing progress on TProgressBar

I am Using Delphi VCL and the problem is that I am creating labels and printing them, the user selects how many to print and I need to add a progress bar to the printing process so that it says something like: printing 3 of 7 or similar, but I don't know how to.
any ideas how to get this done?
EDIT:
I am using FastReports for printing the label and I basically set:
report.PrintOptions.Copies:= x;
report.Print;
the report's printer is set to the same printer that Tprinter is set, I set them with Printer.PrinterIndex:= Printer.Printers.IndexOf('My Printer');

Allow user to select text in ShowMessage dialog

I am writing a program in Delphi XE2. At one point in my program the user will be presented with output text, which I display through a simple "showmessage('The text of interest')" dialog.
I would like for the user to be able to copy and paste this text if they like to. It's not a key part of the program at all but I know that it might be nice for them to be able to do so.
At the moment, as far as I can see, it is not possible to select all or parts of the text from this type of message box, which brings me to my question: is there some way to make the message box text selectable for the user, or will I have to move on to other ways of displaying the text if I want this functionality? Any help would be greatly appreciated.
When you call ShowMessage a system message dialog is shown. This dialog does not support highlighting of individual portions of text. However, the dialog does respond to CTRL + C by placing the entire content of the dialog on the clipboard.
If you absolutely must have selection of individual portions of text then you will need to create the dialog yourself using Delphi controls.

How to type something else rather than what is typed in EditText in Android

I want to make one application in android where the user is typing in EditText.
But the user does not see what is actualy getting typed, rather it sees a different text in that EditText.
It would be great if you could elaborate on the realtime usage.
However if you want to mask the input, you can use android:inputType="textPassword" in the EditText.
Alternately, you can capture the input using setOnKeyListener and set the value accordingly.

Custom print dialog in VB6

How do I create this custom print dialog and get the values of the red options when the user clicks ok?
The print dialog below is not created manually, the app I took this screenshot from is probably modifying the default print dialog.
The items circled in red is associated with some data found in the app I took the screenshot from.
The class name of this dialog is #32770 (Dialog) which is the same print dialog found in notepad, wordpad, and vb6 common dialog print. So it is clear that it is modifying the dialog, adding controls to it somehow
You could look at Customizing Common Dialog Boxes but don't expect this to be simple from VB6. it is clumsy enough in C++.
You could just create your own dialog Form.
Update:
Perhaps consider using the download in HOW TO: Raise and Control Print Dialog Boxes from Visual Basic?

is possible to create a text with click action (like a Action link ) in blackberry mainscreen?

This is seems like a pretty simple question. Is it possible to set a custom action for a text link (those blue texts that are underlined) inside mainscreen in blackberry. In other words, is it possible to have a handler do something on an event like feildchangelistner on the text?
thanks
Yes, the various fields that display text are children of the class field
As you can see from the doc you can override navigationClick, unclick. You may also set the font as one that is underlined and override the default color in paint. You will also need to code touch events if you are supporting the older touchscreen devices (Storms OS5 and below)
I would advise against doing any of this because RIM provide a class that seems to fit your exact needs in the advanced UI pack. Take a look at HyperlinkButtonField

Resources