Text Edit draw order

For general discussion related FlowStone
Post Reply
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Text Edit draw order

Post by adamszabo »

The text edit in FlowStone seems to not follow the standard rules that we are used to when drawing. Is this a general way in all applications or just in flowstone? My problem is that, I have the text edit drawn first in the view, then I added a opaque rectangle on top of it. So first textedit then rectangle. According to flowstone logic, the square shoudl always be over the textedit, so the editor should be underneath but it seems to pop on top. Is there a way to put it underneath somehow?
Attachments
textedit.fsm
(640 Bytes) Downloaded 899 times
TheOm
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: Text Edit draw order

Post by TheOm »

The edit box is a standard windows control that all applications can create. It is actually a child window of your window and as such will render in front of whatever flowstone has drawn.
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Text Edit draw order

Post by adamszabo »

Hmm, I see. Then is it possible to have an alpha (no color) on the text edit background? It seems It can only contain solid colors and not transparent ones.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Text Edit draw order

Post by tulamide »

Although there are ways to tweak a window's appearance, it involves the Windows API. No direct manipulation from Flowstone. If I recall correctly you can set colors for background and text (no alpha) from within Flowstone, so at least you can make it more adapted to your color scheme.
Others had solutions like their own text edit frame, where the real text edit is opened outside the view, giving you the impression of directly typing in place.
"There lies the dog buried" (German saying translated literally)
Post Reply