[Gambas-user] Stock icons

richard terry rterry at ...1822...
Thu Apr 3 03:55:11 CEST 2008


On Thu, 3 Apr 2008 12:03:20 pm Robert Rowe wrote:
> It was my code. I was using exist to make certain that the file existed
> before I used it. Since the stock icons aren't files in the data
> directory it was returning false. I changed it to check for NULL after I
> load the icon into the variable. It now works with stock icons or files. :)

Rob, can you flick your solution to the list. I'm in the process of collecting 
all these little problems/solutions  so that at some point down the track and 
can put them in a little gambas help file for all to use.

Richard

>
> Thanks for the help.
>
> Robert Rowe
>
> Benoit Minisini wrote:
> > On jeudi 3 avril 2008, Robert Rowe wrote:
> >> Is it possible to access the stock icons via code?
> >>
> >> dim btnTest as ToolButton
> >> btnTest.Picture = Picture[icon:/16/new]
> >
> > You forgot the quotes: Picture["icon:/16/new"]
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac
>e _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list