Lost password? | Help

[ advanced search ]

dialog.ini syntax and problem

Forums » Opera Community » Opera for desktop » Opera browser

Friday, 15. December 2006, 05:21:29

yuku

avatar

Posts: 150

Indonesia

dialog.ini syntax and problem

For Opera Portable ( http://www.kejut.com/operaportable ) I usually modify the dialog.ini file to reduce size. Essentially I remove white spaces, comments etc. For example, the originally

[Customize Toolbar Dialog]
Title = 70627

Group, 68062, , 10, 10, 400, 325, Size
Radiobutton, 70628, Show_installed_skins_button, 0, 0, 200, 23, Fixed
Radiobutton, 70629, Find_more_skins_button, 200, 0, 200, 23, Fixed
Treeview, 0,Skin_file_treeview, 0, 30, 400, 220, Size
Button, 67218, Delete_skinconfig, 410, 30, 80, 23, Move right = Delete skin
Browser, 0, Find_mode_skins_browserview,  0, 30, 490, 220, Size
Checkbox,67503, Special_effects_checkbox, 0, 260, 300, 23, Move down
Label, 70452, 0, 0, 290, 100, 23, Move down
Dropdown, 0, 0, 100, 290, 150, 23, Move down = Disable skin coloring,,,67433 | Use system skin coloring,,,67434 | Set skin coloring, #803C00,,67435 | Set skin coloring, #BD9431,,67436 | Set skin coloring, #2FB35E,,67437 | Set skin coloring, #2F83B3,,67438 | Set skin coloring, #001E80,,67439 | Set skin coloring, #606090,,67440 | Set skin coloring, #4B0082,,67441 | Set skin coloring, #DC143C,,67442 | Set skin coloring, #900000,,67443
Label, 70630, 0, 310, 290, 100, 23, Move down
Dropdown, 0, Skin_zoom_dropdown, 410, 290, 80, 23, Move down, End


is reduced to

[Customize Toolbar Dialog]
Title=70627
Group,68062,,10,10,400,325,Size
Radiobutton,70628,Show_installed_skins_button,0,0,200,23,Fixed
Radiobutton,70629,Find_more_skins_button,200,0,200,23,Fixed
Treeview,0,Skin_file_treeview,0,30,400,220,Size
Button,67218,Delete_skinconfig,410,30,80,23,Move right=Delete skin
Browser,0,Find_mode_skins_browserview,0,30,490,220,Size
Checkbox,67503,Special_effects_checkbox,0,260,300,23,Move down
Label,70452,0,0,290,100,23,Move down
Dropdown,0,0,100,290,150,23,Move down=Disable skin coloring,,,67433 | Use system skin coloring,,,67434 | Set skin coloring,#803C00,,67435 | Set skin coloring,#BD9431,,67436 | Set skin coloring,#2FB35E,,67437 | Set skin coloring,#2F83B3,,67438 | Set skin coloring,#001E80,,67439 | Set skin coloring,#606090,,67440 | Set skin coloring,#4B0082,,67441 | Set skin coloring,#DC143C,,67442 | Set skin coloring,#900000,,67443
Label,70630,0,310,290,100,23,Move down
Dropdown,0,Skin_zoom_dropdown,410,290,80,23,Move down,End


Normally it works unchanged, but a user informed me at the comment section of http://www.kejut.com/operaportable that a dropdown is missing as can be seen here: http://img154.imageshack.us/img154/9918/op902porttabplaceip9.jpg . I looked at the dialog.ini file, and the relevant line is:

Originally:

Dropdown, ,, 120, 180, 170, 23, Fixed = Set alignment, "target toolbar", 2, 53051 | Set alignment, "target toolbar", 4, 53052 | Set alignment, "target toolbar", 1, 53053 | Set alignment, "target toolbar", 3, 53054 | Set alignment, "target toolbar", 0, 53050


Then I changed it to:

Dropdown,,,120,180,170,23,Fixed=Set alignment,"target toolbar",2,53051 | Set alignment,"target toolbar",4,53052 | Set alignment,"target toolbar",1,53053 | Set alignment,"target toolbar",3,53054 | Set alignment,"target toolbar",0,53050


With that the dropdown vanishes.

However when I changed it to:

Dropdown, ,,120,180,170,23,Fixed=Set alignment,"target toolbar",2,53051 | Set alignment,"target toolbar",4,53052 | Set alignment,"target toolbar",1,53053 | Set alignment,"target toolbar",3,53054 | Set alignment,"target toolbar",0,53050


the dropdown appears again. (Notice the space after the first comma).

I wonder whether the space is necessary? Why is it so? No problem with other lines though. Only that specific line.

Saturday, 16. December 2006, 04:17:06

sgunhouse

Volunteer

avatar

Posts: 52914

Flag City, USA

I note that space is actually a number 0 in the examples you listed before. Is that the only place where they used a space instead of a number?

Saturday, 16. December 2006, 09:58:47

yuku

avatar

Posts: 150

Indonesia

No, there are other lines such as

Dropdown, , , 120, 110, 170, 23, Fixed= View progress bar, 0,, 10222 | View progress bar, 1,, 67699 | View progress bar, 2,, 70707 | View progress bar, 3,, 53050


which is compressed to

Dropdown,,,120,110,170,23,Fixed=View progress bar,0,,10222 | View progress bar,1,,67699 | View progress bar,2,,70707 | View progress bar,3,,53050


but there is no problem with that.

Forums » Opera Community » Opera for desktop » Opera browser