16 November 2018, 11:19 | #1 |
Registered User
Join Date: Apr 2018
Location: Germany
Posts: 189
|
Amiga window refreshing question
Hi Amiga coders!
I've run into the following situation. My program has two windows: - A GadTools window containing some buttons etc - A TextWindow that displays text using Intuition functions Both windows are of type SimpleRefresh. Now the problem: The GadTools window can open an ASL request. If the user moves the ASL request over the windows the following happens: 1) The part of the GadTools window that was overlapped by the request is refreshed automatically. I don't understand why, because my GT_BeginRefresh / GT_EndRefresh are not done yet, because the request is open and blocks the program so that the refresh messages can't be received while the request is open. 2) The part of the TextWindow which was overlapped by the request is damaged as long as the request is open. This doesn’t look nice. How is problem 2) usually avoided in Amiga programs? Would the only solution be to use a SmartRefresh window for the TextWindow? |
17 November 2018, 08:57 | #2 | ||
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Quote:
Quote:
- make the window SMART_REFRESH. - use ASLFR_Window and ASLFR_IntuiMsgFunc to keep your window alive. - instead of drawing yourself attach all the text to a gadget and let Intuition do the refreshing. - place the windows and requester so that the user does not need to move it around. |
||
17 November 2018, 09:47 | #3 |
Registered User
Join Date: Apr 2018
Location: Germany
Posts: 189
|
Thank you, Thomas, that clears it!
So I'll look into the methods you mentioned an look, what fits best to the program. At first look it seems compelling to simply use a SMART_REFRESH window:-) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Refreshing my Picasso IV memory! | dirkies | support.Hardware | 13 | 07 August 2015 17:53 |
Snapshot Amiga Shell window? | TenLeftFingers | support.Apps | 3 | 15 June 2015 16:38 |
Amiga 1200...board revisions question / wire link modification question | voyager_1701e | support.Hardware | 3 | 20 February 2014 12:32 |
question about a glitch in window mode | sink | support.WinUAE | 5 | 15 December 2009 20:54 |
Amiga exact screenshots regardless of Window/Screen Size | P-J | request.UAE Wishlist | 22 | 07 May 2008 10:22 |
|
|