Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TPropertySheet as TFrameWindow client

Posted on 1998-01-14
3
Medium Priority
?
245 Views
Last Modified: 2013-12-26
I am trying to determine 2 things about the TPropertySheet class:

1. Is it possible to use a TPropertySheet as the client window of TFrameWindow? My program bombs if I try to do it.

2. Is there any way to override the window type characteristics of TPropertySheet? I can't seem to be able to have a TPropertySheet that is sizable or that stays within it's parent window. I wish to have a TPropertySheet window that is maximized within the TFrameWindow - is this possible? Please provide a detailed explanation if possible.

Thanks.
0
Comment
Question by:memoody
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:eppsman
ID: 1299542
I don't have a complete answer, so I'll only put this in a comment. :-) I've tried using the property sheet as the client of a TFrameWindow, and it didn't work for me either. I've seen an example of somebody who has worked around it. They created a frame window, then in the SetupWindow() function, the window sent a message to itself to create the property sheet. A response function was then written to create the property sheet, almost as if it were a dialog box. Hope this helps a bit.

0
 
LVL 2

Accepted Solution

by:
JensUniweb earned 300 total points
ID: 1299543
As I understand the TPropertySheet class it uses the Windows property sheet under Windows 95/NT4. This may cause some problem when you want to use it as your TFrameWindow. This is because the windows API function for property sheets is called. And this does not function the same way as creating a window. You don't get a windows handle, you have no way to set attributes like sizable. But there may be a way to send info to the main window from the callback function supplied to PropertySheet(). So may guess is to studdy the Windows API function PropertySheet() and see if there is a way to 'hook' this window into you main windows. Another way is to build your own TPropertySheet class that uses TTabControl to get the look of a property sheet.

 Jens Yllmna
 (http://www.uniweb.se/~jens/)
0
 

Author Comment

by:memoody
ID: 1299544
It wasn't the answer I was hoping for, but it cleared up my confusion about my questions. Thanks.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to count occurrences of each item in an array.

730 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