Anirban wrote:
> Whats IIRC?
http://www.netlingo.com/lookup.cfm?term=IIRC
Most folks on public forums should be familiar with the acronyms
IIRC, WRT, BTW, AFAIK, FAQ, FWIW, HTH, OTOH, PITA, RSN, TIA, YMMV.
Any others you can usually look up easily by googling for them
with "XXX acronym", XXX being the acronym in question.
One acronym particular to this newsgroup is STR (Software Trouble
Report).
> Mouse events don't work even though the widget is inside the x,y,w,h
> area of the group. There goes my code snip:
Can you send actual compilable code?
In the code included we don't know what the macro values are,
what's in InitShape() [there might be widget definitions that
occlude the others] and we'd have to reconstruct what you already
have to determine if it's a bug or misuse.
Also it puts the burden on the masses to reconstruct your code,
when it's better if you make the effort to make it clear, otherwise
folks won't answer because they don't want to go to the trouble.
And if we reconstruct, we'll probably write the missing bits in
ways that make the code work inadvertently, blurring the problem.
Best thing is to give us a small /compilable/ program that
has all the extraneous stuff removed that demonstrates the problem.
One thing I noticed is that you have LENGTH and WIDTH transposed
in the definition of the window and tabs, but have it right for
the Fl_Group's. When I increase the value of WIDTH, the window's
height changes. So that might be the problem..
> int main(int argc, char **argv)
> {
> /* Initialization */
> Init_Shape();
> int X,Y;
> X = Y = 0;
> Shapeid = -1;
> mainWindow = new Fl_Double_Window(LENGTH, WIDTH, "Shape");
> mainWindow->size_range(LENGTH, WIDTH, LENGTH, WIDTH);
> // menubar Initializations
> // adding menubar as a child of the main window
> Y+=25;
> Shap_Obj = new Fl_Tabs(X+5, Y, LENGTH-10, WIDTH-50);
> { Shap = new Fl_Group(X, Y+20, WIDTH-50, LENGTH, "Label1");
> Shap->selection_color((Fl_Color)1);
> new Fl_Input(60, 50, 240, 40, "input:");
> new Fl_Input(60, 90, 240, 30, "input2:");
> { Fl_Button* CrButton = new Fl_Button(550, 60, 100, 30, "Create
> Object");
> CrButton->callback((Fl_Callback*)createcb);
> }
> Shap->end();
> Fl_Group::current()->resizable(Shap);
> }
>
> { Fl_Group *obj = new Fl_Group(X, Y+20, WIDTH - 50, LENGTH, "Object");
> obj->selection_color((Fl_Color) 1);
> obj->color((Fl_Color)238);
> obj->labelcolor(FL_BACKGROUND2_COLOR);
> obj->labelfont(2);
> obj->labelsize(14);
> obj->align(130);
> obj->hide();
> Fl_Slider* coordx = new Fl_Slider(FL_HOR_NICE_SLIDER, 20, WIDTH-65,
> WIDTH-150, 10, "");
> new Fl_Box(FL_DOWN_FRAME, 20, 50, WIDTH - 150, WIDTH - 150, "");
> int x = 550;
> int y = 48;
> y += 25;
> ObjTypInp =
> new Fl_Choice(x, y, 175, 25, "Geometrical Nature(Shape):");
> ObjTypInp->menu(GeomNat);
> ObjTypInp->callback(ChangeShapeid);
> y += 30;
> Fl_File_Input *FileTag =
> new Fl_File_Input(x, y, 200, 30, "Filename:");
> FileTag->callback(cb);
> FileTag->when(FL_WHEN_RELEASE);
> y += 30;
> obj->end();
> }
> mainWindow->add(Shap_Obj);
> mainWindow->end();
> mainWindow->show(argc, argv);
> return Fl::run();
> }
> **********************************************************************
> Widgets such as Fl_tabs, Fl_group, Fl_File_Input, Fl_Buttons (The once not
> borrowed from the tabs.cxx)are declared in extern.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk