Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: How to select a printer device with ABC's EIP 2012-05-10 -- Russ Eggen its actually pretty easy. Here is how its done:
1) For the column that stores the device name, Use any dialog lookup from the drop list. Font, Color,
File, etc. Does not really matter which. I used File.
2) You will need to override the TakeEvent method in the parent class, but not by editing it. Two embeds
in this method:
A) Declare local variable (DATA embed):
Str CSTRING(FILE:MaxFilePath+1),AUTO
B) The code, before parent call:
CASE Event
OF EVENT:DroppingDown
IF ~SELF.ReadOnly
IF NOT SELF.Title
SELF.Title = SELF.ListBoxFeq{PROPLIST:Header,SELF.FieldNo}
END
UPDATE(SELF.FEQ)
Str = SELF.UseVar
IF PrinterDialog(SELF.Title) !Key code
Str = PRINTER{PROPPRINT:device} !Key code
SELF.UseVar = Str !Key code
DISPLAY(SELF.Feq)
END
RETURN EditAction:Ignore
END
END
If any of the above looks familiar, it should be, I stole it from one of the ABEIP methods
Today is November 21, 2024, 7:16 am This article has been viewed 35246 times.
|
|