ImageEn, unit iexToolbars |
|
Toolbar Button Image Constants
Declaration
// Images for Toolbar buttons (PNG files stored as RT_RCDATA resources)
const
ITBRES_RES_NAME_PREFIX = 'IETB_';
ITBRES_MIN_INDEX = 2000;
ITBRES_FORMAT_FONT_24 = 2000;
ITBRES_FORMAT_BOLD_24 = 2001;
ITBRES_FORMAT_ITALIC_24 = 2002;
ITBRES_FORMAT_UNDERLINE_24 = 2003;
ITBRES_UPDOWN_24 = 2004;
ITBRES_FORMAT_ALIGN_LEFT_24 = 2005;
ITBRES_FORMAT_ALIGN_RIGHT_24 = 2006;
ITBRES_FORMAT_ALIGN_CENTER_24 = 2007;
ITBRES_FORMAT_ALIGN_JUSTIFY_24 = 2008;
ITBRES_FORMAT_LIST_BULLETS_24 = 2009;
ITBRES_FORMAT_LIST_NUMBERED_24 = 2010;
ITBRES_CUT_24 = 2011;
ITBRES_COPY_24 = 2012;
ITBRES_PASTE_24 = 2013;
ITBRES_PASTE_PLAIN_24 = 2014;
ITBRES_UNDO_24 = 2015;
ITBRES_REDO_24 = 2016;
ITBRES_OPEN_24 = 2017;
ITBRES_SAVE_24 = 2018;
ITBRES_PROMPTTOSAVE_24 = 2019;
ITBRES_SEEKFIRST_24 = 2020;
ITBRES_SEEKLAST_24 = 2021;
ITBRES_ARROW_LEFT_24 = 2022;
ITBRES_ARROW_RIGHT_24 = 2023;
ITBRES_PRINTER_24 = 2024;
ITBRES_COLORPICKER_24 = 2025;
ITBRES_ZOOMFULLSIZE_24 = 2026;
ITBRES_ZOOMIN_24 = 2027;
ITBRES_ZOOMOUT_24 = 2028;
ITBRES_MOUSEZOOMANDSCROLL_24 = 2029;
ITBRES_MOUSESELECT_24 = 2030;
ITBRES_MOUSEMEASURE_24 = 2031;
ITBRES_SHOWPROPERTIESDIALOG_24 = 2032;
ITBRES_NEWLAYER_24 = 2033;
ITBRES_ROTATELEFT_24 = 2034;
ITBRES_ROTATERIGHT_24 = 2035;
ITBRES_FLIPHORIZONTAL_24 = 2036;
ITBRES_FLIPVERTICAL_24 = 2037;
ITBRES_CROP_24 = 2038;
ITBRES_DOEDITPREVIEWS_24 = 2039;
ITBRES_CONVERTTOGRAY_24 = 2040;
ITBRES_NEGATIVE_24 = 2041;
ITBRES_DOADJUSTPREVIEWS_24 = 2042;
ITBRES_DOEFFECTPREVIEWS_24 = 2043;
ITBRES_BRUSHTOOL_24 = 2044;
ITBRES_SPRAYTOOL_24 = 2045;
ITBRES_CLONETOOL_24 = 2046;
ITBRES_COLORFILLTOOL_24 = 2047;
ITBRES_ERASER_24 = 2048;
ITBRES_ROTATETOOL_24 = 2049;
ITBRES_MOUSEADDLAYERS_24 = 2050;
ITBRES_MERGE_24 = 2051;
ITBRES_MERGETOBACKGROUND_24 = 2052;
ITBRES_REMOVECURRENT_24 = 2053;
ITBRES_CROPBACKGROUND_24 = 2054;
ITBRES_CONVERTTOIMAGELAYER_24 = 2055;
ITBRES_LINK_24 = 2056;
ITBRES_UNLINK_24 = 2057;
ITBRES_FILL_24 = 2058;
ITBRES_BORDER_24 = 2059;
ITBRES_RESTOREASPECTRATIO_24 = 2060;
ITBRES_SIZETOFIT_24 = 2061;
ITBRES_RESTORESIZE_24 = 2062;
ITBRES_MOUSEEDITLAYERS_24 = 2063;
ITBRES_EDITTEXT_24 = 2064;
ITBRES_SHOWLABEL_24 = 2065;
ITBRES_OPENIMAGEDIALOG_24 = 2066;
ITBRES_POLYLINECLOSED_24 = 2067;
ITBRES_INVERTANGLE_24 = 2068;
ITBRES_INCREASECURVE_24 = 2069;
ITBRES_DECREASECURVE_24 = 2070;
ITBRES_MOVESENDTOBACK_24 = 2071;
ITBRES_MOVESENDBACKWARD_24 = 2072;
ITBRES_MOVEBRINGFORWARD_24 = 2073;
ITBRES_MOVEBRINGTOFRONT_24 = 2074;
ITBRES_ALIGNLAYERS_24 = 2075;
ITBRES_INCREASEANGLE_24 = 2076;
ITBRES_DECREASEANGLE_24 = 2077;
ITBRES_STARTSHAPE_24 = 2078;
ITBRES_ENDSHAPE_24 = 2079;
ITBRES_COLOR_PALETTE_24 = 2080;
ITBRES_MERGEALL_24 = 2081;
ITBRES_IMAGEEDIT_24 = 2082;
ITBRES_SELECTALL_24 = 2083;
ITBRES_VIEW_24 = 2084;
ITBRES_COLUMNS_24 = 2085;
ITBRES_SORTING_24 = 2086;
ITBRES_OPENNEW_24 = 2087;
ITBRES_NEWFOLDER_24 = 2088;
ITBRES_PROPERTIES_24 = 2089;
ITBRES_MOVEFILES_24 = 2090;
ITBRES_COPYFILES_24 = 2091;
ITBRES_DELETE_24 = 2092;
ITBRES_RENAME_24 = 2093;
ITBRES_REFRESH_24 = 2094;
ITBRES_GOUP_24 = 2095;
ITBRES_NEW_24 = 2096;
ITBRES_AUTOFIX_24 = 2097;
ITBRES_AUTOEQUALIZE_24 = 2098;
ITBRES_RETOUCHTOOLS_24 = 2099;
ITBRES_SEARCHFILE_24 = 2100;
ITBRES_FILENEXT_24 = 2101;
ITBRES_FILEREPLACE_24 = 2102;
ITBRES_OBJECT_24 = 2103;
ITBRES_IMAGE_24 = 2104;
ITBRES_SHOWALLPAGES_24 = 2105;
ITBRES_DOCUMENTROTATE_24 = 2106;
ITBRES_FITWIDTH_24 = 2107;
ITBRES_SEARCH_24 = 2108;
// Extra Glyphs (Unused by ImageEn)
ITBRES_CLOUDOUTLINE_24 = 2109;
ITBRES_DRAW_24 = 2110;
ITBRES_FLASH_24 = 2111;
ITBRES_FORMATPAINT_24 = 2112;
ITBRES_GRADIENTVERTICAL_24 = 2113;
ITBRES_HAMMERWRENCH_24 = 2114;
ITBRES_HELPCIRCLEOUTLIN_24 = 2115;
ITBRES_HOMEOUTLINE_24 = 2116;
ITBRES_INFORMATIONOUTLINE_24 = 2117;
ITBRES_OPENINAPP_24 = 2118;
ITBRES_PENCIL_24 = 2119;
ITBRES_SHAPE_24 = 2120;
ITBRES_SWAPVERTICAL_24 = 2121;
ITBRES_TEXTBOXOUTLINE_24 = 2122;
ITBRES_TOOLTIPIMAGEOUTLINE_24 = 2123;
ITBRES_CART_24 = 2124;
ITBRES_FOLDERIMAGE_24 = 2125;
ITBRES_FOLDEROUTLINE_24 = 2126;
ITBRES_IMAGEMARKEROUTLINE_24 = 2127;
ITBRES_IMAGEMULTIPLEOUTLINE_24 = 2128;
ITBRES_IMAGESEARCH_24 = 2129;
ITBRES_MAPMARKER_24 = 2130;
ITBRES_TAGTEXT_24 = 2131;
ITBRES_LANGUAGE_24 = 2132;
ITBRES_PERSON_24 = 2133;
ITBRES_CHART_24 = 2134;
ITBRES_IMAGE_COG_24 = 2135;
ITBRES_APPLICATION_COG_24 = 2136;
ITBRES_ADJUST_24 = 2137;
ITBRES_MAX_INDEX = ITBRES_ADJUST_24;
Description
Note:
◼You can use
LoadFromResource to retrieve the images for your own requirements
◼You can
ConvertToGray to make an image appear disabled, or
HSVvar to change the color
// Get a toolbar button image from the ImageEn resources
Bitmap.LoadFromResource( HInstance, ITBRES_PROMPTTOSAVE_24 , RT_RCDATA, ioPNG );
if not isEnabled then
Bitmap.ConvertToGray();
// Get a bright red image
Bitmap.LoadFromResource( HInstance, ITBRES_COLOR_PALETTE_24, RT_RCDATA, ioPNG );
with TImageEnProc.CreateFromBitmap( Bitmap ) do
begin
HSVvar( 150, 10, 30 );
Free;
end;