Question about frames

Started by Iulian, March 13, 2012, 06:06:00 AM

Previous topic - Next topic

Iulian

Hi, I have a question about frames.
In my project, on the second form named "NC Program" I have a list box (from the right in the movie) which contains 2 (two) text lines and 6 (six) frames. One of the frames  (from the right in the movie) contains labels and text boxes. Now, my Lisp file has some lines which sets on INVISIBLE some labels and text boxes (they are commented with "first line" and "last line" in the lisp file, and in the movie bellow appears in the first 6 seconds. Lisp file is loaded; between the 0:37-0:45 sec can be seen the the code effect: when the first line from the right text box is clicked, nothing disappears  from the right frame, and when the second line from the right text box is clicked, some labels and text boxes disappear, with all the frames.

My question is: why the frames comes INVISIBLE without  using the corresponding property? The properties are not for the frames?

Further, I used the properties which sets the frames on VISIBLE, but blinks all the frames (2:30-2:36 sec), and I need to eliminate this. So, what should I do in order to solve this?

There are three loads:
in the first one the labels and text boxes should come invisible without the frames,
in the second one are hidden the properties in order to demonstrate that the frames comes invisible by their fault,
and the last one contains the properties which make visible the frames.
Frame.avi
Thanks in advance.

owenwengerd

I'm not sure I understand the problem, but it sounds like it could be a case of overlapping transparent controls (which is not supported in Windows). If your frame controls' background color is transparent, try giving them an explicit background color.
Owen Wengerd (Outside The Box) / ManuSoft

Iulian

I can not find the property that can change the frames background color.
...finally, I solved my problem moving the LISP lines that make INVISIBLE my labels and text boxes, somewhere on the beginning of my event...
If it is possible to set a color for frames, how can I do this? I searched the "Background color" property, but it is not in the frame`s properties pane.

Thanks.

Fred Tomke

Hi,

try a (mapcar 'dcl_control_redraw (dcl_Form_GetControls gaura_Form4)) at the end of OnClicked event.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Iulian

Hi Fred, doesn't work...in addition, both option lists disappear with the frames if I use (dcl_Form_GetControls gaura_Form4) method.
I used dcl_MessageBox function in order to see which property triggers my error, and I observed that if I use dcl_MessageBox function exactly before the first property (which makes my first text box INVISIBLE), after I press the OK button from the message box, the error is avoided.

Thank you for your reply.

Fred Tomke

Hi, that means that the form has to be redrawn. Windows doesn't anything else than to redraw the form when it comes back to the front.
Have a try with (dcl_Form_RecalcLayout gaura_Form4) and (dcl_Control_Redraw gaura_Form4) at the end of OnClicked event.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Iulian

Hi, I used both methods... and the result is the same...in the movie below are presented three loads:
- in the first one - I used both methods (one after another). When the first line from the right list box were clicked, all the frames an option lists were disappeared. they appeared after the mouse was moved...
- in the second one - I used the (dcl_Form_RecalcLayout gaura_Form4) method, and the "error" appeared only after the second line from the list box was clicked. Must be said that at OnClick event is used a COND function with 4 directions (and the lines from the list box follows different directions).
- in the last one - I used the (dcl_Control_Redraw gaura_Form4) method; the result is the same with the result obtained in the first case.

thank you for your interest.

frame2

Fred Tomke

Hi, which backgroundcolor does your form using?
Would it be possible to send me your project?

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Iulian

Hi, I set "-24" backgroundcolor onto my form (transparent...which is the default value...I guess). I changed that value, and nothing changes.

It is weird the fact that if the lines which trigger my error are moved in front of another lines (responsible with setting text in some text boxes), the error does not appear anymore.

Unfortunately, I can not send you my project, because it is part of my PhD thesis.

Now, considering that somehow I solved my problem (moving some text in another place in my LISP file), remains a curiosity regarding this error...

Thank you again for all your replies.



owenwengerd

All you have said indicates that the problem is due to overlapping transparent controls.
Owen Wengerd (Outside The Box) / ManuSoft

Iulian

Hi Owenwengerd.
How could I change the frame`s background color? I look after Backgroundcolor property, but is not in the property pane. Is there another property which can change the frame background color?

Thank you.