如何在利用UG NX中的图标ICON

在UG二次开发中,有时需要用到ug本身自带的一些图标,这样可以和ug风格保持一致,也免去了自己做图标的繁琐工作。
 
1.ug中的图标可以从他的菜单文件(*.menu),工具条文件(*.tbr),对话框文件(*.dlg)中得到图标的文件名,然后在制作
自己的UI STYLER DIALOG时,直接写入文件名就可以了。
 
2.另外,一些dialog item其内容包含了几个图标,比如Tool Palette,这时需要用到ubm文件,ubm文件实际就是一组bmp文件
的简单顺序叠加,在记事本中写入内容如下,另存为palette.ubm就可以了。
arrowright.bmp
arrowleft.bmp
arrowdown.bmp
也有一些ubm本身就是ug自带的,如datum_point_dir.ubm,其中往往只有一个图标元素,而不是bmp组合成的
 
3.这里列出部分常见的bmp图标及ubm,bmp也可以不不加后缀。
arrowright.bmp
arrowleft.bmp
arrowdown
arrowup
plus.bmp
minus.bmp
fileopen.bmp
ant_properties.bmp
comp_new.bmp
csys_wcs.bmp
linkedbody.bmp
topointdialog
select_face1
point_on_face1
select_face2
point_on_face2
infervector
filenew
redefine
tune
delete
check
sandbox
morphing
vcr_goto_start
vcr_previous
vcr_next
vcr_goto_end
 
datum_location_type.ubm
hole_slot_vector_type.ubm
minmax_meas.ubm
weld_spot_sel.ubm
hem_vector_sel.ubm
hem_vector_dir.ubm
datum_point_sel.ubm
datum_point_dir.ubm
ew_drafting_step.ubm
ew_foot_joint_method.ubm

猜你喜欢

转载自kevinblog.iteye.com/blog/1270686