English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 30 November 2018, 13:51   #1
Asman
68k
 
Asman's Avatar
 
Join Date: Sep 2005
Location: Somewhere
Posts: 828
Questions about Intuition function - OpenWindow

I want to open window - so I am going to use OpenWindow function. and I will using NewWindow structure. So I want to this dynamically. Mean I will allocating memory for this structure and fill in.
1. To be compatible with kick1.3 - 3.1 I need to use size of ExtNewWindow, right ?
2. Can I just release this memory if window was opened with success ?

tia
Asman is offline  
Old 30 November 2018, 16:14   #2
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
ExtNewWindow structure was introduced in Kickstart 2. Regular NewWindow should work in all Kickstart versions (though the extended fields should be ignored in 1.3 anyway).
Samurai_Crow is offline  
Old 30 November 2018, 16:31   #3
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by Asman View Post
2. Can I just release this memory if window was opened with success ?
Doc about intuition.library/OpenWindow says : "The NewWindow structure may be discarded immediately after it is used to open the window."
meynaf is offline  
Old 30 November 2018, 17:13   #4
Asman
68k
 
Asman's Avatar
 
Join Date: Sep 2005
Location: Somewhere
Posts: 828
@Samurai_Crow, @meynaf. Thanks a lot . I should read documentation first.
Asman is offline  
Old 30 November 2018, 17:17   #5
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
@Asman
You're welcome!
Samurai_Crow 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
C Intuition Help plasmab Coders. General 7 15 October 2018 09:05
Beginner questions: text display in an Intuition window and scrolling thyslo Coders. System 6 07 October 2018 18:47
1.x Intuition knob gadget arcanist Coders. System 0 30 January 2018 17:49
intuition.library zharn Coders. System 8 22 February 2015 12:50
Intuition - Menus Gilloo Coders. System 1 05 March 2012 10:11

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 13:28.

Top

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