gDesign inserts an extra ", )" in the OpenWindow() line every time
you press "accept" button....
Original Code:
Code: Select all
; gPreferences[460-5-1-1-1050-282-0-293-392]
Procedure Open_Window_About()
x = WindowX(#window1) + WindowWidth(#window1)/3
y = WindowY(#window1) + WindowHeight(#window1)/3
FontID3 = LoadFont(2, "Arial", 12)
If OpenWindow(#about_Window, x, y, 304, 436, "About...")
If CreateGadgetList(WindowID(#about_Window))
Frame3DGadget(#about_Frame3D_1, 10, 10, 284, 192, "", #PB_Frame3D_Single)
mesg$ = "KaizenSoft" + Cr(1)
mesg$ = mesg$ + "By Chen Zarza" + Cr(2)
mesg$ = mesg$ + "Commercial Software" + Cr(2)
mesg$ = mesg$ + "Search and Replace Tool" + Cr(1)
mesg$ = mesg$ + "Version 1.1 release"
TextGadget(#about_Text_1, 15, 14, 275, 182, mesg$, #PB_Text_Center)
SetGadgetFont(#about_Text_1, FontID3)
SetGadgetColor(#about_Text_1, #PB_Gadget_BackColor, RGB(22,111,22))
SetGadgetColor(#about_Text_1, #PB_Gadget_FrontColor, RGB(255,255,0))
TextGadget(#about_tx_serialNumber, 22, 152, 74, 16, "Serial Number:")
SetGadgetColor(#about_tx_serialNumber, #PB_Gadget_BackColor, RGB(22,111,22))
SetGadgetColor(#about_tx_serialNumber, #PB_Gadget_FrontColor, RGB(255,255,0))
StringGadget(#about_st_serialNumber, 95, 150, 140, 20, "")
ButtonGadget(#about_bu_Verify, 241, 150, 44, 20, "Verify")
HyperLinkGadget(#about_Kaizen, 7, 206, 135, 20, "http://www.kaizensoft.com", RGB(22,111,22), #PB_HyperLink_Underline)
HyperLinkGadget(#about_email, 7, 226, 150, 20, "mailto:support@kaizensoft.com", RGB(22,111,22), #PB_HyperLink_Underline)
mesg$ = " <<<Disclaimer>>>" + Cr(2)
mesg$ = mesg$ + "The Software is provided 'as is'. In no event shall KaizenSoft or "
mesg$ = mesg$ + "its creator Chen Zarza be liable for any consequential, special,"
mesg$ = mesg$ + " incidental or indirect damages of any kind arising out of the delivery, "
mesg$ = mesg$ + "performance or use of this Software, " + Cr(2)
mesg$ = mesg$ + "This Software has been developed with care, but it is not possible"
mesg$ = mesg$ + " to warrant that the software is error free."
TextGadget(#about_Text_2, 16, 252, 265, 141, mesg$)
SetGadgetColor(#about_Text_2, #PB_Gadget_FrontColor, RGB(0,0,102))
ButtonGadget(#about_bu_OK, 114, 400, 80, 30, "Ok")
EndIf
EndIf
EndProcedure
Code: Select all
; gPreferences[460-5-1-1-1050-282-0-293-392]
Procedure Open_Window_About()
x = WindowX(#window1) + WindowWidth(#window1)/3
y = WindowY(#window1) + WindowHeight(#window1)/3
FontID3 = LoadFont(2, "Arial", 12)
If OpenWindow(#about_Window, x, y, 304, 436, "About..."), ), ) <- PROBLEM HERE
If CreateGadgetList(WindowID(#about_Window))
Frame3DGadget(#about_Frame3D_1, 10, 10, 284, 192, "", #PB_Frame3D_Single)
mesg$ = "KaizenSoft" + Cr(1)
mesg$ = mesg$ + "By Chen Zarza" + Cr(2)
mesg$ = mesg$ + "Commercial Software" + Cr(2)
mesg$ = mesg$ + "Search and Replace Tool" + Cr(1)
mesg$ = mesg$ + "Version 1.1 release"
TextGadget(#about_Text_1, 15, 14, 275, 182, mesg$, #PB_Text_Center)
SetGadgetFont(#about_Text_1, FontID3)
SetGadgetColor(#about_Text_1, #PB_Gadget_BackColor, RGB(22,111,22))
SetGadgetColor(#about_Text_1, #PB_Gadget_FrontColor, RGB(255,255,0))
TextGadget(#about_tx_serialNumber, 22, 152, 74, 16, "Serial Number:")
SetGadgetColor(#about_tx_serialNumber, #PB_Gadget_BackColor, RGB(22,111,22))
SetGadgetColor(#about_tx_serialNumber, #PB_Gadget_FrontColor, RGB(255,255,0))
StringGadget(#about_st_serialNumber, 95, 150, 140, 20, "")
ButtonGadget(#about_bu_Verify, 241, 150, 44, 20, "Verify")
HyperLinkGadget(#about_Kaizen, 7, 206, 135, 20, "http://www.kaizensoft.com", RGB(22,111,22), #PB_HyperLink_Underline)
HyperLinkGadget(#about_email, 7, 226, 150, 20, "mailto:support@kaizensoft.com", RGB(22,111,22), #PB_HyperLink_Underline)
mesg$ = " <<<Disclaimer>>>" + Cr(2)
mesg$ = mesg$ + "The Software is provided 'as is'. In no event shall KaizenSoft or "
mesg$ = mesg$ + "its creator Chen Zarza be liable for any consequential, special,"
mesg$ = mesg$ + " incidental or indirect damages of any kind arising out of the delivery, "
mesg$ = mesg$ + "performance or use of this Software, " + Cr(2)
mesg$ = mesg$ + "This Software has been developed with care, but it is not possible"
mesg$ = mesg$ + " to warrant that the software is error free."
TextGadget(#about_Text_2, 16, 252, 265, 141, mesg$)
SetGadgetColor(#about_Text_2, #PB_Gadget_FrontColor, RGB(0,0,102))
ButtonGadget(#about_bu_OK, 114, 400, 80, 30, "Ok")
EndIf
EndIf
EndProcedure
Why we can redo the changes made with gDesign...?
I want to say for example, if I change the height of a textGadget, then
press "accept" the change is done but if I change my mind pressing
Ctrl+Z does not work.....
This happens only if the modifications come from gDesign.
Working Win XP, jaPBe, PB4