ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Toolbar icons

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
pierrotsc Posted - Sep 29 2020 : 20:13:51
Is there a way to edit the image file that contains the default toolbar icon with some of my own ?
8   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Oct 13 2020 : 18:47:48
Great idea. Sounds like a plan
Thank you
xequte Posted - Oct 13 2020 : 18:29:52
Hi

Why not create an image list in the same order as below. You just need to offset them by 2000 when assigning in AddButtonImage.

Otherwise create a Res file with the indexes below.

Nigel
Xequte Software
www.imageen.com
pierrotsc Posted - Oct 13 2020 : 07:57:28
Thanks Nigel, now i am even more confused. if i add an imagelist and assign it to ietoolbar, i would like to find out the imageindex for each button. these values are too high. it looks like imageindex 17 may be for open file. i guess i am not doing it the right way.
in the command ImageList1.GetBitmap(ButtonImageID - ITBRES_MIN_INDEX, Bitmap); is the bitmap loaded in an imageenview ? or is it in a resource file like i load my cursors?
best
xequte Posted - Oct 13 2020 : 02:16:40
Hi Pierre

  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_ERASERTOOL_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_GROUP_24                      = 2056;
  ITBRES_UNGROUP_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;


Nigel
Xequte Software
www.imageen.com
pierrotsc Posted - Oct 12 2020 : 17:38:14
thanks nigel. i do not have iextoolbars.pas. only the dcu. could you give me a snapshot of the ITBRES_* consts ?

Best
Pierre
xequte Posted - Oct 06 2020 : 16:51:07
Hi Pierre

Please the ITBRES_* consts in iexToolbars.pas

Example:


// Get button image from my own image list
procedure TMainForm.AddButtonImage(Sender: TObject; ButtonImageID: Integer; var Bitmap: TIEBitmap);
begin
  ImageList1.GetBitmap(ButtonImageID - ITBRES_MIN_INDEX, Bitmap);
end;


Nigel
Xequte Software
www.imageen.com
pierrotsc Posted - Sep 30 2020 : 17:24:15
Really not sure on how to use that though. I guess it would be easier to assign my own imagelist. How do I find out the imageindex for each icon of the toolbar? Looks like open is number 17.
Thanks
Pierre
xequte Posted - Sep 30 2020 : 03:05:24
Hi

You and edit/replace the images in the OnAddToolbarButtonImage event. Ensure you use a fast method (e.g. assigning from an imagelist).

https://www.imageen.com/help/TIEImageEnGlobalSettings.OnAddToolbarButtonImage.html

Nigel
Xequte Software
www.imageen.com