Welcome, Guest. Please login or register.

Author Topic: Intuition questions...  (Read 5473 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline yakumo9275Topic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2008
  • Posts: 301
    • Show all replies
    • http://mega-tokyo.com/blog
Intuition questions...
« on: August 29, 2011, 02:41:04 AM »
(Am writing this over the course of my workday so it kind of rambles, and I cant test examples at work)...

I want to program an amiga port for my text adventure engine. I dont quite get intuition layouts.
I am reading 'Programmers Guide to Amiga' by Robert Peck.

I want an infocom style text screen, title across the top, text below. text will scroll without interfeering with the title text and to run from workbench.

From my reading of some amiga programming books I need to create a screen, and within that screen a window? It feels like I'm creating an MDI app, and I dont want an MDI app. I just want to open a screen/window on workbench and render text to two different parts. *Ahh, I see workbench is a public screen and I can open my window on it. nice.

When dealing with the text controls, does it retain the text so a window resize will automatically reflow the text or do I have to pragmatically reflow the text?, meaning I have to keep track of the text sent to the window? I'm guessing a NEWSIZE + REFRESHWINDOW means I need to know what text I've sent to redraw it...

Is SIMPLE_REFRESH better than not specifying it? Since I am targeting wb3.1, is it good practice to use SIMPLE_REFRESH or not or go with a smart refresh window?

random thought.. can you do a memmove inside a rastport to immitate scrolling? or do I need to create an off screen rastport? Can you do a ClipBlit where the source rp + dest rp are the same?
I see there is a ScrollRaster... so in theory I should have one rastport for my title line, and one rastport for the body text... things are becoming clearer now.

Would mui help here with doing design/layout of the window interface or should I just stick to intuition?
--/\\-[ Stu ]-/\\--
Commodore 128DCR, JiffyDOS, Ultimate 1541 II, uIEC/SD, CBM 1902A  Monitor
 

Offline yakumo9275Topic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2008
  • Posts: 301
    • Show all replies
    • http://mega-tokyo.com/blog
Re: Intuition questions...
« Reply #1 on: August 29, 2011, 03:11:18 AM »
C. Intuition is a relic as far as event driven gui frameworks go. I'm just trying to familiarise myself with it before I start programming the front end. I'm more used to gtk2 + win32.
--/\\-[ Stu ]-/\\--
Commodore 128DCR, JiffyDOS, Ultimate 1541 II, uIEC/SD, CBM 1902A  Monitor
 

Offline yakumo9275Topic starter

  • Sr. Member
  • ****
  • Join Date: Jun 2008
  • Posts: 301
    • Show all replies
    • http://mega-tokyo.com/blog
Re: Intuition questions...
« Reply #2 on: August 29, 2011, 02:03:21 PM »
Thanks for the info jacadcaps, I'll start looking at somem uit tutorials and docs. How much intuition knowledge is required for mui? I'm assuming I'll still get all the IDCMP messages etc?

do I need to buy mui to develop for it? I remember yerars ago you had to register it.. wikipedia says its freeware but the mui homepage is... old but still talks about registering it.

Since I'm going to have to do all my text management myself I'm wondering now if I can use freetype.. may be to slow and I should just stick to topaz...

I need to do some more reading.
--/\\-[ Stu ]-/\\--
Commodore 128DCR, JiffyDOS, Ultimate 1541 II, uIEC/SD, CBM 1902A  Monitor