Form CodeSample - Dialog With No Close Button
From Visual WebGui Wiki
| This article will have a few sections added to it soon, based on the following article type skeleton: NewCodeSampleTemplate |
| This article missing it's contents and needs writing. Please help contributing to this wiki and add contents. |
Contents |
Overview
This sample application makes use of a Theme to both hide the X close button of the Form and add a right border to the restore/maximize button, to compensate of the lack of a close Button.
Version compatibility
This codesample is written for Visual WebGui version 6.4, and will not work (unmodified) for versions prior to 6.4.
Note: The sample is written for a very early version 6.4 and does not work out of the box for the most recent version of 6.4 (some Theme property settings are missing). The ideology does however still work, and it is recommended that you start from scratch by creating a new theme and then redo the changes.
Samples of use
VB.NET Code
'Code is not relevant here. 'The relevant changes are in the Theme.
C# Code
//Code is not relevant here. //The relevant changes are in the Theme.
The demo application
The changes in the theme are both removing references to the close button images in the: DialogWindowCloseButtonDisabledStyle, DialogWindowCloseButtonHoverStyle and DialogWindowCloseButtonNormalStyle setting, and changing the restore and maximize button images to add a right side border.
