![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
On Sun, 5 Feb 2012 21:22:39 -0700, "Albert D. Kallal" How are you loading the icons. Like this: !-- * * * * * *<button id="btnToday" size="large" label="Today" image="table-edit.bmp" onAction="OnOpenFormNewRec" tag="frmToday"/ -- Good to know, but I am just using the image property. *Axialis gave me a break on the cost of their icon workshop program that will do batch changes. -paul |
#12
| |||
| |||
|
|
On Feb 7, 5:46*pm, PW <emailaddyin... (AT) ifIremember (DOT) com> wrote: On Sun, 5 Feb 2012 21:22:39 -0700, "Albert D. Kallal" How are you loading the icons. Like this: !-- * * * * * *<button id="btnToday" size="large" label="Today" image="table-edit.bmp" onAction="OnOpenFormNewRec" tag="frmToday"/ -- Good to know, but I am just using the image property. *Axialis gave me a break on the cost of their icon workshop program that will do batch changes. -paul right but show your code for the image call back - you'll see it uses loadpicture() Albert k |
#13
| |||
| |||
|
|
On Wed, 8 Feb 2012 02:00:17 -0800 (PST), "Albert D. Kallal" kallal (AT) msn (DOT) com> wrote: On Feb 7, 5:46*pm, PW <emailaddyin... (AT) ifIremember (DOT) com> wrote: On Sun, 5 Feb 2012 21:22:39 -0700, "Albert D. Kallal" How are you loading the icons. Like this: !-- * * * * * *<button id="btnToday" size="large" label="Today" image="table-edit.bmp" onAction="OnOpenFormNewRec" tag="frmToday"/ -- Good to know, but I am just using the image property. *Axialis gave me a break on the cost of their icon workshop program that will do batch changes. -paul right but show your code for the image call back - you'll see it uses loadpicture() Albert k Yep. Sorry about that! Where do I get loadpictureGDI from? -paulw |
#14
| |||
| |||
|
|
I found it in the sample iconinribbon.zip on the page you gave me a link to, but I am having trouble getting it to work. |
#15
| |||
| |||
|
|
"PW" wrote in message news:btc5j79uces5aj0dub7clcr4o7rnev07hj (AT) 4ax (DOT) com... I found it in the sample iconinribbon.zip on the page you gave me a link to, but I am having trouble getting it to work. Excellent. My code is this: Sub CallbackLoadImage(strImage As String, _ ByRef image) Dim strImagePath As String ' Callback loadImage If Left(strImage, 4) = "mso." Then strImage = Mid(strImage, 5) image = strImage Else strImagePath = CurrentProject.Path & "\ribbon\" & strImage Set image = LoadPictureGDIP(strImagePath) 'Set image = LoadPictureGDIP(strImagePath) ' old built in End If End Sub So the routines were just copy + lifted from the ribbon example. That suggests that basGDI code module is required. Since the samples work, then the use of that LoadPictureGDIP should also work. |
#16
| |||
| |||
|
|
Looking good Albert, but Where is this located? LoadPictureGDIP(strImagePath) I don't have it here. Access no can find it. |
#17
| |||
| |||
|
|
"PW" wrote in message news:0og6j75g1atsoemq8it6t94llk06s151c0 (AT) 4ax (DOT) com... Looking good Albert, but Where is this located? LoadPictureGDIP(strImagePath) I don't have it here. Access no can find it. From any example from the ribbon site I linked to quite sure has this code. So from the access ribbon site, there are 31 examples on this page: http://www.accessribbon.de/en/index.php?Downloads Quite sure the sample code module is included in each example? So you have to include (lift) from one of those examples the code module called basGDI I also have a copy of that code module in my ribbon class here: http://www.kallal.ca/Ribbon/ribbon.htm As noted, that load routine has support for: bmp, gif, jpe, jpg, tif, png, wmf, emf, ico I not ever looked at or bothering to even see what the code does. I simply used it from the access ribbon site since anything else I used to load icons looked like crap. In other words, I never spent anytime looking at this issue - just used what that web site suggested... |
#18
| |||
| |||
|
|
"PW" wrote in message news:0og6j75g1atsoemq8it6t94llk06s151c0 (AT) 4ax (DOT) com... Looking good Albert, but Where is this located? LoadPictureGDIP(strImagePath) I don't have it here. Access no can find it. From any example from the ribbon site I linked to quite sure has this code. So from the access ribbon site, there are 31 examples on this page: http://www.accessribbon.de/en/index.php?Downloads Quite sure the sample code module is included in each example? So you have to include (lift) from one of those examples the code module called basGDI I also have a copy of that code module in my ribbon class here: http://www.kallal.ca/Ribbon/ribbon.htm As noted, that load routine has support for: bmp, gif, jpe, jpg, tif, png, wmf, emf, ico I not ever looked at or bothering to even see what the code does. I simply used it from the access ribbon site since anything else I used to load icons looked like crap. In other words, I never spent anytime looking at this issue - just used what that web site suggested... |
#19
| |||
| |||
|
|
In other words, I never spent anytime looking at this issue - just used what that web site suggested... Howeverif I use the original LoadPicture function, it somehow transposes the black backgrounds and makes them appear transparent. |
|
Now with LoadPictureGDIP I can use other file formats like the transparent .png icons that I have. They appear transparent like they do on disk. But not any crisper. So at least I will not have to go through a conversion process like I did with the .ico->.bmp icons. Thanks again, |
#20
| |||
| |||
|
|
"PW" wrote in message news:q258j79glslvkbsv20h0g8gvc61o5l6psq (AT) 4ax (DOT) com... In other words, I never spent anytime looking at this issue - just used what that web site suggested... Howeverif I use the original LoadPicture function, it somehow transposes the black backgrounds and makes them appear transparent. Gee, thanks for sharing the above. I had real bad luck with Loadpicture so I just started using something that worked and that was quite much the end of it for me. Now with LoadPictureGDIP I can use other file formats like the transparent .png icons that I have. They appear transparent like they do on disk. But not any crisper. So at least I will not have to go through a conversion process like I did with the .ico->.bmp icons. Thanks again, Excellent, the above is also my experience. I also often use a good paint program with some "re-sizing" options if the image in question is not the right size (a good paint program will have better options for re-sizing then letting the system do it for you). As noted, I wrote some routines and right now I really don't even read xml - but just cut + paste from one ribbon I made and this I find faster then even building menu bars like how we had to do in the older system. |
![]() |
| Thread Tools | |
| Display Modes | |
| |