1. IDE Not Defining Button - prj Files Inside

The SF interface seems to allow only one file to be uploaded in a bug report,
so I'm just going to put the prj files here...

The two prj files are exactly the same except for the definition of Window 2.
The prj with the definition of Window 2 crashes with the message:

bttn_Prepaid has not been declared
	setEnable(bttn_Prepaid, 0 )

The prj that does not have the definition of Window 2 works fine.

Here are the files:

*** Start of test_with_win2.prj
#Version 1.0.2
#Counter: 73
#WinCounter: 5
#OpenModuleAt
moduleAtControlEvent : Window1(General)
moduleAtCol : 0
moduleAtRow : 4
moduleAtTop : 1
moduleAtControlEvent : available_templates.e
moduleAtCol : 0
moduleAtRow : 65
moduleAtTop : 56
moduleAtControlEvent : Window1onOpen
moduleAtCol : 0
moduleAtRow : 3
moduleAtTop : 1
moduleAtControlEvent : Window1onActivate
moduleAtCol : 26
moduleAtRow : 2
moduleAtTop : 1
#EndOpenModuleAt
#Window 1
#TabInfo
TabText: Layer 0
TabRenamed: 0
TabNumber: 0
TabsetLayer: 0
#Control: Window1
X       : 0
Y       : 0
CX      : 152
CY      : 100
ControlLayer: 0
Title   : PRJ File Test
Class   : Window
Enabled : 0
Checked : 0
Parent  : 
PClass  : 
SeqParentName  : 
SeqParentClass  : 
SeqChildName  : 
Visible : 1
BkColor : 0
EnableC : 1
DefaultsClass : WS_SYSMENU
Style   : WS_THICKFRAME
TypStyle: {...}
ExStyle : WS_EX_DLGMODALFRAME
Local : 1
WinPos : 5
LastEditorEvent : 1

#Proc: (General)
procedure setPrepaidCodeButton()
	setEnable(bttn_Prepaid, 0 )
end procedure

#EndProc

#Control: bttn_Prepaid
AWindow : 30
X       : 4
Y       : 4
CX      : 108
CY      : 40
ControlLayer: 0
Title   : Install via Download
Class   : PushButton
Enabled : 0
Checked : 0
Parent  : 
PClass  : 
SeqParentName  : 
SeqParentClass  : 
SeqChildName  : 
Visible : 1
EnableC : 1
Style   : 0
TypStyle: 
ExStyle : 0
TabOrder : 1
Local : 1
Indexed : 1
LastEditorEvent : 3

#Window 2
#TabInfo
TabText: Layer 0
TabRenamed: 0
TabNumber: 0
TabsetLayer: 0
#Control: Window2
X       : 0
Y       : 0
CX      : 379
CY      : 135
ControlLayer: 0
Title   : Window 2
Class   : Window
Enabled : 0
Checked : 0
Parent  : 
PClass  : 
SeqParentName  : 
SeqParentClass  : 
SeqChildName  : 
Visible : 1
BkColor : 16777215
EnableC : 1
DefaultsClass : WS_SYSMENU
Style   : WS_POPUP, WS_BORDER
TypStyle: {...}
ExStyle : 0
Local : 1
WinPos : 5
LastEditorEvent : 13

*** Start of test_no_win2.prj
#Version 1.0.2
#Counter: 73
#WinCounter: 5
#OpenModuleAt
moduleAtControlEvent : Window1(General)
moduleAtCol : 0
moduleAtRow : 4
moduleAtTop : 1
moduleAtControlEvent : available_templates.e
moduleAtCol : 0
moduleAtRow : 65
moduleAtTop : 56
moduleAtControlEvent : Window1onOpen
moduleAtCol : 0
moduleAtRow : 3
moduleAtTop : 1
moduleAtControlEvent : Window1onActivate
moduleAtCol : 26
moduleAtRow : 2
moduleAtTop : 1
#EndOpenModuleAt
#Window 1
#TabInfo
TabText: Layer 0
TabRenamed: 0
TabNumber: 0
TabsetLayer: 0
#Control: Window1
X       : 0
Y       : 0
CX      : 152
CY      : 100
ControlLayer: 0
Title   : PRJ File Test
Class   : Window
Enabled : 0
Checked : 0
Parent  : 
PClass  : 
SeqParentName  : 
SeqParentClass  : 
SeqChildName  : 
Visible : 1
BkColor : 0
EnableC : 1
DefaultsClass : WS_SYSMENU
Style   : WS_THICKFRAME
TypStyle: {...}
ExStyle : WS_EX_DLGMODALFRAME
Local : 1
WinPos : 5
LastEditorEvent : 1

#Proc: (General)
procedure setPrepaidCodeButton()
	setEnable(bttn_Prepaid, 0 )
end procedure

#EndProc

#Control: bttn_Prepaid
AWindow : 30
X       : 4
Y       : 4
CX      : 108
CY      : 40
ControlLayer: 0
Title   : Install via Download
Class   : PushButton
Enabled : 0
Checked : 0
Parent  : 
PClass  : 
SeqParentName  : 
SeqParentClass  : 
SeqChildName  : 
Visible : 1
EnableC : 1
Style   : 0
TypStyle: 
ExStyle : 0
TabOrder : 1
Local : 1
Indexed : 1
LastEditorEvent : 3

new topic     » topic index » view message » categorize

2. Re: IDE Not Defining Button - prj Files Inside

c.k.lester wrote:
> 
> The SF interface seems to allow only one file to be uploaded in a bug report,
> so I'm just going to put the prj files here...

Allow me to introduce my little friend: zip archive. :P

> Here are the files:

Or, you could post the text...


Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: IDE Not Defining Button - prj Files Inside

Matt Lewis wrote:
> c.k.lester wrote:
> > The SF interface seems to allow only one file to be uploaded in a bug
> > report,
> > so I'm just going to put the prj files here...
> Allow me to introduce my little friend: zip archive. :P

LOL! *slaps self in forehead* Duh, right?

new topic     » goto parent     » topic index » view message » categorize

4. Re: IDE Not Defining Button - prj Files Inside

c.k.lester wrote:
> 
> The SF interface seems to allow only one file to be uploaded in a bug report,
> so I'm just going to put the prj files here...
> 
> The two prj files are exactly the same except for the definition of Window 2.
> The prj with the definition of Window 2 crashes with the message:
> 
> bttn_Prepaid has not been declared
> 	setEnable(bttn_Prepaid, 0 )
> 
> The prj that does not have the definition of Window 2 works fine.
> 
> Here are the files:
> 
> *** Start of test_with_win2.prj
> #Version 1.0.2
> #Counter: 73
> #WinCounter: 5
> #OpenModuleAt
> moduleAtControlEvent : Window1(General)
> moduleAtCol : 0
> moduleAtRow : 4
> moduleAtTop : 1
> moduleAtControlEvent : available_templates.e
> moduleAtCol : 0
> moduleAtRow : 65
> moduleAtTop : 56
> moduleAtControlEvent : Window1onOpen
> moduleAtCol : 0
> moduleAtRow : 3
> moduleAtTop : 1
> moduleAtControlEvent : Window1onActivate
> moduleAtCol : 26
> moduleAtRow : 2
> moduleAtTop : 1
> #EndOpenModuleAt
> #Window 1
> #TabInfo
> TabText: Layer 0
> TabRenamed: 0
> TabNumber: 0
> TabsetLayer: 0
> #Control: Window1
> X       : 0
> Y       : 0
> CX      : 152
> CY      : 100
> ControlLayer: 0
> Title   : PRJ File Test
> Class   : Window
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> BkColor : 0
> EnableC : 1
> DefaultsClass : WS_SYSMENU
> Style   : WS_THICKFRAME
> TypStyle: {...}
> ExStyle : WS_EX_DLGMODALFRAME
> Local : 1
> WinPos : 5
> LastEditorEvent : 1
> 
> #Proc: (General)
> procedure setPrepaidCodeButton()
> 	setEnable(bttn_Prepaid, 0 )
> end procedure
> 
> #EndProc
> 
> #Control: bttn_Prepaid
> AWindow : 30
> X       : 4
> Y       : 4
> CX      : 108
> CY      : 40
> ControlLayer: 0
> Title   : Install via Download
> Class   : PushButton
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> EnableC : 1
> Style   : 0
> TypStyle: 
> ExStyle : 0
> TabOrder : 1
> Local : 1
> Indexed : 1
> LastEditorEvent : 3
> 
> #Window 2
> #TabInfo
> TabText: Layer 0
> TabRenamed: 0
> TabNumber: 0
> TabsetLayer: 0
> #Control: Window2
> X       : 0
> Y       : 0
> CX      : 379
> CY      : 135
> ControlLayer: 0
> Title   : Window 2
> Class   : Window
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> BkColor : 16777215
> EnableC : 1
> DefaultsClass : WS_SYSMENU
> Style   : WS_POPUP, WS_BORDER
> TypStyle: {...}
> ExStyle : 0
> Local : 1
> WinPos : 5
> LastEditorEvent : 13
> 
> *** Start of test_no_win2.prj
> #Version 1.0.2
> #Counter: 73
> #WinCounter: 5
> #OpenModuleAt
> moduleAtControlEvent : Window1(General)
> moduleAtCol : 0
> moduleAtRow : 4
> moduleAtTop : 1
> moduleAtControlEvent : available_templates.e
> moduleAtCol : 0
> moduleAtRow : 65
> moduleAtTop : 56
> moduleAtControlEvent : Window1onOpen
> moduleAtCol : 0
> moduleAtRow : 3
> moduleAtTop : 1
> moduleAtControlEvent : Window1onActivate
> moduleAtCol : 26
> moduleAtRow : 2
> moduleAtTop : 1
> #EndOpenModuleAt
> #Window 1
> #TabInfo
> TabText: Layer 0
> TabRenamed: 0
> TabNumber: 0
> TabsetLayer: 0
> #Control: Window1
> X       : 0
> Y       : 0
> CX      : 152
> CY      : 100
> ControlLayer: 0
> Title   : PRJ File Test
> Class   : Window
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> BkColor : 0
> EnableC : 1
> DefaultsClass : WS_SYSMENU
> Style   : WS_THICKFRAME
> TypStyle: {...}
> ExStyle : WS_EX_DLGMODALFRAME
> Local : 1
> WinPos : 5
> LastEditorEvent : 1
> 
> #Proc: (General)
> procedure setPrepaidCodeButton()
> 	setEnable(bttn_Prepaid, 0 )
> end procedure
> 
> #EndProc
> 
> #Control: bttn_Prepaid
> AWindow : 30
> X       : 4
> Y       : 4
> CX      : 108
> CY      : 40
<snip>

I'm looking into this.

judith

new topic     » goto parent     » topic index » view message » categorize

5. Re: IDE Not Defining Button - prj Files Inside

c.k.lester wrote:
> 
> The SF interface seems to allow only one file to be uploaded in a bug report,
> so I'm just going to put the prj files here...
> 
> The two prj files are exactly the same except for the definition of Window 2.
> The prj with the definition of Window 2 crashes with the message:
> 
> bttn_Prepaid has not been declared
> 	setEnable(bttn_Prepaid, 0 )
> 
> The prj that does not have the definition of Window 2 works fine.
> 
> Here are the files:
> 
> *** Start of test_with_win2.prj
> #Version 1.0.2
> #Counter: 73
> #WinCounter: 5
> #OpenModuleAt
> moduleAtControlEvent : Window1(General)
> moduleAtCol : 0
> moduleAtRow : 4
> moduleAtTop : 1
> moduleAtControlEvent : available_templates.e
> moduleAtCol : 0
> moduleAtRow : 65
> moduleAtTop : 56
> moduleAtControlEvent : Window1onOpen
> moduleAtCol : 0
> moduleAtRow : 3
> moduleAtTop : 1
> moduleAtControlEvent : Window1onActivate
> moduleAtCol : 26
> moduleAtRow : 2
> moduleAtTop : 1
> #EndOpenModuleAt
> #Window 1
> #TabInfo
> TabText: Layer 0
> TabRenamed: 0
> TabNumber: 0
> TabsetLayer: 0
> #Control: Window1
> X       : 0
> Y       : 0
> CX      : 152
> CY      : 100
> ControlLayer: 0
> Title   : PRJ File Test
> Class   : Window
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> BkColor : 0
> EnableC : 1
> DefaultsClass : WS_SYSMENU
> Style   : WS_THICKFRAME
> TypStyle: {...}
> ExStyle : WS_EX_DLGMODALFRAME
> Local : 1
> WinPos : 5
> LastEditorEvent : 1
> 
> #Proc: (General)
> procedure setPrepaidCodeButton()
> 	setEnable(bttn_Prepaid, 0 )
> end procedure
> 
> #EndProc
> 
> #Control: bttn_Prepaid
> AWindow : 30
> X       : 4
> Y       : 4
> CX      : 108
> CY      : 40
> ControlLayer: 0
> Title   : Install via Download
> Class   : PushButton
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> EnableC : 1
> Style   : 0
> TypStyle: 
> ExStyle : 0
> TabOrder : 1
> Local : 1
> Indexed : 1
> LastEditorEvent : 3
> 
> #Window 2
> #TabInfo
> TabText: Layer 0
> TabRenamed: 0
> TabNumber: 0
> TabsetLayer: 0
> #Control: Window2
> X       : 0
> Y       : 0
> CX      : 379
> CY      : 135
> ControlLayer: 0
> Title   : Window 2
> Class   : Window
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> BkColor : 16777215
> EnableC : 1
> DefaultsClass : WS_SYSMENU
> Style   : WS_POPUP, WS_BORDER
> TypStyle: {...}
> ExStyle : 0
> Local : 1
> WinPos : 5
> LastEditorEvent : 13
> 
> *** Start of test_no_win2.prj
> #Version 1.0.2
> #Counter: 73
> #WinCounter: 5
> #OpenModuleAt
> moduleAtControlEvent : Window1(General)
> moduleAtCol : 0
> moduleAtRow : 4
> moduleAtTop : 1
> moduleAtControlEvent : available_templates.e
> moduleAtCol : 0
> moduleAtRow : 65
> moduleAtTop : 56
> moduleAtControlEvent : Window1onOpen
> moduleAtCol : 0
> moduleAtRow : 3
> moduleAtTop : 1
> moduleAtControlEvent : Window1onActivate
> moduleAtCol : 26
> moduleAtRow : 2
> moduleAtTop : 1
> #EndOpenModuleAt
> #Window 1
> #TabInfo
> TabText: Layer 0
> TabRenamed: 0
> TabNumber: 0
> TabsetLayer: 0
> #Control: Window1
> X       : 0
> Y       : 0
> CX      : 152
> CY      : 100
> ControlLayer: 0
> Title   : PRJ File Test
> Class   : Window
> Enabled : 0
> Checked : 0
> Parent  : 
> PClass  : 
> SeqParentName  : 
> SeqParentClass  : 
> SeqChildName  : 
> Visible : 1
> BkColor : 0
> EnableC : 1
> DefaultsClass : WS_SYSMENU
> Style   : WS_THICKFRAME
> TypStyle: {...}
> ExStyle : WS_EX_DLGMODALFRAME
> Local : 1
> WinPos : 5
> LastEditorEvent : 1
> 
> #Proc: (General)
> procedure setPrepaidCodeButton()
> 	setEnable(bttn_Prepaid, 0 )
> end procedure
> 
> #EndProc
> 
> #Control: bttn_Prepaid
> AWindow : 30
> X       : 4
> Y       : 4
> CX      : 108
> CY      : 40
<snip>

In bttn_Prepaid Indexed should not be 1. You will need to hand edit your project
to make it 0 and you project will run. If you had created bttn_Prepaid by copying
from another control and answered "Yes" to "index this control to copy from
control" or somesuch question and then deleted the copy from control, the Indexed
could have stayed 1. I think I fixed this from happening in a later release of
IDE but I have made a note to check.

After you make the change for Indexed : 0 if you have any more problems with
your project, please let me know.

judith

new topic     » goto parent     » topic index » view message » categorize

6. Re: IDE Not Defining Button - prj Files Inside

Judith Evans wrote:
> c.k.lester wrote:
> > The two prj files are exactly the same except for the definition of Window
> > 2.
> > The prj with the definition of Window 2 crashes with the message:
> 
> In bttn_Prepaid Indexed should not be 1. You will need to hand edit your
> project
> to make it 0 and you project will run.

Thanks so much, Judith. I figured it was going to be something like that. :/

new topic     » goto parent     » topic index » view message » categorize

7. Re: IDE Not Defining Button - prj Files Inside

c.k.lester wrote:
> Judith Evans wrote:
> > c.k.lester wrote:
> > > The two prj files are exactly the same except for the definition of Window
> > > 2.
> > > The prj with the definition of Window 2 crashes with the message:
> > In bttn_Prepaid Indexed should not be 1. You will need to hand edit your
> > project
> > to make it 0 and you project will run.
> Thanks so much, Judith. I figured it was going to be something like that. :/

BTW, why did it work without Window 2 in the prj file? Why didn't it work with
Window 2 in the prj file?

Also, this is a good candidate for a warning message. :)

new topic     » goto parent     » topic index » view message » categorize

8. Re: IDE Not Defining Button - prj Files Inside

c.k.lester wrote:
> 
> c.k.lester wrote:
> > Judith Evans wrote:
> > > c.k.lester wrote:
> > > > The two prj files are exactly the same except for the definition of
> > > > Window 2.
> > > > The prj with the definition of Window 2 crashes with the message:
> > > In bttn_Prepaid Indexed should not be 1. You will need to hand edit your
> > > project
> > > to make it 0 and you project will run.
> > Thanks so much, Judith. I figured it was going to be something like that. :/
> 
> BTW, why did it work without Window 2 in the prj file? Why didn't it work with
> Window 2 in the prj file?
I don't know yet.

> 
> Also, this is a good candidate for a warning message. :)
I can put up a warning message but there is nothing the user can do in IDE to
correct this problem and I do not recommend that user often modifies the project
file. The best solution is for IDE to clean up the associated controls when there
is missing information and treat these controls as if indexing had not been
applied.

There are also cases where a parent is flagged as being copied from but all the
controls copied from it have been deleted. That also may produce problems when
generating the exw.

I've added these situations to my ToDo list for the next release.

judith

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu