Page 3 of 3

Posted: Fri Dec 29, 2006 8:27 pm
by Fluid Byte
W000t!? :!:

The Peek / Poke commands have format flags? Didn't know that! :roll:

Thanks for pointing this out ts-soft!

PS: I should read the version changes from time to time damn it...

Posted: Fri Dec 29, 2006 8:37 pm
by Fred
Just a side note: the Space(12) is not enough for an unicode string of 6 length; because of the double null char at the end (here you have 12 + 1, instead of 12 + 2). Use Space(13) instead.

Posted: Sat Dec 30, 2006 5:51 am
by Kaeru Gaman
indeed!

Code: Select all

( Len(string) + 1 ) * SizeOf(Character)
...the "+1" for the terminating zero should be within the multiplication...

(sorry for stating redundant information)

Posted: Tue Jan 02, 2007 6:17 pm
by Fluid Byte
Any new progress netmaestro?

I tried very hard the last days to acomplish this but it seems to be impossible. :evil:

Posted: Tue Jan 02, 2007 6:32 pm
by netmaestro
Yes, I have a version that is working for XP. It looks at the current theme and creates a button that fits in, then applies a programmer-specified graphic to it. From there the button is handled with code very similar to what I've already posted. But it won't work for Vista and when I have that solved I'll post the lib with the source, either in Tips & Tricks or Announcements.

Posted: Tue Jan 02, 2007 7:23 pm
by Fluid Byte
netmaestro wrote:Yes, I have a version that is working for XP. It looks at the current theme and creates a button that fits in, then applies a programmer-specified graphic to it. From there the button is handled with code very similar to what I've already posted. But it won't work for Vista and when I have that solved I'll post the lib with the source, either in Tips & Tricks or Announcements.
Sounds very promising!

I'm very interested in how you have done it since I don't seem to be capable of doing it...

Posted: Tue Jan 02, 2007 7:28 pm
by Trond
You can open the .msttyles file as a dll and use findresource_() or something on it.

Posted: Tue Jan 02, 2007 10:52 pm
by Fluid Byte
You can open the .msttyles file as a dll and use findresource_() or something on it.
Been there, done that. I extract the raw image from a resource named "*_CAPTIONBUTTON_BMP" and then try to draw it but I have clipping problems.

Posted: Tue Jan 15, 2008 8:30 pm
by Fluid Byte
Well, it's been some time again...

Has anyone found a solution yet?

Posted: Thu Jan 17, 2008 2:45 pm
by Fluid Byte
netmaestro wrote:Yes, I have a version that is working for XP. It looks at the current theme and creates a button that fits in, then applies a programmer-specified graphic to it.
Any chance we can take a look it? At least it would be nice if you could explain how you done it.

Posted: Thu Jan 17, 2008 7:05 pm
by netmaestro
Sorry, that particular code and the project it lives in aren't for release here.

Posted: Thu Jan 17, 2008 7:13 pm
by Fluid Byte
Sorry to hear that but I can understand it. One last question though. Have you done it all alone or is there some kind of reference you could point me to?