The Visual compilers and GCC use .rc files to add resources to your executable. One can specify a resource type called ICON, to add an Icon to your executable. If I specify multiple ICONs in my .rc files, which one is chosen to be displayed as a thumbnail in the Windows explorer and which one is chosen to be displayed as the window icon, when the programm starts?
I conducted a few tests and it seems, that it allways chooses the same one to be displayed in the Windows Explorer as a thumbnail, but perhaps this is some caching done by windows. The Properties window from the Windows Explorer allways shows a different icon, perhaps one with the smallest size. The icon beeing displayed, when the program is executed differes (it might be the one, with the lowest value, described by nameID in the docs).
The official Windows docs do not answer this question: https://learn.microsoft.com/en-us/windows/win32/menurc/icon-resource. I don't think there are any docs about this from gcc/windres specifically.
By the way, even though the docs clearly say...
Defines a bitmap that defines the shape of the icon to be used for a given application or an animated icon.
...using a bmp file (exported by Windows Paint) is not accepted as an icon by windres (windres: icon file 'bmpicon.bmp' does not contain icon data).
I use gcc, as well as windres to compile the program, but I hope it wouldn't change the outcome, if I used the Visual compilers from Microsoft. In case it was still unclear: Windows is the operating system used.
I am unsure, if this is the correct forum to post such a question, but in case it isn't, I apologize.
Thanks in Advance for sharing hard to find information.
Related
I have increased my font-size in processing IDE, but when autocomplete suggestion shows up , the font size is a bit small and I don't find a way to increase it.
Any setting I can change to make autocomplete font larger ?
As far as I can tell, based on the source code the code completion list has each item's font hardcoded to sans size 12 at the moment:
setFont(Toolkit.getSansFont(12, Font.PLAIN));
Currently there is no option in the Processing Preferences panel to change the
code completion text font size.
You could request this as a feature and hope it will be implemented at some point.
If you need this urgently you might need to clone the repo, implement the change yourself and recompile the editor: bonus points if you open a pull request so it becomes a permanent feature! :🌟
Another pragmatic option might be to use a different editor other than the Processing IDE. (This can be a Java IDE such as Eclipse/NetBeans/IntelliJ/etc. or an editor such as SublimeText/VSCode/Atom etc. in conjuction with the processing-java command line utility. Some of these editors might already have community contributed plugins)
I've just installed Ride editor on my Mac and I'm new to this. My python version is 3.9.4 on BigSur 11.4 and I'm using the dark mode theme.
I have trouble with the colors because I can barely see anything, only when something is selected. I've tried to change colors in the preferences but no luck.
I can't see the names of my files only when they are selected.
My project structure
I can't even write simple text case because I can't see what I am typing because of that yellow background and characters are white. Only after enter or when it is selected you can see what is in the field.
Test case fields
I can't make dictionary nor the list variables. I can only define them and add them values directly in the script because that window with the fields on the left is to small and I can't stretch it.
Dictionary Variables
If someone has facing the same thing or has an idea or solution at least for part of it would be great because I am out of the ideas. Thanks.
If you installed latest development from master (you probably did, so you can use with Python 3.9), you have options to change colors (and save and restore), from Tools->Preferences->General and for the Grid, Editor and Run tabs.
It would be nice to have those color settings files shared with the community. Please go to the project page and create an issue with those settings, or communicate on our Slack.
As mentioned in this answer, one can set fallback cursors, if the browser doesn't support e. g. cursor:grab;. My problem now is to get these images. A local search on my drive for ".cur" just gave me the system cursors, where grab.cur and grabbing.cur are not present. A web search also wasn't successfull.
How can I get the browser cursor images?
Given cursors are usually provided by the OS (I think?) there are likely a few different variations for each operating system.
Your best bet is finding a re-created icon set for mac OS, Windows or Linux that includes the open and closed hand icons and creating your own .cur file, of which there are plenty of online conversion tools for GIF or PNG to CUR.
I found this repo on Github that provides the mac OS ones (or a pretty decent reproduction of them).
Remember that if your CSS cursor fallback ends up being used, it's likely the user has not encountered it often and they probably wont compare it to anything else in their head. The problem is your fallback cursor icon should ideally match the icon style as their system so they're not like "Huh that icon is weird."
I'm not sure if this is a bug in Maya or if its an issue on my end- any insight would be appreciated.
I've got a button on a custom shelf. No issues there, it launches the script when clicked, has an annotation and a label, and generally works fine. However, the icon I've selected for it won't appear on the shelf. Instead, I get this:
Oddly enough, even after restarting Maya, the icon is visible in the Shelf Editor window:
So Maya is fully aware of the icon's path (it's a built-in Maya icon after-all) and is capable of displaying it- it just doesn't want to display it on the shelf.
To make matters even crazier, the custom shelf is being created and filled via a plugin that my company uses. As the tech artist, its my job to maintain this shelf, and so the plugin uses a shelf .mel file located in a network drive location, so that the tool can propagate the shelf to all the users on the network. On EVERY other users' machines, the icons are visible. It's only on my machine that they are not. Because of this, I feel that the plugin is not causing the issue. Naturally, all factors need to be considered, so I'm open to the possibility that it could be a problem with the plugin, but it seems odd that my machine would be singled out to have the icons not load on.
The final crazy thing: If I launch Maya the regular way rather than using my company's custom Maya launcher, the icons will not appear 50% of the time, but WILL appear the other 50% of the time. The same thing happens using the custom launcher. Sometimes, half of the buttons have their icons and half don't. It seems totally arbitrary whether Maya loads them or not. But every single time, the icons are visible in the Shelf Editor window.
I guess my question is: What could cause the icons to be visible in the Shelf Editor, but not on the shelf?
After a fair bit of experimentation, I've discovered that Maya does not like using some of its native icons as shelf icons.
I was able to fix the issue by identifying icons that will load every time, and using those.
If you have a particular Maya icon you really like, I recommend locating its file path, copying the image, and putting it somewhere outside of the Maya directory. For me, putting some of the images on our network drive did the trick, and all users were able to see the icons.
Unfortunately I wasn't able to determine why Maya wouldn't allow certain images to be visible on the shelf, and only on certain machines at that. I suspect it has something to do with the directory in which Maya is installed, and the Maya environment paths. But if you ever run into this issue, there are at least the above workarounds.
I haven't been able to find what these Xcode icons mean. Some you can deduce (cup icon is cocoa, person icon is your code) but other's are more mysterious.
UPDATE 1:
I was able to find the icon files under:
.../Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/Resources
There's a total of 13 different icons and they are all clearly labeled. In the screenshot that I posted we have:
Person icon is User
Mug icon is AppKit (or UIKit)
Briefcase icon is Frameworks
Gear icon is System
Morse code icon is Foundation
Spider web looking icon is Web
Update 2:
A while back I wrote a blog post that's easier to read:
http://jlmendezbonini.com/2013/03/27/Xcode-4-debugger-icons.html
Update 3:
Looks like Apple finally documented it in the Process View Display
section. Here's a link to the image:
Here's a quick screen shot of the folder mentioned. The names explain the meaning of each icon. This is from xcode 5 beta 2.
The icon means, in general, assembly for which you don't have debugging symbols. Not your code (the person icon), not public, top-level Cocoa code (the mug), not Framework/library code (the suitcase) but plain old assembly.
I don't think this is documented anywhere (I haven't seen it) but it seems to hold true for all the tests I've done.