![]() |
|
#1
|
|||
|
|||
use of fluidDear all,
I am new in fluid of fltk. I compiled it on my machine (Linux platform). Now I want to make one application. It should look like Display ______________________ ( button 1 ) ( Button 2) when I pressed button 1 it should print "you pressed button 1" in Display,same function for Button 2. Help me ..... thanking all of you shiva kumar |
|||
|
#2
|
|||
|
|||
Re: use of fluidDear all and admin ,
You did not reply simple post. I tried little bit .........cable_guy tutorial help me ....... here is my program .....details of all files generated by fltk are:- My dis.fl is :- Code:
CPP / C++ / C Code:
"My dis.cxx file is :-" CPP / C++ / C Code:
Code:
Thanking all of you shiva kumar Last edited by cable_guy_67 : 12-Apr-2008 at 06:10.
Reason: Added [CODE] tags for Fluid file and [CPP] for C++ code
|
|
#3
|
|||
|
|||
Re: use of fluidMy system configuration is :-
fedora 8.90(werewolf) kernel 2.6.23/-42.fc8 on i686 gcc :-4.1.2 fltk-2.0.x-r6086 shiva |
|
#4
|
||||
|
||||
Re: use of fluidI don't use fltk2.0 but is there some reason you have a mix of 2.0 and 1.1 code in there? Is that what Fluid 2 is outputting?
If I can get 2.0 to build I'll see what I can do but until then hopefully someone can help you out. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#5
|
||||
|
||||
Re: use of fluidJust as I thought, 2.0 is in an uncompilable state (by me with cygwin anyhow) at present. I could give it a try with an old revision (5973 in subversion) but it most likely wouldn't work for you.
Instead, I'll show an example for fltk 1.1.9, which is the current working version in subversion. It should also work the same with 1.1.8final which is the stable release. Fluid file : Code:
Generated .h file : CPP / C++ / C Code:
Generated .cxx file : CPP / C++ / C Code:
I would suggest using FLTK 1.1.8 as it works great. In the future this codebase is going to be migrated to 1.3 which should be,
You should still be able to see what is going on if you look at my fluid file. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#6
|
|||
|
|||
Re: use of fluidDear cable guy,
I realized it before, that there is no error in coding.I had problem in version and program. Thanking you for your reply......you are right ......I was trying fltk 1.X program with 2.X version .I thought that was the problem. My program are dis.cxx :- CPP / C++ / C Code:
dis.h is :- CPP / C++ / C Code:
and my dis.fl is :- Code:
shiva kumar Last edited by cable_guy_67 : 12-Apr-2008 at 10:24.
Reason: Added [CODE] tags for Fluid file and [CPP] for C++ code
|
|
#7
|
||||
|
||||
Re: use of fluidQuote:
You are welcome, glad to be of help. Quote:
You still are trying to use some 1.1.x stuff. You can just get rid of those lines as you already included the 2.0 versions. In fact, you should be able to get rid of all the decl blocks since the generated .h file takes care of anything you add in fluid. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#8
|
|||
|
|||
Re: use of fluidThanx
I removed the headers ....It is working perfectly. bye shiva kumar |
|
#9
|
|||
|
|||
Re: use of fluidShiva.
Check these out: ideos here: http://seriss.com/people/erco/fltk-videos/ It has the compilation, fltk examples + fluid. There are many source examples here on Erco's Cheat page: http://seriss.com/people/erco/fltk/ And more in C:\fltk-1.1.8\documentation When you manage to compile the projects, you will get executables in: C:\fltk-1.1.8\test You should also get the manual at: http://www.fltk.org/doc-1.1/fltk.pdf Frank |
|
#10
|
|||
|
|||
Re: use of fluidThanks .....
Its vey good link. regards shiva |
Recent GIDBlog
Updates On The All New Toyota VIOS - Part III by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FLTK && fluid In Motion | cable_guy_67 | FLTK Forum | 4 | 20-Mar-2008 03:52 |
| Fluid with Code::Blocks tutorial | bluekid | FLTK Forum | 4 | 25-Aug-2006 06:52 |
| GIMcontacts - a gim fltk fluid venture | cable_guy_67 | FLTK Forum | 0 | 14-Feb-2005 14:18 |
| Fluid, classes and callbacks | cable_guy_67 | FLTK Forum | 7 | 06-Feb-2005 13:22 |
| Any disadvantages with FLUID? | r2matthews | FLTK Forum | 4 | 14-Nov-2004 17:49 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The