Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » TextCtrl not working
TextCtrl not working [message #10233] Tue, 26 June 2007 16:46 Go to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Hi,

I need word wrap in a dialog of my app,
so I changed a LineEdit to a TextCtrl in layout editor.
That doesn't work. The ctrl frame shows garbage, i.e.
random content from some other visible window. So window
refresh somehow doesn't work. What am I missing here?

I attached a sample app. That's not the actual app I'm
developing right now. Just a toy app I did for learning
some time ago, which I modified for confirming the problem.

Guido
  • Attachment: Neatpad.zip
    (Size: 1.86KB, Downloaded 406 times)
Re: TextCtrl not working [message #10234 is a reply to message #10233] Tue, 26 June 2007 17:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
DocEdit.

TextCtrl is just a common base for DocEdit and LineEdit, it does not work alone.
Re: TextCtrl not working [message #10235 is a reply to message #10234] Tue, 26 June 2007 18:26 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Tue, 26 June 2007 17:10

DocEdit.

TextCtrl is just a common base for DocEdit and LineEdit, it does not work alone.


Alright then - works.

I tried a RichTextCtrl, but it refuses to become editable.
Also it uses a huge font, which I try to override like so:

dlg.method.SetQTF("[=2 " + recipetable.Get(0, 4).ToString() + "]");
dlg.method.SetEditable(true);
dlg.method.ClearModify();


But all that is being ignored.
Well, DocEdit works for me. So it's all good for now.

I have attached screenshots of my app's main window and the dialog in question.
Left side are the sqlite database views.
Right side is the chosen recipe composed into RichTextView.
It's a cooking recipe database, if you haven't figured.

Guido
  • Attachment: caterdlg.png
    (Size: 40.17KB, Downloaded 460 times)
  • Attachment: caterapp.png
    (Size: 111.63KB, Downloaded 432 times)

[Updated on: Tue, 26 June 2007 18:28]

Report message to a moderator

Re: TextCtrl not working [message #10236 is a reply to message #10235] Tue, 26 June 2007 19:40 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
[quote title=guido wrote on Tue, 26 June 2007 12:26]
luzr wrote on Tue, 26 June 2007 17:10

DocEdit.

TextCtrl is just a common base for DocEdit and LineEdit, it does not work alone.


Alright then - works.

I tried a RichTextCtrl, but it refuses to become editable.
[quote]

To edit rich texts, use RichEdit. It is too big to be included in CtrlLib - it is in separate package.

Quote:


Also it uses a huge font, which I try to override like so:



Try the Zoom parameter... (SetQTF).

Mirek
Previous Topic: DocEdit bug
Next Topic: Layout macro fixes
Goto Forum:
  


Current Time: Fri Mar 29 14:01:49 CET 2024

Total time taken to generate the page: 0.01248 seconds