Search found 6 matches

by andrasch
Wed May 04, 2011 9:24 am
Forum: Coding Questions
Topic: Transparent image with ButtonImageGadget()?
Replies: 18
Views: 4178

I would like to agree with this: IcoFX is the best freeware icon-editor I came about until now.
by andrasch
Tue May 03, 2011 3:54 pm
Forum: Coding Questions
Topic: Transparent image with ButtonImageGadget()?
Replies: 18
Views: 4178

Hi c4s,
thanks for the side-note. Maybe my "workaround-version" might now and then be useful anyway, e. g. if people want to spare the PNG-Decoder and avoid using ICO-format to stay platform-independent.
by andrasch
Tue May 03, 2011 12:25 pm
Forum: Coding Questions
Topic: Transparent image with ButtonImageGadget()?
Replies: 18
Views: 4178

Okay, it's a bit late to be a real help to the questioner..., but maybe someone else can make use of it.
This procedure adds "gif-like" transparency to any image (the source being BMP or any other by the image-library supported type) when creating the ButtonImageGadget:

Procedure ...
by andrasch
Tue Dec 14, 2010 1:53 pm
Forum: Coding Questions
Topic: Nesting include files (not really a bug but...)
Replies: 21
Views: 8323

Re: Nesting include files (not really a bug but...)

helpy wrote:The Constant #PB_Compiler_FilePath exists since PB Version 4.30 (16th December 2008)
Hi helpy,
thanks for the info! So the macro should better be like...

Code: Select all

Macro XIncludeFileRelative(FileName)
   XIncludeFile #PB_Compiler_FilePath + FileName
EndMacro
by andrasch
Tue Dec 14, 2010 12:05 pm
Forum: Coding Questions
Topic: Nesting include files (not really a bug but...)
Replies: 21
Views: 8323

Re: Nesting include files (not really a bug but...)

I know, I'm a bit late to contribute to this thread, but I just came about it looking for a solution for the "relative-include-thing" and I find the "IncludePath #PB_Compiler_File" - trick very nice and working fine. I just wanted to add that for me it gets even more handy using a small macro ...
by andrasch
Wed Dec 03, 2008 1:47 pm
Forum: Coding Questions
Topic: PxLenght of Text in String/TextGadget
Replies: 22
Views: 14747

tried to make a handy procedure out of it, may be you like it.
Procedure writeTextGadget(GadgetLeft, GadgetTop, Text.s, GadgetNumber = #PB_Any, Flags = 0)
; creates a text-gadget sized according to its text
; returns gadget-number for #PB_Any or else gadget-id (as usual for gadget-creation ...