r3browgd

r3browgd

Class

real/gadget/r3browgd.h

Library

r3gad

Description:

File browse gadget. Allows the user to select a file name.

See Also

oops/r3gadget.h

See Also

oops/r3flist.h

Super Class

r3Gadget

R3CLID_GADGET

JavaScript

r3Browsegadget

Class Identifier

R3CLID_BROWSEGADGET - 278

Methods

BROWSESTR, OPENBROWSEWINDOW, SHOWIMAGE,

Attributes

String, BrowsePrompt, NoUserInterface, BrowseImage, ReportCancel, Relative,

multi-inheritance!

R3BRGM_BROWSESTR

Method

BROWSESTR

Identifier

R3BRGM_BROWSESTR

JavaScript

obj.BROWSESTR();

Description

Private method.

R3BRGM_OPENBROWSEWINDOW

Method

OPENBROWSEWINDOW

Identifier

R3BRGM_OPENBROWSEWINDOW

JavaScript

obj.OPENBROWSEWINDOW();

Description

Called by 'Browse' button or the user (see NoUserInterface). when the user selects a string, the caller is informed through mapchanges

R3BRGM_SHOWIMAGE

Method

SHOWIMAGE

Identifier

R3BRGM_SHOWIMAGE

JavaScript

obj.SHOWIMAGE();

Description

Show the currently selected image.

String

Attribute

String

Identifier

R3BRGA_String

JavaScript type

String

C type

char*

Description

file name

Syntax


jsobj.SetString(value);
value = jsobj.GetString();


char* value = ...;
R3SetAttrs(r3obj, R3BRGA_String, value, R3TAG_END);
char* value;
R3GetAttrs(r3obj, R3BRGA_String, &value, R3TAG_END);

BrowsePrompt

Attribute

BrowsePrompt

Identifier

R3BRGA_BrowsePrompt

JavaScript type

String

C type

char*

Description

title for the 'File' dialog, such as 'Select texture' etc.

Syntax


jsobj.SetBrowsePrompt(value);


char* value = ...;
R3SetAttrs(r3obj, R3BRGA_BrowsePrompt, value, R3TAG_END);

NoUserInterface

Attribute

NoUserInterface

Identifier

R3BRGA_NoUserInterface

JavaScript type

Boolean

C type

R3BOOL

Description

R3RM_CREATE/no browse and string controls, caller can fetch file name by sending R3BRGM_OPENBROWSEWINDOW. NOTE: if defined, gadget has no gui and it cannot be inserted to a geometry managers

Syntax


jsobj.SetNoUserInterface(value);


R3BOOL value = ...;
R3SetAttrs(r3obj, R3BRGA_NoUserInterface, value, R3TAG_END);

BrowseImage

Attribute

BrowseImage

Identifier

R3BRGA_BrowseImage

JavaScript type

Boolean

C type

R3BOOL

Description

(create only) if true, 'show' button is added allowing the usr to view the selected image

Syntax


value = jsobj.GetBrowseImage();


R3BOOL value;
R3GetAttrs(r3obj, R3BRGA_BrowseImage, &value, R3TAG_END);

ReportCancel

Attribute

ReportCancel

Identifier

R3BRGA_ReportCancel

JavaScript type

Boolean

C type

R3BOOL

Description

if set reports cancel as R3OGM_CANCEL

Syntax


jsobj.SetReportCancel(value);
value = jsobj.GetReportCancel();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3BRGA_ReportCancel, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3BRGA_ReportCancel, &value, R3TAG_END);

Relative

Attribute

Relative

Identifier

R3BRGA_Relative

JavaScript type

Boolean

C type

R3BOOL

Description

return relative path if in current or program folder

Syntax


jsobj.SetRelative(value);
value = jsobj.GetRelative();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3BRGA_Relative, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3BRGA_Relative, &value, R3TAG_END);