May 17, 2024, 07:36:24 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


bitmaps on buttons

Started by TexasPete, August 14, 2009, 05:01:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TexasPete

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

LarryMc

August 14, 2009, 06:47:07 AM #1 Last Edit: August 14, 2009, 06:49:24 AM by Larry McCaughn
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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Ionic Wind Support Team

GETSTARTPATH+"Resources\deletey.bmp"

Creative doesn't use escape sequences so it is just a backslash
Ionic Wind Support Team

TexasPete

Thanks All ,
Close only counts with hand grenades and Horse shoes.
Texas Pete

aurelCB