THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/12/2006 at 10:45, xxxxxxxx wrote:
Robert,
thank you for your prompt answer. I must admit, I am quite new to COFFEE, so maybe there is some really simple mistake, which I haven't noticed.
The dialog is for an expression tag plugin.
In the .cof file I have included the .col file in which the actual dialog is build. I have not used any enums or other files (don't quite understand them yet).
As for the structure, here is a code sniplet (don't laugh, this is quite chaotic) from the .cof file:
...
...
MyExpressionPluginTag::Edit()
{
var d=new(dialog,fade_in,anim_in,anim_start,anim_speed,anim_offset,move_x,move_y,move_z,pe_inx,pe_iny,pe_inz,rot_X,rot_Y,rot_Z,re_inx,re_iny,re_inz,extrude_amount,scalex,scaley);
if(d->Open(-1,-1))
{
fade_in=d->fade_in;
anim_in=d->anim_in;
anim_start=d->anim_start;
anim_speed=d->anim_speed;
...etc...}
All variables used are globally declared.
This is from the .col file:
class dialog : GeModalDialog
{
public:
dialog(in_fade,in_anim,start_anim,speed_anim,offset_anim,_X,_Y,_Z,inx_pe,iny_pe,inz_pe,rot_X,rot_Y,rot_Z,inx_re,iny_re,inz_re,amount_extrude,x_scale,y_scale);
CreateLayout();
Command(id,msg);
var obj,T,anim_in,anim_out,anim_start,anim_speed,anim_offset,move_x,move_y,move_z;
var pe_inx,pe_iny,pe_inz,re_inx,re_iny,re_inz;
var rotate_x,rotate_y,rotate_z,fade_in,fade_out,extrude_amount;
var scalex,scaley,scalez,se_inx,se_iny,se_inz;
}
dialog::dialog(in_fade,in_anim,start_anim,speed_anim,offset_anim,_X,_Y,_Z,inx_pe,iny_pe,inz_pe,rot_X,rot_Y,rot_Z,inx_re,iny_re,inz_re,amount_extrude,x_scale,y_scale)
{
...
...etc.
If I take away the scaley- respectively the y_scale-variable/parameter, everything works like charm.
I must admit, that I don't entirely understand why I have to declare all values twice (public and dialog:dialog), but that's another problem ;-)
As for a missing group terminator - that of course happened before, but mostly the only result was a messed up dialog box without any error messages.
Maybe you have an idea, your help is greatly appreciated.
If you need the files, I can post them, too.
Thank you very much
André