Still can't use newer things because of difference in Dialog editor versions

Started by Garry, June 15, 2024, 04:44:09 PM

Previous topic - Next topic

Garry

I wanted to put a MENUBAR in my latest script.

I originally wrote the script's interface using the Winbatch dialog Editor in Win7 using the older 2004c version and it works fine as long as I manually edit the dialog GUI part manually in windows 10.

I think my main problem is how to convert the dialog gui part from 6.1 to 6.2

There seems to be some difference in the number of DEFAULT entire from 6.1 to 6.2.

Does anyone have any good examples of how to convert 6.1 to 6.2 or what is different.

Here's an example of it not not working from MyDialog038 and after
----------------------------------------------------



MyDialogFormat=`WWWDLGED,6.1`

MyDialogCaption=`NTP Slot Machine`
MyDialogX=300
MyDialogY=400
MyDialogWidth=201
MyDialogHeight=274
MyDialogNumControls=047
MyDialogProcedure=`MyDialogCode`
MyDialogFont=`DEFAULT`
MyDialogTextColor=`DEFAULT`
MyDialogBackground=`"C:\Program Files (x86)\WinBatch\Samples\STAR WATERFALL.bmp",DEFAULT`
MyDialogConfig=0

MyDialog001=`039,069,040,039,PICTURE,DEFAULT,"C1A",DEFAULT,3,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files (x86)\WinBatch\Samples\apple.bmp"`
MyDialog002=`081,069,039,039,PICTURE,DEFAULT,"C2A",DEFAULT,4,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\orange.bmp"`
MyDialog003=`122,069,040,039,PICTURE,DEFAULT,"C3A",DEFAULT,5,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\lemon.bmp"`
MyDialog004=`039,110,040,040,PICTURE,DEFAULT,"C1B",DEFAULT,6,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\strawberry.bmp"`
MyDialog005=`081,110,039,040,PICTURE,DEFAULT,"C2B",DEFAULT,7,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\cherry.bmp"`
MyDialog006=`122,110,040,040,PICTURE,DEFAULT,"C3B",DEFAULT,8,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\banana.bmp"`
MyDialog007=`039,152,040,040,PICTURE,DEFAULT,"C1C",DEFAULT,9,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\pineapple.bmp"`
MyDialog008=`081,152,039,040,PICTURE,DEFAULT,"C2C",DEFAULT,10,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\pie.bmp"`
MyDialog009=`122,152,040,040,PICTURE,DEFAULT,"C3C",DEFAULT,11,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files\WinBatch\Samples\cake.bmp"`
MyDialog010=`077,240,046,021,PUSHBUTTON,DEFAULT,"&SPIN",2,12,32,"Microsoft Sans Serif|13107|70|70","0|0|0","0|255|0"`
MyDialog011=`041,215,035,013,VARYTEXT,Current_Spins,"000",DEFAULT,13,512,"Microsoft Sans Serif|9830|70|34","255|255|0","0|0|0"`
MyDialog012=`125,215,036,013,VARYTEXT,Spins_Won,"000",DEFAULT,14,512,"Microsoft Sans Serif|9830|70|34","255|255|0","0|0|0"`
MyDialog013=`032,202,055,013,STATICTEXT,DEFAULT,"Spins Total",DEFAULT,2,DEFAULT,"Microsoft Sans Serif|9830|40|34","255|255|0",DEFAULT`
MyDialog014=`118,202,051,013,STATICTEXT,DEFAULT,"Spins Won",DEFAULT,1,512,"Microsoft Sans Serif|9830|40|34","255|255|0",DEFAULT`
MyDialog015=`039,040,032,014,EDITBOX,Spins_Credit,"000",DEFAULT,15,@csCenter,"Microsoft Sans Serif|9830|40|34","255|255|0","0|0|255"`
MyDialog016=`024,030,062,014,STATICTEXT,DEFAULT,"Spins Credit",DEFAULT,16,512,"Microsoft Sans Serif|8830|40|34","255|255|255",DEFAULT`
MyDialog017=`131,040,026,014,SPINNER,Spinner1_Range,"0",DEFAULT,7,DEFAULT,"Microsoft Sans Serif|9830|40|34","255|255|0","0|0|255"`
MyDialog018=`102,030,081,014,STATICTEXT,DEFAULT,"House %% Edge",DEFAULT,18,512,"Microsoft Sans Serif|8830|40|34","255|255|255",DEFAULT`
MyDialog019=`036,006,038,014,PUSHBUTTON,DEFAULT,"R&ules",1,19,DEFAULT,"Microsoft Sans Serif|9830|40|34","115|155|255","0|0|0"`
MyDialog020=`034,060,133,137,GROUPBOX,DEFAULT,"",DEFAULT,20,DEFAULT,DEFAULT,DEFAULT,"0|0|125"`
MyDialog021=`124,006,038,014,PUSHBUTTON,DEFAULT,"&Reset",3,17,DEFAULT,"Microsoft Sans Serif|9830|40|34","255|0|0","0|0|0"`
MyDialog022=`073,041,027,012,VARYTEXT,Player2,"0",DEFAULT,21,512,"Microsoft Sans Serif|9830|40|34","255|255|255","0|0|255"`
MyDialog023=`102,041,027,012,VARYTEXT,Player1,"0",DEFAULT,22,512,"Microsoft Sans Serif|9830|40|34","255|255|255","0|0|255"`
MyDialog024=`039,055,032,008,STATICTEXT,DEFAULT,"Cur/Player3",DEFAULT,23,512,"Microsoft Sans Serif|6554|40|34","255|255|255",DEFAULT`
MyDialog025=`075,055,023,009,STATICTEXT,DEFAULT,"Player2",DEFAULT,24,512,"Microsoft Sans Serif|6554|40|34","255|255|255",DEFAULT`
MyDialog026=`106,055,022,008,STATICTEXT,DEFAULT,"Player1",DEFAULT,25,512,"Microsoft Sans Serif|6554|40|34","255|255|255",DEFAULT`
MyDialog027=`085,215,032,014,SPINNER,Spinner3_Range,"0",DEFAULT,7,DEFAULT,"Microsoft Sans Serif|9830|40|34","255|255|0","0|0|255"`
MyDialog028=`088,201,055,013,STATICTEXT,DEFAULT,"Set Max",DEFAULT,2,DEFAULT,"Microsoft Sans Serif|6574|40|34","0|0|0",DEFAULT`
MyDialog029=`084,207,055,013,STATICTEXT,DEFAULT,"Spins Limit",DEFAULT,2,DEFAULT,"Microsoft Sans Serif|6574|40|34","0|0|0",DEFAULT`
MyDialog030=`086,015,028,014,SPINNER,Spinner2_Range,"30",DEFAULT,7,DEFAULT,"Microsoft Sans Serif|9830|40|34","255|255|0","0|0|255"`
MyDialog031=`081,004,055,013,STATICTEXT,DEFAULT,"Jackpot %%",DEFAULT,2,DEFAULT,"Microsoft Sans Serif|8574|40|34","255|255|255",DEFAULT`
MyDialog032=`042,241,034,008,RADIOBUTTON,MyRadioVar,"3 Player",1,9,DEFAULT,DEFAULT,"0|0|0",DEFAULT`
MyDialog033=`042,250,034,010,RADIOBUTTON,MyRadioVar,"2 Player",2,10,DEFAULT,DEFAULT,"255|255|0",DEFAULT`
MyDialog034=`125,240,036,021,PUSHBUTTON,DEFAULT,"&Bet 2/0",2,12,32,"Microsoft Sans Serif|10007|70|70","255|255|255","0|0|125"`
MyDialog035=`039,021,032,010,PUSHBUTTON,DEFAULT,"Start Credit",2,12,32,"Microsoft Sans Serif|5554|40|34","255|255|255","0|0|0"`
MyDialog036=`167,062,032,136,PICTURE,DEFAULT,"HANDLE",DEFAULT,2,DEFAULT,DEFAULT,DEFAULT,"C:\Program Files (X86)\WinBatch\Samples\HANDLE_1.bmp"`
MyDialog037=`052,228,102,013,CHECKBOX,MyVariable1,"Notify To Switch Couples' Player",1,3,DEFAULT,"Microsoft Sans Serif|6554|40|34","0|0|0",DEFAULT`
MyDialog038=`000,000,000,000,MENUBAR,"Dialog_Bar"`
MyDialog039=`000,000,000,000,MENUITEM,"mbi_Run","Dialog_Bar","Run",DEFAULT,20,0`
MyDialog040=`000,000,000,000,MENUITEM,"mbi_Notepad","mbi_Run","Notepad",DEFAULT,10,0`
MyDialog041=`000,000,000,000,MENUITEM,"mbi_Calc","mbi_Run","Calculator",DEFAULT,20,0`
MyDialog042=`000,000,000,000,MENUITEM,"mbi_Services","mbi_Run","Services",DEFAULT,30,0`
MyDialog043=`005,015,160,062,GROUPBOX,"GroupBox_1",DEFAULT,"MENUBAR",DEFAULT,90,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog044=`000,000,000,000,MENUITEM,"mbi_Favorites","Dialog_Bar","Favorites",DEFAULT,10,DEFAULT`
MyDialog045=`000,000,000,000,MENUITEM,"mbi_WinBatch","mbi_Favorites","www.winbatch.com",DEFAULT,10,DEFAULT`
MyDialog046=`000,000,000,000,MENUITEM,"mbi_MSDN","mbi_Favorites","msdn.microsoft.com",DEFAULT,30,DEFAULT`
MyDialog047=`000,000,000,000,MENUITEM,"mbi_Techdb","mbi_Favorites","techsupt.winbatch.com",DEFAULT,20,DEFAULT`

ButtonPushed=Dialog("MyDialog")

JTaylor

There is a button in the menu bar that will do the conversion.   At least there used be.

Jim

JTaylor