From: | Kristis Makris <kristis(dot)makris(at)datasoft(dot)com> |
---|---|
To: | Dave Page <dpage(at)vale-housing(dot)co(dot)uk> |
Cc: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, pgsql-odbc(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: UI Update (was: int8 becames string in BDE :-() |
Date: | 2002-06-12 15:42:01 |
Message-ID: | 1023896521.3439.16.camel@leonidas |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc pgsql-patches |
Hi Dave,
> 3) I looked briefly at using a tabset instead of 2 dialogues, however I
> couldn't figure it out in the time I had spare. Does anyone else know we
> do this?
I haven't looked at the patch, but here's a way you can setup a tabset
(untested):
Create a class deriving out of CPropertySheet and instantiate an object
for it (I'll call it m_sheet). For each tab you want to have displayed,
create a dialog and class deriving out of CPropertyPage and instantiate
an object for it. On WM_INITDIALOG do something equivalent to:
// Create the pages
m_sheet.AddPage(&m_page1);
m_sheet.AddPage(&m_page2);
m_sheet.Create(this, WS_CHILD | WS_VISIBLE, 0);
m_sheet.ModifyStyleEx(0, WS_EX_CONTROLPARENT);
m_sheet.ModifyStyle(0, WS_TABSTOP);
// You can move the propertysheet on the dialog where you want it
// Activate the pages
m_sheet.SetActivePage(&m_page1);
m_sheet.SetActivePage(&m_page2);
// The last page to be set active, gets the focus
I hope this helps.
Kristis
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2002-06-12 15:49:40 | Re: UI Update (was: int8 becames string in BDE :-() |
Previous Message | Dave Page | 2002-06-12 09:41:57 | Re: UI Update (was: int8 becames string in BDE :-() |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2002-06-12 15:49:40 | Re: UI Update (was: int8 becames string in BDE :-() |
Previous Message | Oliver Elphick | 2002-06-12 15:20:49 | Re: GUC option log_pid is not checked [Fwd: Bug#149675: |