Home » Community » Newbie corner » Printer's dialog shows up multiple times
Re: Printer's dialog shows up multiple times [message #45492 is a reply to message #45487] |
Mon, 23 November 2015 21:26 |
|
Klugier
Messages: 1077 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Giorgio,
I think your code is hard to read for person that is not familiar with your language. It will be good if next time the code will be written in English. Backing to your problem, I think you wrongly assign callbacks (.
dlgInserisciOEE.ok << THISBACK(dlgDatiOkPressed);
dlgInserisciOEE.btnStampa << THISBACK(StampaRicevuta);
Should be,
dlgInserisciOEE.ok <<= THISBACK(dlgDatiOkPressed);
dlgInserisciOEE.btnStampa <<= THISBACK(StampaRicevuta);
Alternatively you can use When... clausul:
dlgInserisciOEE.ok.WhenAction = THISBACK(dlgDatiOkPressed);
dlgInserisciOEE.btnStampa.WhenAction = THISBACK(StampaRicevuta);
Please test and let me know if this works for you. I tested on Kubuntu and it seems ok - after above changes in code.
P.S.
Ultimate++ is designed to not used "delete" keyword with its components
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Mon, 23 November 2015 21:28] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Jun 01 05:52:39 CEST 2024
Total time taken to generate the page: 0.02460 seconds
|