Groups | Search | Server Info | Login | Register
Groups > comp.windows.x > #599
| From | Winston <wbe@UBEBLOCK.psr.com.invalid> |
|---|---|
| Newsgroups | comp.windows.x |
| Subject | Re: proper way to get Shell widget resized calls? |
| Date | 2025-08-04 13:09 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <ydms8fui6w.fsf@UBEblock.psr.com> (permalink) |
| References | <yd8qkrwxrm.fsf@UBEblock.psr.com> <ydqzxtvlek.fsf@UBEblock.psr.com> |
I originally asked (in part): >> However, I'd like to have a Resize function that gets called when the >> application window resizes, without having to create a widget just to >> have Resize() called. >> What's a proper way to do that? A bit later, I answered: > Found it: one good way is by adding a "<ResizeRequest>: action()" X11 > translation. The XtActionProc is passed the (XResizeRequestEvent*) with > the new width and height as the (XEvent*) argument. A better way is to use <ConfigureNotify> instead of <ResizeRequest>. ResizeRequest appears to be *instead of* the regular resize action. Also, the ResizeRequest action observably gets called when the window is merely moved on the desktop, even when the window's size hasn't changed. By contrast, with ConfigureNotify the regular resize code is still run and the translation action is called when the width or height changes, but not when the window is just moved. -WBE
Back to comp.windows.x | Previous | Next — Previous in thread | Next in thread | Find similar
proper way to get Shell widget resized calls? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-07-13 18:07 -0400
Re: proper way to get Shell widget resized calls? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-14 22:08 +0000
Re: proper way to get Shell widget resized calls? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-07-15 00:34 -0400
Re: proper way to get Shell widget resized calls? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-07-15 02:19 -0400
Re: proper way to get Shell widget resized calls? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-16 07:11 +0000
Re: proper way to get Shell widget resized calls? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-08-02 10:38 -0400
Re: proper way to get Shell widget resized calls? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-08-04 13:09 -0400
Re: proper way to get Shell widget resized calls? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-08-04 15:46 -0400
csiph-web