transparent

C# Moving PictureBox over other PictureBoxes with transparent background

ぃ、小莉子 提交于 2019-12-25 07:27:31
问题 My goal is to make checkers game , where user can move checkers on the board. The board I have made is from DataGridView class . Right now what am i doing is creating picture boxes for each checker with transparent background and when the user moves the selected checker i am setting him BringToFront. The problem is that the "transparent" effect is actually relative to parent control, and the parent of all checkers is the DataGridView. So the result is when there is 2 checkers overlapping

delphi transparent background component

自古美人都是妖i 提交于 2019-12-25 06:57:58
问题 Quick question in regard to Delphi XE. I'm trying to make a customized circle-shape component that has transparent background, so that when added on a form, the component can overlap other components. I've tried Brush.Style:=bsTransparent; or ellipse() and more on... but still couldn't find a way to make the edge area transparent. Is there anyway I can make the edge area of the component transparent without using other lib or api? 回答1: Well here's a quick answer, that should get you going.

Masked bitmap on canvas with transparent activity

醉酒当歌 提交于 2019-12-25 03:42:56
问题 I implemented custom ShowCase for activity I am trying to draw on canvas mask: http://i.stack.imgur.com/u23kQ.png Following this code: mCanvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR); // draw solid background mCanvas.drawColor(mMaskColour); // Prepare eraser Paint if needed if (mEraser == null) { mEraser = new Paint(); mEraser.setColor(0xFFFFFFFF); mEraser.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); mEraser.setFlags(Paint.ANTI_ALIAS_FLAG); } // draw (erase) shape /

Custom ListBox with transparent backcolor issue

旧时模样 提交于 2019-12-25 01:55:18
问题 I created a custom multiline ListBox control inherited from ListBox. In the form, the ListBox position is above a WPF rounded and transparent panel hosted in an ElementHost. Now, what I want, is that ListBox backcolor to be transparent. Obviously, this is not allowed in Winforms, a ListBox cant be transparent. Then, I have tried some things, but there is always an issue. What I want to achieve is this: As you can see, this works perfectly, but actually I´m having two problems. The first I get

Transparent AWT component, possible?

折月煮酒 提交于 2019-12-24 21:13:39
问题 I'm in the need of a translucent AWT component/container to be placed on top of other components to receive the mouse events. The problem here is to create a translucent component. My investigation so far showed that Swing has the possiblity to do setOpaque(false) on e.g. a JPanel. Is there something similiar for AWT? The idea is to make a ScrollPane scrollable by simply clicking somewhere and moving the mouse around. Thats why I need a transparent component to place it above all other

ANDROID ANDENGINE — Set Scene background as trasparent

假装没事ソ 提交于 2019-12-24 15:27:01
问题 ­I'm starting to use AndEngine in my app. I've used an xml to define the base style of the app. I've defined a scene in which I'll have some draggable sprites. I've imported correctly the xml but the scene appears on top of that with a black background that hides the xml graphics. I need to set the scene with transparent background. How can i do that? 回答1: Actually you can do that. It was at least working some time ago with AndEngine running on top of a Camera preview. It has really been a

Delphi TImage32 - how to make the component invisible if no picture is loaded?

烈酒焚心 提交于 2019-12-24 13:47:12
问题 If you place a normal TImage component on a form or panel over other components >> it is invisible at runtime as long no picture is loaded. So other things under it are visible. But TImage32 is painting a gray box by default. How do I make the it invisible while leaving the setting: .Visible:=True; if no picture is loaded? (I still need events working on the component, like OnClick...) Yes, this is a duplicate question, BUT the solution-link from the previous topic is dead. :( 回答1: While I

How to make a “True Transparent” window to cursor, preferably on a pure QML? (Qt 5.7)

蹲街弑〆低调 提交于 2019-12-24 05:45:23
问题 "True Transparency" explanation (image, 76kb). On that image ApplicationWindow have a visually transparent layer. But in fact, cursor does not go to the window behind ApplicationWindow (in this case - QT Creator). "True Transparency" is achieved if add (uncomment) "Qt.WindowTransparentForInput" flag, but the buttons are no longer available (it's are obvious, I know). I have tried a various flags with similar meanings (from the documentation), but did not find a working combination - cursor

transparent border in menu with css

走远了吗. 提交于 2019-12-24 01:43:33
问题 I use a menu like below. How do I change the bottom-border from white to transparent so that the border appears as a transparent border. Now, when I set the border transparent, the entire menu is orange (background color of the menu): ul#nav, ul#nav ul { margin: 0; padding: 0; list-style: none; } ul#nav li { position: relative; float: left; width: 118px; } #nav li ul { position: absolute; left: 0; top: auto; margin-left: -999em; border-top: 11px transparent; } #nav li li { width: 135px; z

VB.NET Progress bar percentage

落爺英雄遲暮 提交于 2019-12-24 00:56:21
问题 I created a progress bar which works perfectly. I recently added percentages but I'd like to display the label on top of the progress bar. Like so: The only problem as you can see is that the background is not transparent. Dispite having: lblPercentage.BackColor = Color.Transparent on form load... Is there something that can be done for this? 回答1: The Transparent BackColor actually works. The problem is that the label gets its BackColor from the form, since the form is its Parent. Therefore