Thread: GUIs in a QMenu
View Single Post
  #10  
Old 05-03-2007, 11:45 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
showimg() is simply exists for compatibility and is really just creating a TShowImg object. The GuiShowImgCtrl object extends GuiControl then implements TShowImg which adds support for offset inside of the control itself and interactions with other GUI Controls.

The findimg() function creates a new image (TShowImg) of the specified ID if one cannot be found. However, objects that extend GuiControl are all static and can be changed from distant objects, this might or might not be useful in your case.

In the end, I would suggest using GuiShowImgCtrl because it inherits all features of GuiControl, obviously designed for GUIs. Using showImg() will not give you these features.
__________________
Reply With Quote