
Jorge Olguin (super carnicerias hernandez sa de cv) asked a question.
I wonder what could have been wrong in my development project?
I made my first Design, an "ABL Dialog" in the Visual Designer tab in "File>New" .
THe problem is I tried to convert a radButton to a msButton , and changed class on button definitions parts, I knew I shouldn't edit manually certain areas of code, but in any case, I was trying to learn about forms.
As expected, I messed up form internals, I wasn't to much worried.
The problem came as: after that messing up, I can create new forms, ABL Form and ABL Dialog, but when opened in visual designer, it won't show them, designer canvas is empty, code is as follows:
- /*------------------------------------------------------------------------
- File : test
- Purpose :
- Syntax :
- Description :
- Author(s) : octavio
- Created : Mon Jun 15 16:41:06 CST 2026
- Notes :
- ----------------------------------------------------------------------*/
- USING Progress.Windows.Form.
-
- BLOCK-LEVEL ON ERROR UNDO, THROW.
- CLASS procs.suc.test INHERITS Form :
-
- DEFINE PRIVATE VARIABLE components AS System.ComponentModel.IContainer NO-UNDO.
- DEFINE PRIVATE VARIABLE buttonOk AS System.Windows.Forms.Button NO-UNDO.
- DEFINE PRIVATE VARIABLE buttonCancel AS System.Windows.Forms.Button NO-UNDO.
-
- CONSTRUCTOR PUBLIC test( ):
-
- InitializeComponent ( ).
- THIS-OBJECT:ComponentsCollection:Add(THIS-OBJECT:components).
- CATCH e AS Progress.Lang.Error:
- UNDO, THROW e.
- END CATCH.
-
- END CONSTRUCTOR.
-
- DESTRUCTOR PUBLIC test( ):
-
- END DESTRUCTOR.
-
- METHOD PRIVATE VOID okButton_Click (sender AS System.Object, e AS System.EventArgs):
- THIS-OBJECT:DialogResult = System.Windows.Forms.DialogResult:Ok.
- THIS-OBJECT:Close ( ).
- END METHOD.
-
- METHOD PRIVATE VOID cancelButton_Click (sender AS System.Object, e AS System.EventArgs):
- THIS-OBJECT:DialogResult = System.Windows.Forms.DialogResult:Cancel.
- THIS-OBJECT:Close ( ).
- END METHOD.
-
- METHOD PRIVATE VOID InitializeComponent ( ):
-
- /* NOTE: The following method is automatically generated.
-
- We strongly suggest that the contents of this method only be modified using the
- Visual Designer to avoid any incompatible modifications.
-
- Modifying the contents of this method using a code editor will invalidate any support for this file. */
-
- buttonOk = NEW System.Windows.Forms.Button ( ).
- buttonCancel = NEW System.Windows.Forms.Button ( ).
- THIS-OBJECT:SuspendLayout ( ).
- /* */
- /* buttonOk */
- /* */
- buttonOk:Location = NEW System.Drawing.Point (121, 231).
- buttonOk:Name = "buttonOk".
- buttonOk:Size = NEW System.Drawing.Size (75, 23).
- buttonOk:TabIndex = 0.
- buttonOk:Text = "OK".
- buttonOk:Anchor = CAST(Progress.Util.EnumHelper:Or(System.Windows.Forms.AnchorStyles:Bottom, System.Windows.Forms.AnchorStyles:Right), System.Windows.Forms.AnchorStyles).
- buttonOk:Click:Subscribe (okButton_Click).
- /* */
- /* buttonCancel */
- /* */
- buttonCancel:DialogResult = System.Windows.Forms.DialogResult:Cancel.
- buttonCancel:Location = NEW System.Drawing.Point (205, 231).
- buttonCancel:Name = "buttonCancel".
- buttonCancel:Size = NEW System.Drawing.Size (75, 23).
- buttonCancel:TabIndex = 1.
- buttonCancel:Text = "Cancel".
- buttonCancel:Anchor = CAST(Progress.Util.EnumHelper:Or(System.Windows.Forms.AnchorStyles:Bottom, System.Windows.Forms.AnchorStyles:Right), System.Windows.Forms.AnchorStyles).
- buttonCancel:Click:Subscribe(cancelButton_Click).
- /* */
- /* THIS-OBJECT */
- /* */
- THIS-OBJECT:AcceptButton = buttonOk.
- THIS-OBJECT:CancelButton = buttonCancel.
- THIS-OBJECT:ClientSize = NEW System.Drawing.Size (294, 268).
- THIS-OBJECT:Controls:Add (buttonCancel).
- THIS-OBJECT:Controls:Add (buttonOk).
- THIS-OBJECT:FormBorderStyle = System.Windows.Forms.FormBorderStyle:FixedDialog.
- THIS-OBJECT:MaximizeBox = FALSE.
- THIS-OBJECT:MinimizeBox = FALSE.
- THIS-OBJECT:Name = "test".
- THIS-OBJECT:ShowInTaskbar = FALSE.
- THIS-OBJECT:StartPosition = System.Windows.Forms.FormStartPosition:CenterParent.
- THIS-OBJECT:Text = "test".
- THIS-OBJECT:ResumeLayout (FALSE).
- CATCH e AS Progress.Lang.Error:
- UNDO, THROW e.
- END CATCH.
- END METHOD.
-
- METHOD PUBLIC VOID ShowModalDialog( ):
-
- WAIT-FOR THIS-OBJECT:ShowDialog().
-
- END METHOD.
-
-
-
- END CLASS.
Problem is, I can't add controls by designer...
What was that I broked?
Empty design canvas may be a screen resolution/scaling issue.
https://community.progress.com/s/article/Form-not-visible-in-Visual-Designer
I doubt that fiddling in the source of one screen has impact to all others.