简体   繁体   English

在 WebDynpro ABAP 中更改按钮高度

[英]Change button height in WebDynpro ABAP

For a touchscreen I need to increase the height of my buttons in a ABAP WebDynpro Application.对于触摸屏,我需要增加 ABAP WebDynpro 应用程序中按钮的高度。 Because there's no attribute for the height I read that it should be possible to add an image to the MIME Repository and then add this image to the button.因为我读到的高度没有属性,所以应该可以将图像添加到 MIME 存储库,然后将此图像添加到按钮。 I also read that it might be possible to create a own theme with a .css file.我还读到可以使用 .css 文件创建自己的主题。

The last one sounds a little bit better to me.最后一个对我来说听起来好一点。 Does anyone know how I can create such a theme and apply it to my application?有谁知道我如何创建这样的主题并将其应用于我的应用程序?

Thanks for your help!谢谢你的帮助!

The simpliest way of resizing height is using MIME image, which I want to describe here:调整高度的最简单方法是使用 MIME 图像,我想在这里描述一下:

  1. Create your image with exactly those height that you need.以您需要的高度创建您的图像。 The image could be opaque, transparent or whatever.图像可以是不透明的、透明的或其他任何形式。 Image format doesn't matter, as most common formats (jpg, gif, png) are supported.图像格式无关紧要,因为支持大多数常见格式(jpg、gif、png)。
  2. Import it to your Webdyn Pro component like this: right click on component in repository tree, then像这样将其导入您的 Webdyn Pro 组件:右键单击存储库树中的组件,然后
    -> Create -> MIME object -> Import -> 创建 -> MIME 对象 -> 导入
  3. After image was successfully imported, just select it using imageSource property of button element, where you can find it on Component images tab.图像导入成功后,只需使用按钮元素的imageSource属性选择它,您可以在组件图像选项卡上找到它。

Voilá!瞧! The button adopted the dimensions of the image.按钮采用了图像的尺寸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM