-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support TBTextField formatting #70
Comments
That's correct. It makes single line items extra fast. But since it's possible to mix widgets any way you want, you can just put a TBEditField inside something else if you require formatting. The demo does this for a button like this:
|
But I just tried putting a TBEditField inside a TBTextField, and the content doesn't appear, what gives? |
This is what I'm doing with the demo-
|
Also, is there a way I could attach a menubar to the "top" of the client area, sort of like an MDI window? |
TBTextField is pretty eager to resize to its own text size (See TBTextField::OnCalculatePreferredContentSize) which is why you don't see the containing widget, or other widgets (issue #71). There's very little point in putting the TBEditField inside TBTextField though. Both implement SetText, so just drop the TBTextField and use TBEditField directly. A menubar at the top should work fine i think. I haven't tried though. |
I just remembered something i thought about a long time ago. I think the stuff inside the top of TBWindow should be put inside an TBLayout so it's a bit easier to inject extra buttons to windows, put TBEditFields there or whatever. Is styled window title what you want to achieve? |
No, I'm trying to style TBTextFields with simple HTML-like tags (bold, italic, underline) for a network-enabled client that I'm working on with a colleague. We're going to send TB layout information to the client who then handles creating the window and laying it out. |
Also, the problem with using TBEditField is that we don't want users to be able to select and copy text in/out of the application, since you may be dealing with sensitive information (personal information, since this is a network client, after all.) |
Ok. TBTextField won't do it, and i don't think it should. |
And I was thinking about bundling python bytecode to provide some level of client-sude automation, would it be very difficult to bind python to the "forms"? |
Oh, by the way- we seem to be having issues compiling in FreeType support under Win32. Is there a trick to doing it? |
seems like this issue is solved and can be closed? |
Hi,
While playing with the turbobadger demo application, I noticed that TBTextField doesn't appear to support formatting (font sizes, etc.). Perhaps I'm just doing it wrong(tm)?
Thanks!
The text was updated successfully, but these errors were encountered: