Re: UI Update (was: int8 becames string in BDE :-()

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Kristis Makris" <kristis(dot)makris(at)datasoft(dot)com>
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:49:40
Message-ID: D85C66DA59BA044EB96AB9683819CF61015388@dogbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc pgsql-patches

> -----Original Message-----
> From: Kristis Makris [mailto:kristis(dot)makris(at)datasoft(dot)com]
> Sent: 12 June 2002 16:42
> To: Dave Page
> Cc: Hiroshi Inoue; pgsql-odbc(at)postgresql(dot)org;
> pgsql-patches(at)postgresql(dot)org
> Subject: Re: [ODBC] UI Update (was: int8 becames string in BDE :-()
>
>
> 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

Thanks Kristis. Unfortunately the driver is written in C not C++ so I
guess this probably won't work.

The biggest problem (for me at least) is that I'm just starting a new
course at uni so don't really have time to start playing with odd
projects like this one that I can't solve relatively quickly (I know
very little about controllig a GUI in C, though I can driver the
resource editor :-) ).

Regards, Dave.

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2002-06-13 00:05:28 Re: UI Update (was: int8 becames string in BDE :-()
Previous Message Kristis Makris 2002-06-12 15:42:01 Re: UI Update (was: int8 becames string in BDE :-()

Browse pgsql-patches by date

  From Date Subject
Next Message Hiroshi Inoue 2002-06-13 00:05:28 Re: UI Update (was: int8 becames string in BDE :-()
Previous Message Kristis Makris 2002-06-12 15:42:01 Re: UI Update (was: int8 becames string in BDE :-()