iclassfactory2 | 2 Oct 09:44 2000
Picon
Picon

Re: Toggling the Splitter Views.

Dear Nenad,

I am still expecting some inputs on this problem.
Could you help me out to do this, as you earlier said that I need 
some time on this.

Thanks & Regards,
K M Bansal.

--- In wtl@..., iclassfactory2 <at> u... wrote:
> Dear Nenad,
> 
> * To hide a pane we can do something like following, but actually 
it 
> does not refresh the upper pane to occupy the entire left pane.
> 
> This thing does not actually work in most of the cases such as when 
a 
> user wants to hide one of the entire pane dynamically like ...
> 
> * Also there can be a case when a user wants to hide the left pane 
> itself ? Then what.. ?
> 
> 
> LRESULT CChildFrame::OnHideCurve(WORD /*wNotifyCode*/, 
WORD /*wID*/, 
> HWND /*hWndCtl*/, BOOL& /*bHandled*/)
> {
> m_leftSplitter.SetSplitterPanes(m_LeftView->m_hWnd, 
> NULL);
(Continue reading)

Patrice Lafond | 4 Oct 16:25 2000
Picon

OT: basic of wizard's creation

Hi all,

I want to do a little wizard to catch informations from client to 
fill a request. The way I would do it is to popup dialogs(one after 
the other). 

I now that it works, but do you think that is the right way to do it
(or does a real wizard works like that)?

Thanks.

Patrice

Massimo Mozzi | 4 Oct 17:05 2000
Picon

Re: OT: basic of wizard's creation

It's better if you use the CPropertySheet & CPropertyPage classes and set
the CPropertySheet to act as a wizard calling the method SetWizardMode().

massimo

----- Original Message -----
From: "Patrice Lafond" <plafond@...>
To: <wtl@...>
Sent: Wednesday, October 04, 2000 4:25 PM
Subject: [wtl] OT: basic of wizard's creation

> Hi all,
>
> I want to do a little wizard to catch informations from client to
> fill a request. The way I would do it is to popup dialogs(one after
> the other).
>
> I now that it works, but do you think that is the right way to do it
> (or does a real wizard works like that)?
>
> Thanks.
>
> Patrice

ofer_sagi | 4 Oct 20:34 2000
Picon
Picon

clipcode, worldofatl sites gone?

does anybody knows what happed to those web sites?

www.clipcode.com

www.worldofatl.com

(atl/wtl related sites)

they r not available anymore

10x

Matasovsky, John | 5 Oct 05:33 2000

RE: OT: basic of wizard's creation

charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

RE: [wtl] OT: basic of wizard's creation

Patrice-

I have seen it done that way.  To get one that acts = more like the wizards inside of most MS products, you can use a single dial= og and enable/disable controls to walk screen to screen (i.e. use it like a= state machine).  On the same token, you can use multiple dialogs, as = long as you show the next/previous dialog BEFORE you close the old one (thi= s means you can't wrap them externally (i.e. dialog.DoModal() then next ste= p after that), but need to chain them from inside).  Note that you als= o will want the repositioning of a window to stick.  Nothing is more a= nnoying than a wizard that jumps back to the middle of the screen between s= teps.....

Just my $0.02.... :)

--->John
John D. Matasovsky, MCSD
Senior Solutions Consultant
URL:    http://www.rainier.com  E-mail: John.Matasovsk= y-QuLUrbjNoUtBDgjK7y7TUQ@public.gmane.org
Personal E-mail:  John.Matasovsky-jG/AHqQBv7lBDgjK7y7TUQ@public.gmane.org= >
Rainier Technology , 1660 South Highway 100 Suite 228,&n= bsp; Minneapolis, MN 55416
        Web Innovator= s, Web Integrators



-----Original Message-----
From: Patrice Lafond [mailto:plafond-PcAnbJf3mudAFePFGvp55w@public.gmane.org]
Sent: Wednesday, October 04, 2000 10:25 AM
To: wtl-VgYJa0VH1e9BDgjK7y7TUQ@public.gmane.org
Subject: [wtl] OT: basic of wizard's creation


Hi all,

I want to do a little wizard to catch informations from c= lient to
fill a request. The way I would do it is to popup dialog= s(one after
the other).

I now that it works, but do you think that is the right w= ay to do it
(or does a real wizard works like that)?

Thanks.

Patrice


-------------------------- eGroups Sponsor --------------= -----------~-~>
Get a NextCard Visa with rates as low as 2.99% Intro APR= !
1.  Fill in the brief application
2.  Get approval decisions in 30 seconds!
http://click.egroups.com/1/9334/2/_/912022/_/= 970669517/
--------------------------------------------------------= -------------_->

To unsubscribe from this group, send an email to:
wtl-unsubscribe-VgYJa0VH1e9BDgjK7y7TUQ@public.gmane.org


Sean Garratt | 5 Oct 16:46 2000

Re: clipcode, worldofatl sites gone?

I emailed them back on 09/05 and they said, reply attached. I guess 
its taking them longer. If you need their most recent docs, let me 
know, I have them. come back clipcode!!!

//----------

Dear Sean,

We are changing clipcode.com's hosting arrangments, and due
to a technical problem it is off-line for a few days. 

Clipcode.com will be back up next week. 

Sorry for that. 

Eamon O'Tuathail
Clipcode.com

-----Original Message-----
From: Sean Garratt [mailto:xxx]
Sent: Tuesday, September 05, 2000 6:48 PM
To: info@...
Subject: where has clipcode gone ?

--- In wtl@..., ofer_sagi <at> u... wrote:
> does anybody knows what happed to those web sites?
> 
> www.clipcode.com
> 
> www.worldofatl.com
> 
> (atl/wtl related sites)
> 
> they r not available anymore
> 
> 10x

Taras Tielkes | 5 Oct 23:29 2000
Picon

Re: clipcode, worldofatl sites gone?

I will keep checking clipcode.com until it's back online.

I don't know if the author of the clipcode WTL docs is on this list. I you
are, I'd like to thank you for writing excellent documentation. (of which I
unfortunately only have 2 chapters ;-0 )

Regards,
Taras

Scott Leonard | 6 Oct 07:33 2000
Picon

Scrolling, Sizing, and Exit Codes...

I am creating a "stock" MDI app with a dialog view. I would like to 
set the size of newly created views to something other than 
rcDefault. I've noticed that the mview.Create(...) call ignores the 
rect you pass in. Where is the best place to change the size when 
created? I believe I need to change the size of the childframe, not 
childview; is this correct?

I also would like the views (or is it childframe?) to show scroll 
bars and scroll when they are sized below a certain rect (the size of 
the dialog in the view). I tried adding CScrollImpl to the childframe 
declaration, but that didn't work. I want the mainframe to show 
scroll bars and scroll when [part or all of] a view is outside the 
mainframe's clientrect. Adding CScrollImpl to the mainframe didn't 
work here, either. What are CScrollImpl and CMapScrollImpl, and how 
are they used?

Lastly, what is the significance of the exit codes? I thought zero 
was the target; but they are application defined, so what does exit 
code '1' mean (that's all I seem to get, although I have seen some 
2's when I do something stupid)?

Thanks,
sbl

Scott Leonard | 6 Oct 17:39 2000
Picon

Re: Scrolling, Sizing, and Exit Codes...

OK, OK, I guess using one's brain to solve problems is a good thing...
Regarding childframe scrolling the view, I added CHAIN_MSG_MAP
(CScrollImpl<CDlgChildFrame>); that seems to be the right starting 
place. I'm still not sure about which class members to call, but 
calling SetScrollSize(600,320) (that's the size of my dialog; still 
trying to get that autosize-on-create to work) in OnCreate does 
something. OK, now I've got scrollbars, and they even sorta work. I 
have to override DoPaint; not sure what to do in here... If I scroll 
the window, the newly displayed region doesn't get drawn properly 
(probably 'cause I'm not doing it in DoPaint). If I then size the 
window at all, it snaps the view back to the top left corner, leaving 
the scrollbars positioned as they were.
Also, showing and hiding the scrollbars doesn't seem too 
straighforward, either. I created a little function to show and hide 
the scroll bars as follows:
void BarVisible(){
RECT rcClient;
BOOL bVisible;
GetClientRect(&rcClient);
bVisible = (rcClient.right < 600)?TRUE:FALSE;
ShowScrollBar(SB_HORZ,bVisible);
bVisible = (rcClient.bottom < 320)?TRUE:FALSE;
ShowScrollBar(SB_VERT,bVisible);
}
The trouble is where to call it from. OnSizing doesn't get the last 
message as you release the frame border, so if you shrink the frame 
and release, then single click the frame, it will show the bars. I 
don't get OnLButtonxxx notifications, so I can't do it after the 
button is released on the border.

Thanks again from a rambling guy who shouldn't code in the wee hours,
sbl

Nenad Stefanovic | 12 Oct 09:58 2000
Picon

RE: Re: Scrolling, Sizing, and Exit Codes...

Hi Scott,

This is a pretty tough problem, because scroll classes were not designed for
this. I came up with a way to do it, by using another window between the
frame and the view window. That window contains the view window, which is
itself a dialog form, and does the scrolling.

If you create an app with the WTL App Wizard, using dialog based form as a
view window, you can add these classes for the view and the scroll window
(view class stays the same, but there is CScrollView as a parent):

class CTestView : public CDialogImpl<CTestView>
{
public:
enum { IDD = IDD_TEST_FORM };

BOOL PreTranslateMessage(MSG* pMsg)
{
return IsDialogMessage(pMsg);
}

BEGIN_MSG_MAP(CTestView)
// your dialog message handlers here
END_MSG_MAP()
};

class CScrollView : public CScrollWindowImpl<CScrollView>
{
public:
DECLARE_WND_CLASS_EX(NULL, 0, COLOR_3DFACE);

CTestView m_view;

BOOL PreTranslateMessage(MSG* pMsg)
{
return m_view.PreTranslateMessage(pMsg);
}

void DoPaint(CDCHandle /*dc*/)
{
}

BEGIN_MSG_MAP(CTestView)
MESSAGE_HANDLER(WM_SIZE, OnSize)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
CHAIN_MSG_MAP(CScrollWindowImpl<CScrollView>)
END_MSG_MAP()

LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled)
{
CScrollWindowImpl<CScrollView>::OnSize(uMsg, wParam, lParam,
bHandled);

POINT pt = { 0, 0 };
GetScrollOffset(pt);
m_view.SetWindowPos(NULL, -pt.x, -pt.y, 0, 0, SWP_NOZORDER |
SWP_NOSIZE | SWP_NOACTIVATE);

bHandled = FALSE;
return 1;
}

LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled)
{
CScrollWindowImpl<CScrollView>::OnCreate(uMsg, wParam,
lParam, bHandled);

m_view.Create(m_hWnd);

RECT rcView;
m_view.GetWindowRect(&rcView);
SetScrollSize(rcView.right - rcView.left, rcView.bottom -
rcView.top);

return 1;
}
};

The only other change would be that in CMainFrame we now have CSrollView as
a data member, and we create that window instead of CTestView one.

Additional things, besides scrolling, that CScrollView does are: setting
scroll size based on the size of the form, and positioning the form, which
is a child window, if it goes outside of the CScrollView window.

I hope this is helpful.

Thanks,
Nenad

-----Original Message-----
From: Scott Leonard [mailto:sbl@...]
Sent: Friday, October 06, 2000 8:39 AM
To: wtl@...
Subject: [wtl] Re: Scrolling, Sizing, and Exit Codes...

OK, OK, I guess using one's brain to solve problems is a good thing...
Regarding childframe scrolling the view, I added CHAIN_MSG_MAP
(CScrollImpl<CDlgChildFrame>); that seems to be the right starting 
place. I'm still not sure about which class members to call, but 
calling SetScrollSize(600,320) (that's the size of my dialog; still 
trying to get that autosize-on-create to work) in OnCreate does 
something. OK, now I've got scrollbars, and they even sorta work. I 
have to override DoPaint; not sure what to do in here... If I scroll 
the window, the newly displayed region doesn't get drawn properly 
(probably 'cause I'm not doing it in DoPaint). If I then size the 
window at all, it snaps the view back to the top left corner, leaving 
the scrollbars positioned as they were.
Also, showing and hiding the scrollbars doesn't seem too 
straighforward, either. I created a little function to show and hide 
the scroll bars as follows:
void BarVisible(){
RECT rcClient;
BOOL bVisible;
GetClientRect(&rcClient);
bVisible = (rcClient.right < 600)?TRUE:FALSE;
ShowScrollBar(SB_HORZ,bVisible);
bVisible = (rcClient.bottom < 320)?TRUE:FALSE;
ShowScrollBar(SB_VERT,bVisible);
}
The trouble is where to call it from. OnSizing doesn't get the last 
message as you release the frame border, so if you shrink the frame 
and release, then single click the frame, it will show the bars. I 
don't get OnLButtonxxx notifications, so I can't do it after the 
button is released on the border.

Thanks again from a rambling guy who shouldn't code in the wee hours,
sbl

To unsubscribe from this group, send an email to:
wtl-unsubscribe@...


Gmane