[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C_TextIn in a command pane

Dan Osborne wrote:
> Hello all,
> My V voyage of discovery continues but having battled with the following
> problem for a while now I wonder if anyone can help.
> I have a C_TextIn and C_Button (for OK) in a vCommandPane. Clicking on the
> button I can trap in myCmdWindow but I can't get at the value in the
> C_TextIn control.
> The examples in the V Reference use Modal Dialogs which wouldn't fit my aim.
> The vCommand reference says ...
> "You then handle the command objects in a command bar pretty much like the
> same way as in a dialog. The main difference is that you use the vWindow
> versions of SetValue and WindowCommand instead of the corresponding methods
> of the vDialog class"
> so I'm looking at ...
> virtual int GetValue(ItemVal itemId)
> Reference for this says ...
> "For other command objects, the value returned will be appropriate as
> described in the Dialog Commands section."
> But I can't see how to get the equivalent of GetTextIn from this.
> Please point me in the right direction - should I be using a Dialog Pane
> instead?
> What I'm heading for BTW is the entering of a search value into the
> C_TextIn, the value of which is passed to a canvas pane  function that
> selects the appropriate records out of the database and displays the
> resulting data. This pane is now a TextEditor to provide scrolling as per my
> previous guidance!
> Thanks in anticipation
> Dan Osborne
> Specialist Business Solutions Ltd.
> --
> To UNSUBSCRIBE, email to other-vgui-discuss-request@other.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@other.debian.org

Well, believe it or not, after over 5 years and 1000's of users, you are
the first
to want to try to do this. And you should be able to, except that the
vWindow version
of GetTextIn never got implemented - the dialog version is there, but
not the
vWindow version. Sigh. It will be in the next release - v 1.24, in a
month or so.

Bruce E. Wampler, Ph.D.

Author of the V C++ GUI Framework

e-mail: mailto:bruce@objectcentral.com
web:    http://www.objectcentral.com

Reply to: