Author Topic: Stock._get.220 error  (Read 2877 times)

themagicm

  • Newbie
  • *
  • Posts: 17
Stock._get.220 error
« on: October 13, 2006, 09:17:43 AM »
I recently deinstalled and reinstalled the newest version of gambas 1.9.44 on SuSE 10.1.
when I run gambas2 I get the following errors:

Stock._get.220: Cannot find: language
Stock._get.220: Cannot find: archive
Stock._get.220: Cannot find: flag
Stock._get.220: Cannot find: terminal
Stock._get.220: Cannot find: directory
Stock._get.220: Cannot find: book

etc etc... what does that stuff mean?




Linux Basic

Stock._get.220 error
« on: October 13, 2006, 09:17:43 AM »

timothy

  • Sr. Member
  • ****
  • Posts: 319
Re: Stock._get.220 error
« Reply #1 on: October 16, 2006, 07:54:41 AM »

The Stock icon class can be used to provide icons from the desktop you are running. For example the following code snippet will load all stock icons into a IconView called IconViewIcons. Each icon will have a 22 x 22 point size. You could change this number if you want a different point size.

Code: [Select]

PRIVATE SUB GetIcons()
  DIM iconKey AS String
  DIM iconName AS String
  IconViewIcons.Clear()
  FOR EACH iconKey IN Stock.List
    ' Name for 22x22 point size icons
    iconName = "22/" & iconKey
    IconViewIcons.Add(iconKey, iconKey, Stock[iconName])
  NEXT
END


This class seems to work best with the KDE. With the Gnome desktops it is OK. It is supposed to use default icons with other desktops. Are you running Gnome or some other desktop?

This class is used by the Gambas IDE for the icons it displays so you have the look and feel of the Desktop you are running. The errors you are getting are because Gambas can not find the required icon on your system. Does the Gambas IDE fail to display some icons in its toolbars?

I am also currently running SUSE 10.1 with Gambas 1.9.44 with the KDE desktop. But I do not see these errors.
42 - So long and thanks for all the fish.

Joe1962

  • Newbie
  • *
  • Posts: 20
    • JJRWeb
Re: Stock._get.220 error
« Reply #2 on: October 17, 2006, 06:09:36 PM »
The stock class seems to work fine in Vector Linux 5.8 with XFCE 4.4 RC1, with Gambas 1.9.44. I was getting a Stock._get.220 error when loading a project from a previous version in 1.9.43 (not when running Gambas itself), but this was fixed with 1.9.44.

themagicm

  • Newbie
  • *
  • Posts: 17
Re: Stock._get.220 error
« Reply #3 on: October 18, 2006, 09:44:25 AM »
I'm running GNOME.. havent tried it under KDE (dont like KDE).

I was just curious...functionality is still there its just a error I was recieving in a term session when running gambas2 IDE.