Questions tagged [custom-draw]

67 questions
3
votes
2 answers

Android Canvas not drawing more than screen dimensions

My App have a feature that let's the user capture photo and add drawing on that photo. All the photo's are re-sized to exactly 900 x 900. To allow the user add drawing to the image. I keep a transparent image over the original image and do the…
Obaida.Opu
  • 444
  • 1
  • 4
  • 18
3
votes
1 answer

Listview item with NM_CUSTOMDRAW is flickering

everyone. https://i.stack.imgur.com/ugfY4.jpg I've got this kind of list-view color editor, every item represents separate color. So the user clicks on the COLOR_CODE subItem, the color picker updates to the selected HSV value and then the user…
Antiusninja
  • 157
  • 1
  • 17
2
votes
1 answer

Custom draw of DatagridViewComboBoxColumn

I'm using a DataGridView with a DataGridViewComboBoxColumn and I need to add icons to the left of combobox items. I'm currently using EditingControlShowing event along with ComboBox.DrawItem event, like this: private void…
2
votes
1 answer

TabControl Custom Tab Bar Background Color

I have a TabControl where I needed to have custom tab colors. To do this, I set the DrawMode to OwnerDrawFixed, and overwrote the DrawItem event. However, when I change the DrawMode, it appears that the transparency for the Tab Bar is replaced with…
Tim
  • 2,731
  • 9
  • 35
  • 72
2
votes
0 answers

Custom draw ListBox items with a panel

Possible Duplicate: Delphi control that could mimic “Add-ons|Extension list” of Firefox? I would like to make a custom ListBox control. It could look like Firefox downloads but instead of hardcoding custom drawing for any particular layout, i…
user219760
2
votes
0 answers

Processing NM_CUSTOMDRAW on a pushbutton - but Windows still draws the text

I'm experimenting with using NM_CUSTOMDRAW instead of WM_DRAWITEM for bitmap buttons in my win32 app. The WM_DRAWITEM stuff works fine - except that it doesn't work under WINE with a desktop theme enabled (for some reason, with a theme enabled,…
littlenoodles
  • 435
  • 4
  • 13
2
votes
1 answer

Flickering when drawing over components at mouse position

I'm trying to draw a vertical line at the X position of the cursor that would move with the mouse. This line would have to be drawn 'on top' of all components on my form. To achieve this, i'm using a piece of code provided here :…
mathieu
  • 235
  • 2
  • 11
2
votes
1 answer

Win32 ListView: Make colored progress bar for full row

I want to make a colored progress bar for full row in ListView. I take the idea from here: In above image, we have colored progress bar, but only fo single cell. What I want is make same think, but for full row. Here is what I have done: Not as…
NoName
  • 7,940
  • 13
  • 56
  • 108
1
vote
2 answers

Enabling Aero Glass in custom-drawn window title (WM_NCPAINT, DwmSetWindowAttribute)

Some years ago we developed an ActiveX component called CaptionX (CaptionX Home Page). It allows the developers to place custom clickable graphical buttons into the window title bar. All works fine in any Windows except Vista and Windows 7 when Aero…
10Tec
  • 11
  • 2
  • 5
1
vote
1 answer

How to enable implicit animation in UIView when doing custom drawing?

I perform custom drawing in my UIView subclass using: - (void)drawRect:(CGRect)rect; How can I enable implicit animation when the drawing changes?
anna
  • 2,723
  • 4
  • 28
  • 37
1
vote
1 answer

Default selection color when TreeView is not focused

How can I set the TreeView's selected node to the default clHighlight color when the TreeView is not focused? I tried this code in the CustomDrawItem and AdvancedCustomDrawItem events - no luck: if (cdsSelected in State) then …
tcxbalage
  • 696
  • 1
  • 10
  • 30
1
vote
1 answer

ListView Custom Draw - Multi-colored text inside individual cell?

As far as I know you can use Custom Draw in a list-view to paint individual cells the way you want using CDDS_SUBITEM. However, I would like to have multi-colored text within a cell. That is, I would like to, for example, set a cell's text to: "this…
user2058002
1
vote
1 answer

Custom trackbar ticks

I'm using the stock Trackbar control. I would like to custom draw the ticks. Here I made an experiment, just trying to draw in the right place: case WM_NOTIFY: { NMHDR* nMhdr = (NMHDR*) lParam; NMCUSTOMDRAW* nMcd = (NMCUSTOMDRAW*) lParam; …
TheNextman
  • 12,428
  • 2
  • 36
  • 75
1
vote
1 answer

Strange drawing with DrawingContext

I'm working on a custom WPF control that should visualize thousands of graphical primitives in a scrollable area. The core part of the control's template is the following:
TecMan
  • 2,743
  • 2
  • 30
  • 64
1
vote
0 answers

Not get control in this case CDDS_ITEMPREPAINT| CDDS_SUBITEM:

I am using NM_CUSTOMDRAW for changing the color of Tree View item & its child on some conditions.I want to get subitems control individually but dwDrawStage never get this case CDDS_ITEMPREPAINT| CDDS_SUBITEM my code snippet is here: LRESULT…