Have tried adding a pushbutton to an existing VO Dialog window but at runtime it is giving a VO.WCError error.
If I remove the pushbutton again it works fine.
Exception of type 'VO.WCError' was thrown.
Callstack:
at VO.WCError..ctor(__Usual[] Xs$Args)
at VO.Control.Create(__Usual[] Xs$Args)
at VO.TextControl.Create(__Usual[] Xs$Args)
at VO.Control.Handle(__Usual[] Xs$Args)
at VOGUIClasses.Functions.__WCRegisterControl(Control oControl)
at VO.Control..ctor(__Usual[] Xs$Args)
at VO.TextControl..ctor(__Usual[] Xs$Args)
at VO.Button..ctor(__Usual[] Xs$Args)
at VO.PushButton..ctor(__Usual[] Xs$Args)
at STATRUNTYPE2..ctor(__Usual[] Xs$Args)
Can you please provide as much more info as you can? Like what is the name of the button, if it happens with different names, different controls than buttons etc. Anything that might help bringing some idea...
I tried various names and just the default of PushButton1.
It also failed with FixedText.
But I just noticed there was an extra .rc file from the original conversion for the prg file, as well as the window .rc file.
I've removed the old .rc file and now it seems ok.
Could that have caused the problem?
This is the first change to that window since that original conversion.