GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Aug-2009, 04:10
umen umen is offline
New Member
 
Join Date: Aug 2009
Posts: 3
umen is on a distinguished road

How to place component on tile component


Hello all
im trying to do simple thing
placing a button on top of box , this box is one on the two parts of a tile object i did it with the fluid tool
the tile is working great but as you can see the button can't be moved with the right tile when i resize it what im doing wrong here ?
here is the code :
simple_test1.cpp
---------------------------
// generated by Fast Light User Interface Designer (fluid) version 1.0109

CPP / C++ / C Code:
#include "simple_test1.h"

Fl_Double_Window* make_window() {
  Fl_Double_Window* w;
  { Fl_Double_Window* o = new Fl_Double_Window(400, 283);
    w = o;
    { Fl_Tile* o = new Fl_Tile(10, 5, 380, 260);
      o->box(FL_FLAT_BOX);
      o->color((Fl_Color)5);
      { Fl_Box* o = new Fl_Box(10, 5, 190, 260);
        o->box(FL_FLAT_BOX);
        o->color((Fl_Color)30);
      } // Fl_Box* o
      { Fl_Box* o = new Fl_Box(200, 5, 190, 260);
        o->box(FL_FLAT_BOX);
        o->color((Fl_Color)20);
      } // Fl_Box* o
      { Fl_Button* o = new Fl_Button(265, 40, 100, 110);
        o->color((Fl_Color)177);
      } // Fl_Button* o
      o->end();
    } // Fl_Tile* o
    o->end();
  } // Fl_Double_Window* o
  return w;
}
simple_test2.h
-----------------------------------------------
#ifndef simple_test1_h
#define simple_test1_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Tile.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
Fl_Double_Window* make_window();
#endif
Last edited by LuciWiz : 16-Aug-2009 at 05:17. Reason: Please insert your C++ code between [cpp] & [/cpp] tags
  #2  
Old 16-Aug-2009, 09:02
umen umen is offline
New Member
 
Join Date: Aug 2009
Posts: 3
umen is on a distinguished road

Re: how to place component on tile component


ok sorry ignore it
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Confusion with component instantiations in VHDL aijazbaig1 Miscellaneous Programming Forum 5 12-Jun-2008 12:52
Loading A unique Component in Service netman_par MS Visual C++ / MFC Forum 0 17-Apr-2007 01:53
Place our Ads, Get 2 GB Free Webspace cancer10 Web Hosting Advertisements & Offers 0 30-Aug-2006 03:26
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 04:38

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:50.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.