English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 30 November 2018, 14:51   #1
Asman
68k

Asman's Avatar
 
Join Date: Sep 2005
Location: Somewhere
Posts: 695
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, 17:14   #2
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 45
Posts: 1,306
Send a message via Yahoo to Samurai_Crow
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, 17:31   #3
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 46
Posts: 3,583
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, 18:13   #4
Asman
68k

Asman's Avatar
 
Join Date: Sep 2005
Location: Somewhere
Posts: 695
@Samurai_Crow, @meynaf. Thanks a lot . I should read documentation first.
Asman is offline  
Old 30 November 2018, 18:17   #5
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 45
Posts: 1,306
Send a message via Yahoo to Samurai_Crow
@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 10:05
Beginner questions: text display in an Intuition window and scrolling thyslo Coders. System 6 07 October 2018 19:47
1.x Intuition knob gadget arcanist Coders. System 0 30 January 2018 18:49
intuition.library zharn Coders. System 8 22 February 2015 13:50
Intuition - Menus Gilloo Coders. System 1 05 March 2012 11: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 04:49.


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