Medium contactWizardShow
From TrillWiki
The medium_contactWizardShow notification is sent when the contact wizard screen needs to be shown or hidden.
Compatibility: 2.0 and higher
Contents |
Syntax
callback(int window_id, char *icontrol, "medium_contactWizardShow", contact_wizard_t *data, void *userData);
Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.
Parameters
Medium contactWizardShow utilitizes the contact_wizard_t structure.
struct contact_wizard_t {
unsigned int struct_size;
int show; //1 shows, 0 hides
int flags;
char *medium;
char *type; //contact, import
HWND hwnd;
int x;
int y;
char *section;
struct group_entry_t *group;
struct contact_wizard_info_t wizard_info;
};
- show
- If set to 1 the dialog should be shown, if 0 hide.
- flags
- The other information that may be needed. Available options for this currently is: CONTACT_WIZARD_OVERRIDE_GROUPS (Will tell importer to not use the groups if they have them available).
- medium
- The medium selected in the wizard.
- type
- The type of screen to show. The current options are : import, contact
- hwnd
- The hwnd to use as the parent.
- x
- The x location to place the dialog.
- y
- The y location to place the dialog.
- section
- The contact list section to import or add the contact to.
- group
- The group to import or add the contact to. This must be saved so that it can be given when a contact is added.
- wizard_info
- [out] Information to be filled out by the plugin regarding the image, title and description of this dialog.
Return Value
Must return 0.
Remarks
The size of image to use is 48x48. The size of the dialog is 268x196 dialog units in Tahoma 8pt font.
See also: medium_contactWizardFinish
