Skip navigation.
Home
The QNX Community Portal

View topic - textbox

textbox

Isn't the name clear?

textbox

Postby swethasom » Thu Dec 11, 2008 9:45 am

Hi,

I have to create an photon apllication where, a text box must be placed within an table, and the textbox must be invisible. It must be visible only when its been clicked or while entring any data to it, which gives a format of editable table.
Can u please help me how to go with it.
swethasom
Active Member
 
Posts: 13
Joined: Tue Dec 09, 2008 11:20 am

RE: textbox

Postby micro » Thu Dec 11, 2008 11:07 am

PtMultiText, for getting it invisible just set the right Resources (no border, no edge, same bgcolor etc. etc. etc.)
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

RE: textbox

Postby swethasom » Thu Dec 11, 2008 11:37 am

micro wrote:PtMultiText, for getting it invisible just set the right Resources (no border, no edge, same bgcolor etc. etc. etc.)
Hi Sir,

Thanks for your reply.

I tried with what u told now, but if i want the
The Text Box to be within the table, nd not be visible.
The Complete Text box must be visible only when it has been clicked.
I must also generate multiple Text box of the similar type within the table.
what can be done.
Can u please help me how to go with it.
swethasom
Active Member
 
Posts: 13
Joined: Tue Dec 09, 2008 11:20 am

RE: textbox

Postby juanplacco » Thu Dec 11, 2008 1:47 pm

Which is the container widget of the TextBox?. I'm not sure what you are calling Table. Which bkg colour have that container? Did you try to turn off Pt_HIGHLIGHTED flag?
juanplacco
Senior Member
 
Posts: 318
Joined: Wed May 17, 2006 2:30 pm

RE: textbox

Postby micro » Thu Dec 11, 2008 4:28 pm

mh, talking about table i guess you would like to have a behaviour like spreadsheets/Excel/whatever

This won´t be that easy then, try working with PtRaw and Drawing yourself.
Another version would be a Grid by PtText (PtMultiText with inital 1 line).
micro
Senior Member
 
Posts: 458
Joined: Thu Jul 22, 2004 8:41 pm

Postby swethasom » Thu Dec 11, 2008 4:34 pm

Hi Sir,

The Container widget for the text box is the Tree widget.

I am sending u the application in the attachment, which i have tried.
In the above Application:

1. A table is displayed with two columns.
2. Where only one column is in editable format.
3. The values are added to it using an Text widget.
4. The Text widget is placed away from the table.
5. The values are added through the Text widget into table by a click on a button widget.


We want the Application in an better way:

1. The Text widget is placed inside the table.
2. And should be visible only when click.
3. The Text widget must be invisible.
4. It must be visible only when entering value into the table.
swethasom
Active Member
 
Posts: 13
Joined: Tue Dec 09, 2008 11:20 am

Postby swethasom » Thu Dec 11, 2008 4:50 pm

hi.
swethasom
Active Member
 
Posts: 13
Joined: Tue Dec 09, 2008 11:20 am

Postby juanplacco » Thu Dec 11, 2008 8:17 pm

The attachment?
juanplacco
Senior Member
 
Posts: 318
Joined: Wed May 17, 2006 2:30 pm

Postby swethasom » Fri Dec 12, 2008 4:09 am

ok
Last edited by swethasom on Tue Dec 16, 2008 6:07 am, edited 4 times in total.
swethasom
Active Member
 
Posts: 13
Joined: Tue Dec 09, 2008 11:20 am

Postby swethasom » Fri Dec 12, 2008 5:04 am

I have posted my application
Last edited by swethasom on Tue Dec 16, 2008 6:05 am, edited 1 time in total.
swethasom
Active Member
 
Posts: 13
Joined: Tue Dec 09, 2008 11:20 am

Postby swethasom » Tue Dec 16, 2008 6:01 am

attachment
swethasom
Active Member
 
Posts: 13
Joined: Tue Dec 09, 2008 11:20 am


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests