Style of LWUIT ComboBox - java-me

I'm working in a project and use LWUIT, I want to make a custom style for Combobox and Successfully after a lot of search I have made it by changing the cell renderer and the look and feel to change arrow icon
the problem now that the white space around my items I want to remove them, how can I do that please

You should start setting the padding/margin entries for various styles to 0, we changed the styles here a bit at Codename One so i don't quite recall everything but try PopupList, PopupItem, ComboBoxPopupList, etc.

Related

Acumatica - Changing textbox Font Color based on value

I've been trying to modify the Projects (PM301000) screen summary area to change the font color of the totals to red when it's in negative value but I can't make it work. I've tried several javascript codes and saw that this is working on a button Dynamically Change Button Color
but I can't make it work on the PXNumericEdit control specifically the totals in the Projects screen.
Projects screenshot
Any idea on how to make it work? Thank you.
You should try changing the CSS via an event handler in the aspx code behind file. See this article

How do I allow user to select, but not edit, text in an excel userform control whose width is smaller than the text?

Context
I want the user to review some selections they made earlier. So I display some text describing each selection on a separate control in a userform. Some of the text on the controls is long, extending beyond the width of the control. This is fine; I just want the user to be able to see all of the text without being able to edit it. To do this, I use textboxes that are "Locked" (i.e. not editable) but "Enabled" (i.e. selectable). This way, they can just click and either mouse-drag or arrow-key over to scroll through all the text.
Problem
The (small, aesthetic) problem is that when the user clicks in one of the textboxes, they get a blinking cursor, which is misleading as that is normally associated with an editable textbox.
Possible solutions
Ideally, there would be some way of removing the blinking cursor, while still allowing selection but not edition. However, I'm open to other alternatives that don't have to do with changing the width, or having a scrollbar (the textbox is too short to fit a scrollbar). The best alternative I have so far is changing the background color to a gray to make it slightly more clear that it's not editable.
P.S. I'm very familiar with VBA, so if that's part of the solution, I'm cool with that.
Thanks all!
I had a similar issue, and solved it by using these instructions to create a hidden textbox that the cursor automatically appeared in (invisible to the user).

Disable or delete right click menus VBA

Whenever I right click on an excel sheet two menus come up: one with cut, copy, paste, etc. and one with font size, bold, italic etc.
I can customize the first one to have whatever command I want. The problem I have is that I want to DISABLE or DELETE the second one (the one with font size, bold, italic etc.)
I tried going through the entire CommandBars collection but couldnt find the one that I need to delete.
Any ideas on how to achieve this?
Apparently its very easy.
Application.ShowMenuFloaties = True
Although this does the job, I still dont understand how to manipulate that menu.

I wish to apply a background color to ONLY the cells in a specific dataGrid column?

I asked this question on the LiveCode email list. No response, so I figure it must not be possible. I know about editing the template graphic that enables alternating row colors. That doesn't help me.
This lesson is the closest to what I have found, but it only sets the overlay color to empty cells. It also had an unwanted affect, where any data that was present in the grid no longer shows up.
http://lessons.runrev.com/s/lessons/m/datagrid/l/7327-how-do-i-override-the-default-behavior-for-rendering-data-to-a-cell
As a little experiment, since the data became invisible (note that I'm on WinXP), I tried placing an opaque graphic over the column I wish to colorize. I set the ink of the graphic to AddMax or AddOver, and it looked nice, but the text in the cells disappeared. Then I tried setting the ink to AddMin, and it still looks good, but the test shows through!!!!
So, I think this will work fine visually, but how can I pass a double-click through this graphic to the cell underneath (to allow cell editing only within this column)?
Yes, you can do this.
This suggestion comes from Trevor DeVore at http://www.bluemangolearning.com/
Create a custom column template using the property inspector. From there you can edit the behavior of the column to colorize the background color of the field for that column or just edit the field in the template group to change the color.
The background color will only show up in rows that have data, however.

Netbeans color theming problem

I'm trying to sort out my netbeans color theme and I'm almost there apart from one annoying highlight I can't seem to find anywhere! It only shows it self in HTML and CSS that I have seen so far!
Its the highlighting that happens when you click on an Id or class value for html elements, or elements in css
Have a look at the picture below and see if you can identify the option that defines the highlight below!
It appears to be the Cascading Style Sheet color for Mark Occurrences.
Tools|Options|Fonts & Colors, Select Language: Cascading Style Sheet, Select Category: Mark Occurrences.
It appears to be related to (but not exactly the same as) NetBeans bug 189963, and may be worth noting on that bug that the highlight color suffers the same problem as the base color.
BTW, When I changed the color value for that one and clicked on OK, it did not immediately update the editor window. I had to select something else for it to mark occurrences of, and as soon as I did that I saw the new color.

Resources