Questions tagged [windows-controls]

39 questions
43
votes
3 answers

How to detect if the console does support ANSI escape codes in Python?

In order to detect if console, correctly sys.stderr or sys.stdout, I was doing the following test: if hasattr(sys.stderr, "isatty") and sys.stderr.isatty(): if platform.system()=='Windows': # win code (ANSI not supported but there are…
sorin
  • 161,544
  • 178
  • 535
  • 806
12
votes
1 answer

Flowlayout and Tablelayout in windows form

What is the difference between Flowlayout and Tablelayout in windows form ? I know i can google it, but i am bit short on time. my requirement is too , that when the form is resized. Resizing for forms should not mess up my align for the control,…
Gainster
  • 5,481
  • 19
  • 61
  • 90
12
votes
2 answers

Win32 - Appending text to an Edit Control

Trying to append text to an edit control inside a dialog box. I can't get _tcscat_s to append correctly. It crashes and says something about the buffer being too small or something about a null terminated string. int WINAPI WinMain( HINSTANCE…
ShrimpCrackers
  • 4,388
  • 17
  • 50
  • 76
7
votes
1 answer

Are Windows window classes case-sensitive?

MS docs being clear as mud (and the class name strings not referenced very often), I was wondering whether the class name of a Win32 window class is actually case sensitive?
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
7
votes
5 answers

How to obtain the value of a control added dynamically into Windows Form c#?

I read some articles and don't managed solved my problem, My problem is in the moment when I try obtain the value of the controls (CheckBox and ComboBox) added dynamically into Windows Form, I need know when the CheckBox is checked (or unchecked)…
Fernando Bernal
  • 99
  • 2
  • 11
6
votes
5 answers

Synchronized Scrolling Components Delphi

I am trying to synchronize the scrolling of two TDBGrid components in a VCL Forms application, I am having difficulties intercepting the WndProc of each grid component without some stack issues. I have tried sending WM_VSCROLL messages under…
wfoster
  • 781
  • 10
  • 23
5
votes
0 answers

ComboBox with CheckBoxes in WinForms

I am trying to implement a CheckBox ComboBox. I followed this link as a reference http://www.codeproject.com/Articles/31105/A-ComboBox-with-a-CheckedListBox-as-a-Dropdown?msg=4152597#xx4152597xx But there are some problems with this example. 1)…
user781700
  • 844
  • 3
  • 15
  • 27
5
votes
4 answers

How to enable a WinForm button in time to receive focus by tabbing

Visual Studio 2010, C# I have a ComboBox with a DropDown, AutoComplete set to SuggestAppend and the AutoCompleteSource is from the ListItems. The user keys data into it until the have the correct entry. Utill the data matches one of the list items,…
Rich Shealer
  • 3,362
  • 1
  • 34
  • 59
4
votes
1 answer

AxMSTSCLib display disappear in taskbar after minimize from full-screen mode

I am using AxMSTSCLib to develop a Windows App for creating RDP connections. The steps listed below caused my remote desktop display disappear: Start an RDP connection with full-screen mode Click "restore down" button from connection bar Click…
Corey
  • 1,217
  • 3
  • 22
  • 39
3
votes
4 answers

TreeListView control

I need to implement TreeList control same as in Process Explorer. I am quite newbie in GUI and did not write such complicated controls. As I see in Process Explorer, there is a TreeListWindowClass, which contains children: 2 headers, 3 scrollbars…
ToughDev
  • 117
  • 1
  • 5
2
votes
2 answers

How to make CDateTimeCtrl have a string as default value?

I am using MFC CDateTimeCtrl in VS2010. It seems it always has a datetime value showed, default one is today. I want sort of customizing it. Would it be possible that to make it show a string say "no date selected" when it shows up first time?…
Rob Lao
  • 1,526
  • 4
  • 14
  • 38
2
votes
0 answers

With BCM_SETIMAGELIST who destroys the HIMAGELIST?

I was looking at BCM_SETIMAGELIST but it's not clear who is supposed to destroy the HIMAGELIST? If the one who created it, could WM_NCDESTROY be used to simple BCM_GETIMAGELIST and destroy it or should you get it first then set it to nothing, like…
user3161924
  • 1,849
  • 18
  • 33
2
votes
0 answers

C++ - Create dialog box containing buttons and static text on click

so this project follows my last question. I implemented the buttons and found out how to render events when they are clicked, this question is a next-step for me that I am struggling with. Utilizing the winapi I want to create a dialog box when a…
user3251225
  • 147
  • 3
  • 11
2
votes
1 answer

Forcing IAutoComplete to refresh dataset?

I'm implementing a custom IEnumString to be used as a dataset for an IAutoComplete2 object. The problem is that IAutoComplete2 appears to only call reset on my IEnumString when the first character is entered in an editbox and then relies on the fact…
monoceres
  • 4,722
  • 4
  • 38
  • 63
2
votes
0 answers

Converting ActiveX controls into windows form controls

I have an excel sheet with activeX controls. Since ActiveX controls do not function from outside of trusted locations in versions MS Office 2007 and higher, I am supposed to convert the controls into Windows form controls. My excel sheet is password…
user1175126
  • 179
  • 1
  • 9
  • 21
1
2 3