Thread: Re: UI Update (was: int8 becames string in BDE :-()
> -----Original Message----- > From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp] > Sent: 12 June 2002 03:32 > To: Dave Page > Cc: pgsql-odbc@postgresql.org > Subject: Re: [ODBC] int8 becames string in BDE :-( > > > I've just committed the change to cvs. > Please improve the UI. Patch attached, & CC'd to -patches. A couple of things that I noticed whilst playing with this: 1) There is no default button on DLG_OPTIONS_DS - I have left space for one but didn't know how to plumb it in (sorry, I don't have time to figure it out now). 2) Each time DLG_OPTIONS_DS or DLG_OPTIONS_DRV are opened by pressing the Page 1/2 buttons, they move progressively further down the screen. 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? Regards, Dave.
Attachment
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
Kristis Makris wrote: > > 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: I also prefer CPropertyPage but the driver is written in C. We may be able to separate the setup dll but I have no time to try it now. regards, Hiroshi Inoue http://w2422.nsk.ne.jp/~inoue/