IonicWind Software

Creative Basic => GUI Programs => Topic started by: TexasPete on August 14, 2009, 05:01:29 AM

Title: bitmaps on buttons
Post by: TexasPete on August 14, 2009, 05:01:29 AM
below is some pulled out example code

SETCONTROLTEXT wMain1,7,GETSTARTPATH+"Resources"+\\+"deletey.bmp"
CONTROL wMain1,"B,Button6,356,4,70,70,@CTLBTNBITMAP ,7"


The button is not showing bmp. Do I have to use load bitmap as well?
Does it take three lines of code.

Texas Pete
Title: Re: bitmaps on buttons
Post by: LarryMc on August 14, 2009, 06:47:07 AM
you're creating the button after you set the text

therefore you are setting the text for a button that doesn't exists.

Even if you had them in the correct order it still wouldn't work.

GETSTARTPATH+"Resources"+\\+"deletey.bmp"
should be
GETSTARTPATH+"Resources\\deletey.bmp"


Larry
Title: Re: bitmaps on buttons
Post by: Ionic Wind Support Team on August 14, 2009, 10:29:13 AM
GETSTARTPATH+"Resources\deletey.bmp"

Creative doesn't use escape sequences so it is just a backslash
Title: Re: bitmaps on buttons
Post by: TexasPete on August 14, 2009, 10:33:34 AM
Thanks All ,
Close only counts with hand grenades and Horse shoes.
Texas Pete
Title: Re: bitmaps on buttons
Post by: aurelCB on August 15, 2009, 12:36:56 AM
QuoteHorse shoes.
???