Solved

TPropertySheet as TFrameWindow client

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 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…

735 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