[Gambas-devel] gtk-050215
Daniel Campos
daniel.campos at ...103...
Tue Feb 15 19:25:12 CET 2005
OK:
Now the stock icons are part of the standard Picture class, there will be
gb.gtk.stock no more.
Once you call Picture["Path"] the class tries to load an icon using the
following
order:
1º) If there's an icon embeed in the project it will load that icon
2º) It will try to load an icon from the file system
3º) If there's a stock item it will load it.
4º) If there's an icon in the predefinad paths (named icon) it will try
to load it.
5º) Error : icon not found
For stock and named icons, the syntax is the following:
"icon size/icon name" for example "Button/Yes"
The following sizes are valid (for both stock and named icons):
"Menu","SmallToolbar","LargeToolbar","Button","Dnd","Dialog"
(these names are not case sensitive)
The following names are recognized for stock icons:
"Add","Apply","Bold","Cancel", "CDRom","Clear","Close","ColorPicker",
"Convert","Copy","Cut","Delete","DialogAuthentication""DialogError",
"DialogInfo","DialogQuestion", "DialogWarning","Dnd","DndMultiple",
"Execute",
"Find","FindAndReplace","Floppy","GotoBottom", "GotoFirst", "GotoLast",
"GotoTop","GoBack", "GoDown","GoForward","GoUp","HardDisk"
"Help","Home","Indent","Index", "Italic","JumpTo","JustifyCenter",
"JustifyFill",
"JustifyLeft","JustifyRight","MissingImage","Network",
"New","No","Ok","Open",
"Paste","Preferences","Print","PrintPreview",
"Properties","Quit","Redo","Refresh",
"Remove","RevertToSaved","Save","SaveAs", "SelectColor","SelectFont",
"SortAscending","SortDescending",
"SpellCheck","Stop","StrikeThrough","Undelete",
"Underline","Undo","Unindent","Yes", "Zoom100","ZoomFit","ZoomIn","ZoomOut"
(these names are not case sensitive)
If the name is not recognized, it will try to force the system to load
it. If the system can't
find them, then will be an error "Icon not found".
There are not predefined names for "Named icons" as it depends on the
system and the
applications placed in it.
The syntax also can be just "icon name". In that case the "Button" size
will be the default.
That's all by now :-)
Regards,
D. Campos
For José L. Redrejo:
¡no uses todavía esta versión! puede seguirte fallando en los dialogos.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtk-050215-gb1.9.tar.bz2
Type: application/x-bzip
Size: 54177 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20050215/778d1ad0/attachment.bin>
More information about the Devel
mailing list