Re: UI Update (was: int8 becames string in BDE :-()
От | Dave Page |
---|---|
Тема | Re: UI Update (was: int8 becames string in BDE :-() |
Дата | |
Msg-id | D85C66DA59BA044EB96AB9683819CF61015388@dogbert.vale-housing.co.uk обсуждение исходный текст |
Список | pgsql-odbc |
> -----Original Message----- > From: Kristis Makris [mailto:kristis.makris@datasoft.com] > Sent: 12 June 2002 16:42 > To: Dave Page > Cc: Hiroshi Inoue; pgsql-odbc@postgresql.org; > pgsql-patches@postgresql.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.
В списке pgsql-odbc по дате отправления: