http://code.google.com/p/fivewin-contri ... p&can=2&q=
It already generates the variable names for all the groups and buttons
Example
Code: Select all
local oRBar, oGr1_1, oGr2_1, oGr3_1, oGr1_2, oGr2_2, oGr1_3, oBtn1_1_3, oBtn2_1_3
DEFINE RIBBONBAR oRBar WINDOW oWnd PROMPT "One", "Two", "Three" HEIGHT 134 TOPMARGIN 25
ADD GROUP oGr1_1 RIBBON oRBar TO OPTION 1 PROMPT "new" WIDTH 201
ADD GROUP oGr2_1 RIBBON oRBar TO OPTION 1 PROMPT "new" WIDTH 201
ADD GROUP oGr3_1 RIBBON oRBar TO OPTION 1 PROMPT "new" WIDTH 201
ADD GROUP oGr1_2 RIBBON oRBar TO OPTION 2 PROMPT "new" WIDTH 201
ADD GROUP oGr2_2 RIBBON oRBar TO OPTION 2 PROMPT "new" WIDTH 201
ADD GROUP oGr1_3 RIBBON oRBar TO OPTION 3 PROMPT "new" WIDTH 201
@ 3, 3 ADD BUTTON oBtn1_1_3 PROMPT "new" GROUP oGr1_3 ACTION MsgInfo( "click" ) SIZE 80, 83 BOTTOM
@ 3, 83 ADD BUTTON oBtn2_1_3 PROMPT "new" GROUP oGr1_3 ACTION MsgInfo( "click" ) SIZE 80, 83 BOTTOM