Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Disable TButton in OWL (Borland C++)

Posted on 1997-01-14
1
Medium Priority
?
759 Views
Last Modified: 2010-05-18
How can a button (the TButton class) maded in OWL from Borland C++ version 4.5 be disabled. By disable, do I mean make the button gray.
0
Comment
Question by:tovergaard
1 Comment
 

Accepted Solution

by:
rodent earned 160 total points
ID: 1162196
get the window handle, and use EnableWindow(hWnd, FALSE) or whatever the call is (look under EnableWindow)

if you can only get the control ID of the button, use EnableWindow(GetDlgItem(hWndDlg, CtlId), FALSE)

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question