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 21-May-2006, 15:14
Cycrul Cycrul is offline
New Member
 
Join Date: May 2006
Posts: 2
Cycrul is on a distinguished road

Input class problem


Hi,

I've got a problem, I created field:

NumericInput* field = new NumericInput(...);

And now I have no idea what should I do to make Input text starting at right side of this field (default setting is that it starts at left side).

Will be thankfull for SB's help.
  #2  
Old 21-May-2006, 20:43
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough

Re: Input class problem


Hello and Welcome to GIDForums™ Cycrul. A few things will be helpful to get good responses.

Let us know what version (be very specific) of FLTK you are using. If you work from a snapshot, SVN etc. There is currently a lot of work going on with the 2.0 line so knowing how you build FLTK can be very helpful. That goes for 1.1.7 (or current SVN revision) as well.

Post some code that you are having the problem with. That can be the best way to get people to try out what you are having trouble with and offer solutions that work with your current code. When you do that, please read the Guidelines Thread for information on the code tags. I prefer the [c++] for FLTK code.

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
  #3  
Old 22-May-2006, 01:49
Cycrul Cycrul is offline
New Member
 
Join Date: May 2006
Posts: 2
Cycrul is on a distinguished road

Input class problem


Thanks for info how should i post my prolem, here's what I have trouble with:

CPP / C++ / C Code:
#include <fltk/window.h>
#include <fltk/widget.h>
#include <fltk/run.h>
#include <fltk/numericinput.h>

using namespace fltk;

int main( int argc, char** argv)
{
   Window* window = new Window(300, 180);
   window->begin();
   NumericInput* field = new NumericInput( 80, 100, 140, 20);
   field->value( 2093);
   window->end();
   window->show( argc, argv);
   return run();
}

Everything works fine, but the problem is that in this NumericInput field I got 2093 and I am trying to display it at the right side of this NumericInput field that i created. The default setting (when I use the code i posted here) I got this number displayed at the left side of my NumericInput. Don't know what member of NumericInput class hierarchy I should use to have it done

field-> ????

If somebody would also have an idea how to make this annoying cursor disappear in this Input field I'd be also thankfull.

I'm using FLTK 2.0 downloaded from www.fltk.net, where is also a reference in html for this library. It is made as DEV-C++ package.
 
 

Recent GIDBlogProblems with the Navy (Enlisted) 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
a tester class and then some. postage Java Forum 1 06-May-2006 15:48
Inheritance problem CaptnB C++ Forum 2 27-Jan-2005 08:09
Error C2146: syntax error : missing ',' before identifier 'C4' mattchew008 C++ Forum 2 19-Dec-2004 06:06
hashing help saiz66 C++ Forum 1 06-Jul-2004 06:16
problem with creating class mohammed C++ Forum 1 11-Oct-2003 09:04

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

All times are GMT -6. The time now is 18:52.


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