I am still trying to learn the ins/outs of FF. I am currently trying to duplicate a EZGUI program in FF and here is the hurdle I am running into.
I have 2 tab controls (a tab on a tab) and I have the WS_EX_CLIENTEDGE & WS_EX_DLGMODALFRAME properties set for both. This normally give me a sunken edge with a nice frame. What I am seeing is the auto size of the child form tends to overlap the frame on some of the sides and doesn't result in the desired look at all. I have tried turning off the auto size and manually adjusting the child forms, but still haven't got the desired look.
I don't know if this is something that FF could compensate for internally if the above properties are set or not. Maybe someone has an easier solution.
Thanks,
Gary
Added....this maybe the nature of the tabcontrol and the TabControlChild, but I if turn off the auto size option and then try to manually set the TOP and LEFT values, the child form always stays in the upper left corner of the tab control.
Is this normal?
Gary
Thanks Gary - I will check why the child forms are overlapping the edge. I do know that I am using GetSystemMetrics() to get the size fo the edges... but maybe I am retrieving the wrong values.
I will report back.
Thanks Paul!
In regards to my second post, should I be able to manually move the child forms by setting the TOP and LEFT values or will they automatically be locked to the TOP/LEFT corner of the tab control?
Thanks,
Gary
The way that I have designed it, the top/left is fixed. Maybe that is not the best idea?
Just my opinion, but I think allowing the user to adjust the TOP and LEFT manually would make things easier. If I had that ability, I could manually adjust the child forms to compensate for the overlap.
Thanks,
Gary
I totally revamped the TabControlChildAutoSize routine. Now relies on TabCtrl_AdjustRect to properly calculate the Form size. Also, the TOP and LEFT values for the Form are code outputted as well.
Fix will be in v3.05.
Paul,
v3.05 is much improved with this issue. I don't mean to nit pick things and now that I can manually adjust the TOP and LEFT settings, I can get the desired look, but I will mention what I am seeing. With auto-size on, the form is like 1 pixel to wide/tall. If I set TOP =1 and LEFT = 1 and then shrink HEIGHT and WIDTH by 1 less, the child form doesn't overlap the wide border.
By no means is this a show stopper and the fact that I can manually adjust things works out fine. If the auto-size feature took the above into account, I am not sure how it would affect things if the wide border wasn't used.
Thanks,
Gary