[fxruby-users] Best class to use
stuart_clarke86 at yahoo.com
Tue Nov 24 15:42:45 EST 2009
At present I have two text areas, one for data (input area) and one for the time stamp (date area) in two horizontal frames.
My questions are, how can I create the text field as an append-able area? For example, as a user I want to type things into the text area (input area) and I will also click buttons which will add some data to the input area also. At present when I click the buttons to add data it clears the text field (input area).
My second question is, how do I get the GUI to respond to new lines being entered into the text area (input area)? Each time a line is filled or the user hits the enter/return button I want the time to entered into the date area for the corresponding line in the input area for example
INPUT AREA DATE AREAthis is my data, i am the user (USER HITS ENTER FOR NEW LINE) Date value
I hope this is a bit clearer, many thanks
--- On Mon, 23/11/09, Lyle Johnson <lyle at lylejohnson.name> wrote:
From: Lyle Johnson <lyle at lylejohnson.name>
Subject: Re: [fxruby-users] Best class to use
To: fxruby-users at rubyforge.org
Date: Monday, 23 November, 2009, 17:23
On Mon, Nov 23, 2009 at 10:20 AM, Stuart Clarke <stuart_clarke86 at yahoo.com> wrote:
My initial thoughts are a text area for the input, but I am unsure how I can link this to an area for time stamping?
I don't think I understand what it is that you're unsure about. Are you asking how to achieve this kind of layout? I think I would put each text area/time stamp pair of widgets inside some container (e.g. an FXHorizontalFrame). Or maybe I'd put all of the text area/time stamp pairs in an FXMatrix container--actually, that sounds better. And you'll presumably want to put that outermost container into a scrolling window.
-----Inline Attachment Follows-----
fxruby-users mailing list
fxruby-users at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fxruby-users