icons

Sliding icon next to dynamic text with ellipsis

谁都会走 提交于 2019-12-11 03:57:39
问题 I have a list of items and to the end of some items I want to add an icon (or several of them - it's dynamic). Items' container has a fixed width and if item's text size is too big - I'd like to add ellipsis. So the problem is that icon is added next to text and if text is long - the icon moves off the container. The template for all items has to be the same. Note: not all items have icons and some icons may have more than one icon. Note2: javascript solution is not applicable, want to make

Add icons to the tabs of a Firemonkey TTabControl

≯℡__Kan透↙ 提交于 2019-12-11 03:45:19
问题 To add an icon to a TButton in Firemonkey one can add a TImage to the button. But how to add an icon to a tab of a TTabControl? Is this possible? 回答1: At the very least you'll need to modify the style (to add the image) and probably create a custom control descended from TTabControl to set the image data. 来源: https://stackoverflow.com/questions/15550494/add-icons-to-the-tabs-of-a-firemonkey-ttabcontrol

Change exe icon based on define C#

☆樱花仙子☆ 提交于 2019-12-11 03:44:03
问题 I am creating a project for two different people and I would like to change the icon via define. For example: #if customer1 //add code to select c:\path to resources\myimage1.ico for exe icon #else //add code to select c:\path to resources\myimage2.ico for exe icon #endif I know you can manually select which icon you want here: https://msdn.microsoft.com/en-us/library/339stzf7.aspx But the define way make sense for us using git so we don't have to keep reuploading someone else's image. We can

How to add an icon into iphone/ipod status bar?

大憨熊 提交于 2019-12-11 03:38:53
问题 Does Apple not allow developers to add an icon into a status bar? I followed code from a book. The code is simple: @interface UIApplication (extended) - (void) addStatusBarImageNamed:(NSString *)aName; - (void) removeStatusBarImageNamed:(NSString *)aName; @end - (void)performAction{ if (xxx) { [[UIApplication sharedApplication]addStatusBarImageNamed:@"Default_EN.png"]; } else { [[UIApplication sharedApplication]addStatusBarImageNamed:@"Default_EC.png"]; } } But it gives the following feedback

how to develop an add-in for visio

无人久伴 提交于 2019-12-11 03:38:53
问题 I want to create an add-in to visio so that I can draw BPMN diagrams (Business Process Modeling Notation). A similar work is available here: http://www.interfacing.com/free-visio-bpmn-modeler. But I want to create my own icons(notations) and make it domain specific. Please help me? How can I do this? What languages do I have to use? 回答1: You can develop add-ins for Visio using the Visio SDK. There are several versions, of which the 2010 SDK is the most recent. It contains samples written in C

Is it possible to use the “Hamburger icon” animation from Android in another button?

女生的网名这么多〃 提交于 2019-12-11 03:33:40
问题 I would like to have two Hamburger icon with its animation in two different positions, one button in the usually place (at the left in my toolbar) and other in a button placed inside the Navigation Drawer. Looking the Android documentation I couldn't see anything talking about using the hamburguer icon in other position more than the toolbar, so I would like to know if there is an easy way to implement or copy the animation to other position/button without having to do my own animation. Thank

Putting icon in a textbox in XAML (WPF)

佐手、 提交于 2019-12-11 03:18:55
问题 I want to put a small icon (a png file) in to the corner of a textbox. A sketch of what I mean is at http://dosketch.com/view.php?k=mIPeHLSBLx0e2YpoVpYO So far I've got (in my main xaml file) <TextBox Style="{StaticResource IconTextBox"} ... and in my resources area: <Style x:Key="IconTextBox" TargetType="TextBox"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="TextBox"> <Image Source="icon.png" /> </ControlTemplate> </Setter.Value> </Setter> </Style> Obviously this

Is there a method to change a MIDLet icon once it's downloaded?

假如想象 提交于 2019-12-11 03:18:46
问题 Given that there are many sizes and color depths for different phones (even for the same manufacturer), i would like to have one application for all of them and then, download a proper icon for the phone de app is downloaded into. Is there a way to change the MIDLet icon once the application is downloaded? 回答1: As far as I know there is no way of doing this. You can however force the user to upgrade an app and change the icon then. This can be done in a more user friendly manner without loss

How to change default picture application to my own picture?

吃可爱长大的小学妹 提交于 2019-12-11 02:38:20
问题 When I run my application, it's automatically create a droid-bot picture on surface of application. So, I want to change a picture, what should I do? 回答1: (1) create a PNG image (say icon.png) and save it in the folder: res/drawable (2) Then, in AndroidManifest.xml of your application add the icon tag in your application: android:icon=”@drawable/icon” e.g. <application android:name ="yourAppMgr" android:icon="@drawable/icon" //... > 回答2: AFAIK you can't change the icon of installed

How to completely remove an icon from JDialog?

喜你入骨 提交于 2019-12-11 02:29:25
问题 I am creating a dialog for showing a progress of files' copying. What I want to do is to completely remove dialog's icon image. I created such kind of dialogs before providing an application's instance of FrameView as an argument for JDialog 's constructor like this: public class MyAppView extends FrameView { // ... @Action public void showOptionsDialog() { // Creating modal options' dialog JDialog optionsDialog = new JDialog(this, true); // ... } } So, as I can see, I need a parent component