Login
`
Templates, Tools and Utilities
|
||
Icetips Article
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, 8:37 am This article has been viewed 35247 times.
|
|