anyone have a thought why I get these rectangular borders inside buttons like this? thanks!
Related
i'm learning C++/CLI and i was asking myself if there's any way to customize form's frame parameters such as:
Corner radius
Close,maximize and minimize buttons appearance and position on the actionbar
Border color and thickness
but i found nothing on google about this, does someone know how to do it?
The only idea i have could be to set Formborderstyle to none and drop down on the form those elements again:
Label with custom background for the actionbar
3 Buttos for Close,Maximize and Minimize
But i should then re-do the listener for the label when is holded by the mouse for re-positioning, what do you think?
Generally if u add any control Eg: a rich text, the left and the top portion of the control will have thick borders.But the bottom and the right side of the control do not have borders. Is there any way to add borders to all sides. The border property has only true or false option, i don't want to take off the borders but have the borders unique on all sides. Please let me know if there are any ways.
Sorry i was unable add images earlier as i didn't have enough reputations. Please note the below image where the left and top borders of the rich text box are thick but the right and the bottom part and plain. I want all sides with borders even.
Anyways?.
I’ve answered a very similar (may be duplicate) question recently. You can check “Want to show colored box around Richedit control in MFC at runtime”. That question asked for a yellow colored border. To answer your question, it requires you to derive your own class from CRichEditCtrl, override OnNcPaint, and a simple modification of the sample (OnNcPaint) code I presented in that post:
CPen pen;
COLORREF color = ::GetSysColor(COLOR_3DDKSHADOW);
pen.CreatePen(PS_SOLID, 5, color);
dc.SelectObject(pen);
dc.Rectangle(&rect);
The above would result in...
Note: You can adjust the border color by changing the parameter of ::GetSyscolor
I just created as Magellan nav bar. I've managed to change the background colour and the font in the bar, but I'm wondering how I go about changing the "highlight" colour? At the moment, the default colour is a dark blue greeny colour.
Sorry if this is a really simple question, but I can't seem to find anything in the css....
add this to your css
.sub-nav dd.active a{
background:#000000
}
I have a QGroupBox widget that I am animating off the screen. The problem is that I only want to show certain parts of the group box. For example if the widget is 200 pixels in width how do I only show the first 100 pixels with out changing the size of the widget and making the layout go funny?
Thanks in advance
I have come up with a solution. By placing the widget inside of another group box and animating it to move out side the bounds of the group box produces the desired result.
I need to create a progress bar with rounded corners in a MFC application. I have tried using a combination of CreateRoundRectRgn() and SetWindowRgn(), which has the effect of making the control disappear completely. I also tried using a transparent GIF overlay that would be drawn on top of the progress bar, but I could only get the overlay to be drawn behind the progress bar. Any suggestions?