How to add a badge in a dragging image in Windows? - windows

I'd like to add a badge in a dragging image in Windows like a dragging image from Explorer as shown in the picture. I mean the blue badge showing dragging files count.
File dragging from Explorer
I can make a dragging image using IDragSourceHelper but can't find any information on how to add a badge like what Explorer does.
Thank you.

Related

How to make window content transparent just like [phw/peek]

I am new to swift and xcode, I want create a macos app just like peek (a screen GIF recorder).
Now I created a window with toolbar follow the tutorials. My question is, how to make the content area of the window be transparent, and ignore mouse event pass to the bottom of the window.
Thank you ^_^ !
This is the screenshot of peek:

Safari favorites icons are displayed as transparent images even though they're not

I was trying to change a Safari favorites icon that gets displayed when opening a new tab. I changed some icons by changing the default images in the "/Users/MyUsername/Library/Safari/Touch Icons Cache/" Images folder. Most of the replaced icons are displayed perfectly but some appeared (I think) to be identified by Safari as a transparent background icon and proceeds to display it as oneā€”even though it's not.
This is the icon that Safari displayed correctly
This is the icon that Safari displayed incorrectly
Any idea how I can get Safari to display it as it should?
I've followed the criteria of the icons such as having a .png extension and being 144x144.
This is the info for the image used for the CNN icon
This is the info for the image used for the Triplebyte icon
What I've tried:
Reducing the size of the image
Changing the color profile
Is this issue actually related to the website I'm trying to get my icon for or an issue with the image file?
I tried using another image that was used as an icon by another site. Safari also displayed it as a transparent background image. It turned out that the image file wasn't the issue.
The solution to this is to just use an image that actually has a transparent background.

Xcode: How to show Preview in separate window instead of showing in Assistant editor?

When I'm making edits in storyboard I know how to show the preview in the assistant editor (as shown in the below screen shot).
How to show the preview in a separate window, so that I'll be able to drag it to my the screen attached to my computer?
UPDATE: Adding few more images to clarify what is the "Storyboard Preview":
In XCode 7 I managed to do this by selecting File -> New window, then adding a preview-part teh same way you illustrate above. I then drag it to my secondary screen resize everything to give a good preview of the screen sizes I want.

created button go out of preview pane border using resource editor

I have come across a problem when i created a buttons at preview pane using resource editor (visual c++). The problem is when i try to move the width of preview pane the button don't adjust themselves to be in preview pane according to the movement of the preview pane width. (i mean when i reduce the width of preview pane they go outside the border of the preview pane in right side)..
Could any one please give me the solution to come out of this problem ??? I also want to tell you that i already have one photo in the dialog box which already adjust itself to be in preview pane according to the moving preview pane (I mean photo don't create any problem just the buttons i created go outside the border of the preview pane) ..may be because for the photo we have SS_CENTERIMAGE which keeps the image in center but nothing like this for buttons
Please give me the solution i am doing in Visual C++ using createdialog using resource editor..
When a window size is changed that window receives the WM_SIZE message, with the new size. Handle that message in your preview pane, calculate new button positions, and use MoveWindow or SetWindowPos to move the buttons.

How create transparent window in mac?

I am new to MAC development. I want to create a window with transparent. If i put the image or any control, the control only should display and window should not display and that window move horizontally or vertically within screen.
See Apple's sample project RoundTransparentWindow.

Resources