This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Inability to resize/rearrange controls/windows


--- Shankar Unni <shankar@cotagesoft.com> wrote:
> No, not dragging the window itself. I mean when you *resize* the window
> by clicking on the top edge of the top border and dragging the border
> down, after a certain minimum size, the window moves its own bottom
> border down while you're dragging the top border down, preserving the
> size. The effect is very weird.  I'm running WinXP SP1.
> 


nice catch !!!
We can correct that by more coding. 
We should keep track of previous window position, 
or just coordinates of top left corner.

and use that in the code at onresize() function.
as X,Y arguments for SetWindowPos() 

To avoid the trouble we can call this bug as a feature  !!!

Cheers
Biju

> > -----Original Message-----
> > From: Biju G C [mailto:bijumaillist@yahoo.com] 
> > Sent: Tuesday, June 03, 2003 12:37 PM
> > To: Shankar Unni
> > Subject: Re: Inability to resize/rearrange controls/windows
> > 
> > 
> > --- Shankar Unni <shankar@cotagesoft.com> wrote:
> > > Biju G C wrote:
> > > 
> > > > I really appreciate any comments.
> > > 
> > > Looks interesting, with a bizarre quirk: if you try to resize below 
> > > its
> > > minimum size, it regrows the window on the other side so 
> > that it says 
> > > the minimum size. Any way to just not allow the resize 
> > below the minimum 
> > > size?
> > 
> > R U talking about the flickering effect ?
> > 
> > Try 
> > On Windows Control Panel > Display > Appearance > Effects 
> > Uncheck "Show window contents while dragging"
> > 
> > for this option checked, 
> > I dont know whether there is a way to find the 
> > user is continuing the resizing or not.
> > 
> > Many windows programs (including MS-Word) solve it by doing nothing 
> > if size is minimum than required
> > 
> > effect will be like myapp.exe in c5r4.zip at 
> > http://www.geocities.com/bijumaillist/win32/
> > 
> > I see MSN 
> > Messenger doing this in a better way.
> > (the chat window, not the buddy list window)
> > 
> > code for checking minimum size is near line 317 
> > of myapp.c in function onresize()
> > and it is called from  DlgProc() at case WM_SIZE: 
> > 
> > u can try modifying it.
> > 
> > cheers
> > Biju
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Calendar - Free online calendar with sync to 
> > Outlook(TM). http://calendar.yahoo.com
> > 
> > 
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]