Solved

TPropertySheet as TFrameWindow client

Posted on 1998-01-14
3
235 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
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 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now