Icon in messagebox not show  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
HomerWu
User
Posts: 91
Joined: Fri Nov 25, 2016 8:19 am

Icon in messagebox not show

Post by HomerWu »

Dear Support,

I have a problem need your help:i use your SDK and then called the method 'ShowMsgBox',but i fund the icon in the messagebox not show(i mean the icon is not what i set),i have set the ico for the form which the pdfCtl in,and i also set the icon for my application,but nothing changed.could you please give me some advice?
attachment.zip
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Icon in messagebox not show  SOLVED

Post by Vasyl-Tracker Dev Team »

Hi HomerWu.

It ignores the "ico.dlg.key" you specified because you also specified the UIX_MsgBox_IconError flag for that call. This flag has higher priority and 'overrides' the pIconID value.

About icon in dialog's title bar: you need to once use IUIX_Inst::SetAppIcon to setup the icon for ALL dialogs/msgboxes in whole runtime.
Pass there the HICON-handle to properly loaded icon-object. Seems you may use the Icon object from the System.Drawing and its Handle property to do it...

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
HomerWu
User
Posts: 91
Joined: Fri Nov 25, 2016 8:19 am

Re: Icon in messagebox not show

Post by HomerWu »

Dear Vasyl,

Thanks a million, You know it botheried me for days,and it works now,thanks again!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Icon in messagebox not show

Post by Tracker Supp-Stefan »

:)