Hi, I need access to the standard Windows print dialog. CwPrinterPrompter just doesn't cut it for my my application. Am I just overlooking it? Do I need to load it or download it from somewhere? Thanks, -Carl You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Carl, You should take a look at Totally Objects - Visibility Color. It may be overkill for what you want but it is worth a look. The web page starts out talking about Turtle Graphics. That is a new feature and you don't need to use it, so don't let it put you off, dig a little deeper to see if it is what you need. Lou You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
On Friday, January 17, 2014 9:42:45 AM UTC-5, Louis LaBrunda wrote:
Hi Louis, This framework includes a native Windows print dialog? I don't see anything about that in the docs. Thanks, -Carl You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by Carl Gundel-2
I have explained what Visibility can do in a private e-mail to Carl. Basically, within Visibility you have full access to all of the print parameters for the chosen printer. You can then adjust these as required.
-- Note to Lou: Lou, you may not be adept at Turtle Graphics but it gives Visibility a way of producing paged output very quickly and accurately. You can define a page in terms of physical content and dimensions - mm, inches, etc. and after that you can scale the page using a scale percentage. You can range over the whole page putting items when're you want them. It makes producing printed output an absolute doddle and frees you from the need to define print objects. I recommend that you try it. As an example, for one of my companies I needed a landscape A4 price list that could be converted into a folded A5 booklet. This required full imposition(printing pages across a spread which when folder have the correct page numbers. This was simply put together using Turtle Graphics and thus I could print out an up to date price list from my database on demand. Just an example. Advert - a snip at £50.00 per copy with a licence for 2 developers. Check out http://www.totallyobjects.com/viscol.htm David On Thursday, January 16, 2014 11:28:02 PM UTC, Carl Gundel wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out.
David
Totally Objects Doing Smalltalk since 1989 |
Yes, thanks David. Unfortunately this does not solve the problem. So far no one has jumped in to say "Yes of course you can open a native Windows print dialog. Just do such and such." I'm beginning to feel a certain dread. :-( VA Smalltalk has many wonderful qualities, but how can a Windows development platform of this maturity not have support for every single native dialog box? Do I now need to poke around to see what else is missing? How did we arrive here? -Carl On Friday, January 17, 2014 3:00:45 PM UTC-5, Totally Objects wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Administrator
|
On Friday, January 17, 2014 12:38:30 PM UTC-8, Carl Gundel wrote:
--
OSCall>>#documentProperties:hPrinter:pDeviceName:pDevModeOutput:pDevModeInput:fMode: calls the Windows function DocumentProperties(). VA only uses it to get the size of the data structure, but you should be able to use it for more things. Microsoft documentation: http://msdn.microsoft.com/en-us/library/windows/desktop/dd183576%28v=vs.85%29.aspx You will probably want to back track VA's use of this function to get a better idea of how to use it from Smalltalk. For example, I hacked VA to use 4 instead of 0 for the fMode argument, so it would prompt. I got a Windows printer dialogue for the WebEx printer. Obviously, there much be a way to specify which printer is of interest to you. You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
On Friday, January 17, 2014 4:30:24 PM UTC-5, Richard Sargent wrote:
Richard, I appreciate your input, but it really should be as easy (or nearly so) as PrintDialog new open, right? ;-) -Carl You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Administrator
|
On Friday, January 17, 2014 1:45:07 PM UTC-8, Carl Gundel wrote:
--
If VisualAge Smalltalk were oriented solely towards Windows, IBM might have included such a feature. Unfortunately (or not), they targetted multiple platforms and so designed a "common denominator" dialogue that would present the same experience across all platforms. So, someone needs to create such a class, after which it will be as easy to use as you suggest. :-) You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by Long Haired David
Hi Dave, I didn't mean to disparage Turtle Graphics. I'm sure it is very powerful. I just didn't want Carl to be off put by its somewhat toy like sounding name. The first thing you see when you go to the web page is Turtle Graphics. That's fine, it's powerful, it's important and you are rightly proud it but it may lead people to think the Visibility is less than it is. I am planing to give Turtle Graphics. I have some questions but will email you off line. On Friday, January 17, 2014 3:00:45 PM UTC-5, Totally Objects wrote: Note to Lou: Lou, you may not be adept at Turtle Graphics but it gives Visibility a way of producing paged output very quickly and accurately. You can define a page in terms of physical content and dimensions - mm, inches, etc. and after that you can scale the page using a scale percentage. You can range over the whole page putting items when're you want them. It makes producing printed output an absolute doddle and frees you from the need to define print objects. I recommend that you try it. You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by Carl Gundel-2
Hello Carl,
CwPrinterPrompter is the right class. Unfortunately, the class is a little faulty, nevertheless, it is the right point of start to open the printer driver dialog. A class to open a standard print dialog to make default settings is unknown to me. But I have a question, what will you do with this dialog?
Ralf
Am Freitag, 17. Januar 2014 00:28:02 UTC+1 schrieb Carl Gundel:Hi,
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Ralf, Our customers use the standard Windows print dialog to choose a printer, specify how many copies to print, choose landscape or portait mode, select an output tray, etc. Essentially they are used to having all the functionality of the standard print dialog. Some of them are surprisingly vocal about this kind of thing. Thanks, -Carl On Tuesday, March 4, 2014 7:24:07 AM UTC-5, Ralf Helm wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by Carl Gundel-2
Hello Carl,
ah, ok now I understand. Look at OSPrintdlg structure. But I can't see a reference in ST and I have never make a class to use this function. Search for PRINTDLG you will find the structure definition and the function PrintDlg. Unfortunately, the use is a little more complicated, maybe you're lucky and it has been implemented already by someone. BTW: In Delphi use the class TPrintDialog, ups, Sorry.:)
Regards
Ralf
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/groups/opt_out. |
Free forum by Nabble | Edit this page |