#87379 - 2002-08-22 07:16 AM
Kixforms: Enable and Textbox
|
Redback
Getting the hang of it
Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
|
I have a textbox that I would like to display information in, I would like to prevent users from interacting with this text box, however I would like to do this without the textbox becoming 'grayed out'
anyone know of a way to do this?
suggestions on alternative ways to display this text will also be gratefully received
Thanks
Redback
|
Top
|
|
|
|
#87383 - 2002-08-23 12:59 AM
Re: Kixforms: Enable and Textbox
|
Borte
Fresh Scripter
Registered: 2002-08-20
Posts: 29
Loc: Europe / Norway
|
I've posted this for a couple of days ago in this forum (another topic):
In VB is it possible to set an txtbox as enabled to false and locked to true to get a textbox look like an label, but with all the properties of an textbox. Is this possible in KixForms? I've tried to achive this but the textbox is always ending up with the text grayed out.
The function would be fullfilled if the forecolor of this textbox didn't change to gray but stayed the same if the value locked is true and enabled is false.
Any ideas?
I'm trying to show information to the user, but the text is to big to fit in one label field so i have to use multiple labels. Not a good solution!
Regards Borte!
|
Top
|
|
|
|
#87385 - 2002-08-22 01:08 PM
Re: Kixforms: Enable and Textbox
|
Borte
Fresh Scripter
Registered: 2002-08-20
Posts: 29
Loc: Europe / Norway
|
Yes i've changed the backcolor to the forms color before locking it. When doing that the backcolor stays the same but the forecolor is grayed out.
I't would have been great to be able to use this function to show dynamically text to the user, instead of using labels!
Can listbox be disabled and still show text in normal color? I don't want the user to be able to select the text only read it.
|
Top
|
|
|
|
#87393 - 2002-08-22 04:00 PM
Re: Kixforms: Enable and Textbox
|
Borte
Fresh Scripter
Registered: 2002-08-20
Posts: 29
Loc: Europe / Norway
|
But the cursor will still change to tell the user that this field can be edited!
|
Top
|
|
|
|
#87395 - 2002-08-22 05:23 PM
Re: Kixforms: Enable and Textbox
|
Borte
Fresh Scripter
Registered: 2002-08-20
Posts: 29
Loc: Europe / Norway
|
Yes that's correct.
In VB if you set locked = True and Enabled = False will the cursor for the textbox not change to "I" and therefore not give any hint to the user that this field can be edited or selected (of course it can't be edited or selected because its locked and disabled)
|
Top
|
|
|
|
#87397 - 2002-08-23 01:29 AM
Re: Kixforms: Enable and Textbox
|
Redback
Getting the hang of it
Registered: 2002-03-20
Posts: 71
Loc: Albury Wodonga, Australia
|
This works for me
$text.locked = 1
its not in the online manual though....
thanks Schuliebug
anyone know how to center the text in the box?
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 507 anonymous users online.
|
|
|