IonicWind Software

IWBasic => General Questions => Topic started by: Andy on November 18, 2009, 03:21:39 AM

Title: How To Add an Icon to a Button and maybe a balloon tip
Post by: Andy on November 18, 2009, 03:21:39 AM
Hi Everyone,

Can anyone help ?

I want to add one icon (bmp, or jpg etc) to a button eg. BUTTON_1.

I have seen the example that's included with Ebasic but the bitmap icons are all together as one file and loaded in turn as an array - I don't want to do that, just something simple as above.

Not necessary but as an extra, does anyone know how I can show a balloon tip when you point to the button ?
Title: Re: How To Add an Icon to a Button and maybe a balloon tip
Post by: mrainey on November 18, 2009, 04:53:42 AM
Have a look at the user guide under General Programming > Using Resources.  Then, search the Emergence forum for "@CTLBTNBITMAP" and "tooltip" and I think you'll find some examples.
Title: Re: How To Add an Icon to a Button and maybe a balloon tip
Post by: Andy on November 19, 2009, 12:39:47 AM
Thanks very much for replying, have done a search but have only found how to make a button show a bitmap but not both bitmap and some text as well - I will keep looking but maybe it's not possible ?

Thanks again,
Andy.
Title: Re: How To Add an Icon to a Button and maybe a balloon tip
Post by: mrainey on November 19, 2009, 04:24:07 AM
Maybe the example program "rgn_button_test.eba" that comes with EB will give you some ideas for combining a bitmap with text on a button.

Title: Re: How To Add an Icon to a Button and maybe a balloon tip
Post by: Andy on November 20, 2009, 03:03:16 AM
Great, thanks for that - it looks at first sight as two buttons sharing the same location.
Will give it a go and let everyone know if I think it's suitable

Thanks again,
Andy.
Title: Re: How To Add an Icon to a Button and maybe a balloon tip
Post by: LarryMc on November 20, 2009, 05:48:27 AM
Andy,

another possibility is to purchase the Custom Button Library and Designer.

Larry