Gtk : Make a pixbuf cellrenderer editable - haskell

I want to make a combobox of pictures inside of a treeview cell (the cell must render the selected picture)
I tried these solutions :
Make a cellRendererComboNew in the column. The cells are editable but the combobox render only Strings!
I used the editingStarted signal to detect the edition of the cell and create a combobox with pictures in this cell. It Works fine but the cell doesn't render a picture!
I tryed to make a cellRendererPixbufNew in the column and make these cells editable (clickable,selectable) and use the editingStarted signal the same way as previously. But pixbuf cells are not editable!
I tryed to change the cellMode property of the cells with
set render [ cellMode:= CellRendererModeActivatable ] to make the signal editingStarted to be emitted when clicking on the cell. But it doesn't work!
My questions are :
Is it possible to make a pixbuf cell renderer editable? And what is the correct way to do it?
Is it possible to detect the left click on a treeview cell and replace the widget inside this cell like with editingStarted ?
Do you have an example in Haskell? Python? or any language?
Best Regards.

Related

How to autofill text area base on combo box value on MS.Access

I had problem when trying make form using MS.Access and i don't know how to make text area value same as combobox value like this picture:
You can use:
Me!TextItem.Value = Me!ComboItem.Value
Of course, use the actual names of your controls.

When the all cells are editable, unable to select row

Neither select-row work nor row-click works when the cell are editable. Anyway to get row selected?
If I click inbetween the cells then it works but it's not practicle click small space inbetween cells.
You really need to show an example of what you are trying to do. A JSFiddle would be helpful. Still if I'm following correctly what you want to add to your table layout is:
http://tabulator.info/docs/4.7/format#format-builtin
"Row Handle
The handle formatter fills the cell with hamburger bars, to be used as a row handle
{title:"Example", field:"example", formatter:"handle"}"

Can you color individual items in a data validation drop-down list in excel?

It's as simple as this. Say I want to color "COPT" and "RAT GCU" Yellow can I color just those?
I tried conditional formatting tricks and they all work after the drop down item is selected.
I want the colors to be loaded only to certain list items to appear as soon as I click the drop-down arrow.
I'm not sure if this can be done but...
Additionally would anyone know the syntax to click a button to set the value of the list back to displaying "Please select"???? I already have a reset button that unfilters everything. So if I tie it to that button I think it'd work like a charm. I just don't know how to go about selecting the listbox as it's a data validation one and I can't seem to figure out how to define/declare the listbox and can't find it's name anywhere.
There is no way to color items in the DV list. If you want the cell to show "Please Select" when no choice was made, all you can do is enter that literal text into the cell. An empty cell will remain empty.

Excel: Is there a way to programmatically change the background colours of individual cells in a multi column listbox control

I have a multi-column list box control embedded in Excel, is there a way to change the background, font, and other attributes of an individual cell (rather than changing all the text in the listbox)?
I don't mind which listbox control I use (activeX or otherwise).
I would also consider using another control that isn't tied into the excel worksheet rows and columns (i.e. I can't use a table).
Excel's built in listbox control doesn't really have formatting options, but you can do quite a bit with the listview control.
You'll have to add a reference to Microsoft Windows Common Controls 6.0 (from VBA window go to Tools and click References, and scroll to find it). There's not an effective way to change the background color of a single cell in the listview table, but you can change the font color and make text bold in specific cells or based on criteria.
The syntax to populate the listview is a bit different than listbox, but there's quite a bit of material online for this if you think its the way to go. Also - I have only used listview in a form, but it should be possible to add this as an ActiveX control in an actual sheet.

How to dynamically change the TableLayout in ext.net 1.x

I have an ext.net page containing a table built by TableLayout. It is similar with the example shown on the official demo site. (link) The only thing different is I have combo box, textbox inside those Cells, not just a bunch of panels.
Now, there is the need to dynamically hide some textboxes based on the selection of a combobox. What I have done is to set up the combobox to AutoPostBack="true" OnValueChanged="comboboxname_OnValueChanged" .
In that code-behind method comboboxname_OnValueChanged, I check the selected value and do a textboxname.Visible="false". Then I got the unexpected: the whole Cell that contains that textbox is removed. And my whole table is messed up!
Then my guess is that the Cell must remain in place to occupy the position. My next try is:
mytablelayout.Cells[5].Clear();
mytablelayout.Cells[5].Add(emptyLabel);
here, the index 5 is the table cell with the textbox I want to hide. and emptyLabel is an ext.Label which displays nothing. Unfortunately it does not work.
My third try is to build an empty cell first. then,
mytablelayout.Cells.RemoveAt(5);
mytablelayout.Cells.Insert(5, emptyCell);
I found RemoveAt(5) can be successfully executed, which again messed up my table because the next cell just moves from its supposed place. But the Insert(5, emptyCell) just never did what I want.
Now I am really at my wit's end. Can any ext.net expert give some advice? How did you manipulate the Cells in a TableLayout?
Thank you for any helpful input.
make a CSS class with display none.
.myClass {
display: none;
}
set the textbox cls property to the CSS class made earlier
textboxname.cls = "myClass";

Resources