English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 16 November 2018, 11:19   #1
thyslo
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?
thyslo is offline  
Old 17 November 2018, 08:57   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by thyslo View Post
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.
Intuition automatically refreshes all known elements. That is the window borders and gadgets linked to the Window->FirstGadget list.


Quote:
How is problem 2) usually avoided in Amiga programs?
There are several methods:

- 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.
thomas is offline  
Old 17 November 2018, 09:47   #3
thyslo
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:-)
thyslo is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:50.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09620 seconds with 13 queries