Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SmartClient PopUp Style Issue
isc.ClassFactory.defineClass('MyPopUp', isc.Window);
isc.MyPopUp.addProperties({
title: 'Test',
width: 400,
height: 400,
showEdges: true,
edgeImage: 'https://livebuilds.openbravo.com/erp_pi_pgsql/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/images/popup/border.png',
customEdges: null,
edgeSize: 2,
edgeTop: 27,
edgeBottom: 2,
edgeOffsetTop: 2,
edgeOffsetRight: 2,
edgeOffsetBottom: 2,
showHeaderBackground: false,
showHeaderIcon: true,
backgroundColor: null,
border: null,
styleName: 'OBPopup',
edgeCenterBackgroundColor: '#FFFFFF',
bodyColor: '#FFFFFF',
layoutMargin: 0,
membersMargin: 0,
showShadow: false,
shadowDepth: 5
});
isc.MyPopUp.changeDefaults('headerLabelDefaults', {
styleName: 'MyPopupHeaderText',
align: isc.Canvas.CENTER
});
isc.ClassFactory.defineClass('MyWidget', isc.Portlet);
isc.MyWidget.addProperties({
headerStyle: 'MyWidgetHeader',
bodyStyle: 'MyWidgetBody',
bodyColor: '#FFFFFF',
showEdges: true,
edgeImage: 'https://livebuilds.openbravo.com/erp_pi_pgsql/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/images/widget/window.png',
customEdges: null,
edgeSize: 2,
edgeTop: 29,
edgeBottom: 2,
edgeOffsetTop: 2,
edgeOffsetRight: 2,
edgeOffsetBottom: 2,
edgeOffsetLeft: 2
});
isc.defineClass('SUPTEST_Borders', isc.VLayout).addProperties({
width: 300,
layoutMargin:5,
membersMargin: 10,
members: [
isc.Button.create({
title: "Confirm",
width: 100,
click : function () {
var dialog = isc.MyPopUp.create({});
dialog.show();
}
}),
isc.MyWidget.create({})
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.