Home

Browser Gadget

The Browser Gadget Allows a real time preview of images. It can open image files and generate a preview image or load a model file and generate an image preview from it. It accepts an image array to be passed into the gadget or it can populate images internally after findfiles(Browser) has been call witht he browser id as its target. It has 2 modes ,preview mode and text mode. Text Mode creates and array of interactive button text objects and preview mode creates interactive button previews. clicking the button will return the current string of the image or text that the object holds. Bowsers using the image array source "not internal will return an image index"

SetBrowserActivateMode(ID,Bool)

`Accepts integer 0-1, (1) Enables Hover to activate, "0" Default Behavior

SetBrowserAlpha(ID,AlphaValue)

`Accepts integer 0-255, Sets entire Sprite to the specified alpha value

SetBrowserBgColor(ID,Color)

`Accepts color from makecolor(),Sets Background color of sprite, Accepts Alpha value.

SetBrowserBGImage(ID,ImageID)

`Accepts Integer, Sets Background image.

SetBrowserBorderColor(ID,Color)

`Accepts color from makecolor(),Sets Border color of sprite, Accepts Alpha value.

SetBrowserBorderWidth(ID,Width)

`Accepts Integer, Sets Border Width.

GetBrowserBgImage(ID)

Returns Background ID or -1.

SetBrowserColor(ID,Integer)

`Accepts color from makecolor(), Sets entire sprite to specified color.

SetBrowserDepth(ID,Depth)

Accepts Integer, Forces Browser to add or subtract depth to its depth sorting.

SetBrowserDrag(ID,Bool)

`Accepts integer 0-1,Enables Dragging

SetBrowserDragAndDrop(ID,Bool)

` Accepts Integer 1-0, 1 enalbes Browser to be dropped onto other gadgets, 0 false.

SetBrowserEditMode(ID,Bool)

`Accepts Integer 1-0, overides settings enables all api features,"Browser action will be disabled while in edit mode"

GetBrowserHeight(ID)

Returns Height.

SetBrowserHighlight(ID,Bool)

`Accepts Integer 1-0, Enables Highlighting

SetBrowserHoverState(ID)

Returns 1 if Browser is being hovered, else 0.

SetBrowserPaddingWidth(ID,Width)

`Accepts Integer, Sets Padding Width.

SetBrowserPaddingColor(ID,Color)

`Accepts color from makecolor(),Sets Padding color of sprite, Accepts Alpha value.

SetBrowserResize(ID,Bool)

`Accepts integer 0-1,Enables Resizing

SetBrowserSize(ID,Width,Height)

Accepts integer sets the width and height.

GetBrowserText(ID)

Returns Text String or -1

SetBrowserToolTip(ID,String)

Accepts String, Sets Browser to generate and destroy a tooltip preview on hover. Hover Must be enabled see SetBrowserActivateHover(ID,Bool)

GetBrowserWidth(ID)

Returns Width.

SetBrowserVisible(ID,Boolean)

`Sets Browser visible or hidden 1 visible, 0 hidden.

SetBrowserModeIcon(id)

`

SetBrowserModeText(id)

`

SetBrowserImageSource(ID,ID_Array as integer[])

`

SetBrowserTextSource(ID,UsePass_TYPE)

`

GetBrowserString(BrowseID)

`

SetBrowserModePreview(id)

`

updateBrowser

`