Android Spinner Action Bar removing underline - android-actionbar

http://i.stack.imgur.com/OGxbu.png
Above is image of my action bar.
First question.
How do I remove that underline below text "Hot Picks" but keep bottomRight triangle?
Second.
How do I make topLeft icon not have padding?
Thanks :)

I have meet the same problem once; but I solved it now; You can see it here:https://stackoverflow.com/a/17854265/2618051

Related

How to add a scroll bar at the move list view? And user can only scroll specific area vertically

I am using MVC for my project. And I have few views in View. However, I want to know how to add a scrollbar to one view and only make that part can be scrolled vertically.
I have tried using CreateWindowW() for adding WM_VSCROLL parameter, but it does not work.
This is a TUI application, so I think the professor try to make us using a cell as bar, so you can scroll the cell up and down
In PreCreateWindow(CREATESTRUCT& cs), set cs.style |= WS_VSCROLL;.
You may have to respond to WM_VSCROLL to process scroll messages.
Sorry for the confusing. I am resisted to use TUI only. And I misunderstood what the professor needed. So he wanted us to move a color cell so you can scroll up and down for checking player's moves. I am making a Gomoku Game by using C++. So I figure it out, right now my move list view can move up and down for viewing full moves. Thanks for all the answers
enter image description here

Remove Qt widget layout's margins

I want to remove the spacing marked as red lines in the screenshot.
I set layout's contents margins to (0,0,0,0), re-sized parent widget to minimum but still can not get rid of those spaces.
This only happens on Mac.
Looking for some help.
Thanks in advance!
As nnb told, welcome to the weird size policies on mac.
But you can wrap layout to widget and crop margins.

Can we have border on all sides for a control in a dialog in a C++ MFC application?

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

MFC rich edit control's scroll bar issue

I am developing an application for Right to Left reading. I'm inserting a file data into a rich edit control. When the data crosses width of a control, it introduces a horizontal scroll bar. But this scroll bar is put to left end instead of right end.
I tried with some try outs as follows:
1)Changed rich edit styles for Right to Left reading & right aligned text.
2)Sent an explicit Scroll bar message, to set it at right extreme.
3)Retrieved scroll bar's info & set its position to Maximum.
But none worked.
Is there any way to make it right aligned by default?
Thanks in advance.

MFC add scrollbar to CWnd member

I have a member of CWnd class name mywindow
and i want to add to it a scroll-bar.
how i can do it?
i try already to do:
mywindow.EnableScrollBarCtrl(SB_BOTH,TRUE);
it display both Horizontal and Vertical scroll-bars,
but i cannot push the buttons or move the scroll-bars.
i try also after the first command:
mywindow.EnableScrollBar(SB_BOTH,ESB_ENABLE_BOTH);
and it change nothing.
can someone could show me a simple example how to add scroll-bar to this member?
thanks a lot,
Tal
Enabling the scroll bars isn't enough. You have to react to the window messages WM_HSCROLLand WM_VSCROLL. Using the GetScrollInfo method you get the position (value) of the scroll bars and then you draw your window content according to this position.
Look up some scroll bar tutorials such as http://www.codeproject.com/KB/dialog/scrolling_support.aspx . In essence, dwo's comment above is what you need to do - handle those messages and set the virtual client area size.
There must be some 'overflow' before scroll bars became active.
Write some 'sufficiently long' data in your view and the scrollbars will become active (at least, that was my experience time ago).
Usually scroll bars get handled 'automatically' from MFC components like (for instance) text editor or form view. I.e. will became visible when needed also without explicit call EnableScrollBarCtrl ...