In spite of me asking them sincerely, they just either do not know how to explain or they do not want to look stupid, so they are not honest enough. Where I had troubles trying to see what my users are doing differently that makes some weird errors to throw up. The conventional method would be to use (ALT +)Print Scrn, Open MS Paint, CTRL + V, Then Save it by giving it a name, then get back to what you were doing. I have been put in situations Am I doing a decent job at replying & supplying code on here? I want to be sure that I'm a welcome addition, and that I'm abiding by the rules.There have been times, when you need to perform a Print Screen. I hope that being snowed in is a good thing. If you need more code, please say so, and I can supply my entire menu building code (which I've thought of supplying in a FAQ in the near future). Guidance would be awesome, and I can dig up the articles on VBnet™ that referenced that API extensively. However, I've read about BitBlt, but not used it in practice. I know that it's burned me in the past before. Public Sub Cop圜ustomFace(strCaption As String)Īfter reading your idea using BitBlt, that might be the best way to perform the whole thing, and then I can avoid the dreaded dependence on Microsoft doing what it should. So, after much tinkering & cursing (well, not that much), I'm thinking that I should just scrap the idea, or start storing the ICO's as well.ĭoes that help explain what I'm trying to do? I know it's hopeful, and probably too optimistic. However, when I use that method to place the graphic on the clipboard for the API process in the article. CopyFace method of CommandBars for Office to place the graphic on the clipboard, and then the. Most of my code (please let me know if you'd like examples), involves using the. So, being the uber-geek that I am, I thought it would be ingenious to combine the two. Well, I found a solution in short order on The Access Web with the article: API: Put a custom icon in the form's caption barĪnd, it works great! But, it would mean that not only do I need to have the custom icons in my utility bar (shown in the graphic), but also as a set of ICO files. All-in-all, the system works great! So, I got this hare-brained idea that it would be nice to replace the boring "form" icon in the title bar of Access forms with the same icon that the user clicks. I'll include my toolbar graphic from Access to help clarify a bit visually.īasically, I use a ton of custom icons on a toolbar that loads dynamically when a user logs into my database. CopyFace method in Office to apply the icon to the clipboard.Īny direction would be appreciated, and I have plenty of code that I've tried, but none that even seems to come close. Is there something that I could be missing, that is causing this issue?įYI, I'm using a custom toolbar in Access, and the included. Unfortunately, the GetClipboardData() API is failing, even though I've called the OpenClipboard() API. My next step should entail the GetClipboardData() API to gather the bitmap(?) from the clipboard, and then I can apply that into my form icon. Instead, I have the images loaded into Access, and I'm performing a copy call to the clipboard. That's great, but I'm looking to perform this process for upwards of 30 forms, and having a separate ICO file for each icon could be a bit tedious. The basic process of doing this is working perfectly, but it requires using the LoadImage API from an ICO file. I'm programming in Access 97, but I'm attempting to use some special API calls to apply a custom icon to the form's title bar. In the event that this cannot be resolved, which is highly likely due to it's complexity, I'll gladly mark it as "resolved", and move on. To that end, I figured it would be good to get it back to the top of the list. I had posted this ages ago, and finally, I've found time to devote to finding (if possible), an answer to this question.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |