vFindfirst(char *path, struct find_t *ffb, int attr) { int ret; do { MClearDiskError(); ret = _dos_findfirst(path, attr, ffb); } while (MShouldRetryDueToDiskError()); return ret; }
New PosForm creation functions available:
MOBJECT
MCreatePosForm(MOBJECT parent);
MOBJECT
MCreatePagedPosForm(MOBJECT parent, int npage);
MOBJECT
MCreateTabbedPosForm(MOBJECT parent, int npage, MTFont f);
MOBJECT
MCreateScrolledPosForm(MOBJECT parent, int clip_w, int clip_h);
MOBJECT
MCreateClippedPosForm(MOBJECT parent, int clip_w, int clip_h);
The following functions:
MOBJECT
MCreateScrolledForm(MOBJECT parent, int clip_w, int clip_h);
MOBJECT
MCreateClippedForm(MOBJECT parent, int clip_w, int clip_h);
are obsoleted by the following:
MOBJECT
MCreateScrolledRowForm(MOBJECT parent, int clip_w, int clip_h);
MOBJECT
MCreateScrolledColForm(MOBJECT parent, int clip_w, int clip_h);
MOBJECT
MCreateClippedRowForm(MOBJECT parent, int clip_w, int clip_h);
MOBJECT
MCreateClippedColForm(MOBJECT parent, int clip_w, int clip_h);
Obsolete
function prototypes are available via the macro switch "OLD_MGUI"
Using MObjectSetColor()
or MObjectSetBackgroundRGB() on a transparent object will make solid (transparency
level = 0).
Last
setting will cause the object to acquire the image size.
int
MObjectX(MOBJECT obj);
int
MObjectY(MOBJECT obj);
int
MObjectWidth(MOBJECT obj);
int
MObjectHeight(MOBJECT obj);
are obsoleted by:
int
MObjectGetX(MOBJECT obj);
int
MObjectGetY(MOBJECT obj);
int
MObjectGetWidth(MOBJECT obj);
int
MObjectGetHeight(MOBJECT obj);
Obsolete function prototypes are available via the macro switch "OLD_MGUI"
New functions:
void
MObjectSetSize(MOBJECT obj, int w, int h);
int
MObjectGetCompositeWidth(MOBJECT obj);
int
MObjectGetCompositeHeight(MOBJECT obj);
void
MObjectSetCompositeSize(MOBJECT obj, int w, int h);
void
MObjectSetCompositeWidth(MOBJECT obj, int w);
void
MObjectSetCompositeHeight(MOBJECT obj, int h);
void
MSBLHeadSetBackgroundImage(MOBJECT obj, MIMAGE img, int mode);
Obsoleted
functions:
MIMAGE
MPButtonChangeNormalImage(MOBJECT button, MIMAGE new_img);
MIMAGE
MPButtonChangeArmedImage(MOBJECT button, MIMAGE new_img);
MIMAGE
MPButtonChangeUnsensitiveImage(MOBJECT button, MIMAGE new_img);
New generic Button functions:
void MButtonSetTextVsImageAlignment(MOBJECT
button, CARD8 align);
void MButtonSetFGColorOnMouseOver(MOBJECT
button, MTColor cc);
MIMAGE
MDrawnButtonChangeNormalImage(MOBJECT button, MIMAGE new_img);
MIMAGE
MDrawnButtonChangeArmedImage(MOBJECT button, MIMAGE new_img);
MIMAGE
MDrawnButtonChangeUnsensitiveImage(MOBJECT button, MIMAGE new_img);
MIMAGE
MDrawnButtonChangeNormalOnImage(MOBJECT button, MIMAGE new_img);
MIMAGE
MDrawnButtonChangeArmedOnImage(MOBJECT button, MIMAGE new_img);
MIMAGE
MDrawnButtonChangeUnsensitiveOnImage(MOBJECT button, MIMAGE new_img);
void MButtonChangeImageFiles(MOBJECT
obj, char *npf, char *apf, char *upf, char *npfo, char *apfo, char *upfo);
New Button creation functions. To get the effective function name substitute '???' with: PButton, TButton and RButton
MOBJECT
MCreateDrawn???Ext(MOBJECT parent, MIMAGE pn, MIMAGE pa, MIMAGE pu,
MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
MOBJECT
MCreateImage???(MOBJECT parent, const char *npf, const char *apf, const
char *upf);
MOBJECT
MCreateImage???Ext(MOBJECT parent, const char *npf, const char *apf,
const char *upf, const char *non, const char *aon, const char *uon);
MOBJECT
MCreateDrawnText???(MOBJECT parent, const char *text, MTFont font,
MIMAGE np, MIMAGE ap, MIMAGE up);
MOBJECT
MCreateDrawnText???Ext(MOBJECT parent, const char *text, MTFont font,
MIMAGE pn, MIMAGE pa, MIMAGE pu, MIMAGE pn_on, MIMAGE pa_on, MIMAGE pu_on);
MOBJECT
MCreateImageText???(MOBJECT parent, const char *text, MTFont font,
const char *npf, const char *apf, const char *upf);
MOBJECT
MCreateImageText???Ext(MOBJECT parent, const char *text, MTFont font,
const char *npf, const char *apf, const char *upf, const char *non, const
char *aon, const char *uon);
[Focus]
UseOldFocusSwitchPolicy
= 1
Use the following
section in MGUI or application resource file under
Unix X-Window:
*Focus.UseOldFocusSwitchPolicy:
1
New functions:
MOBJECT MMenuItemGetMenu(MENU_ITEM
item);
MENU_ITEM
MMenuAddItemObsolete(MOBJECT pd, char *it, MGUI_CB cb, void *ad);
MENU_ITEM
MMenuAddRadioItem(MOBJECT pd, char *it, MENU_ITEM_CB cb, void *ad);
MENU_ITEM
MMenuAddToggleItem(MOBJECT pd, char *it, MENU_ITEM_CB cb, void *ad);
MENU_ITEM
MMenuAddSeparator(MOBJECT pd);