Raylin wrote:
Sent again. Same email address as before.
I think you failed at saving or something. Here's what the file you sent me contains:


Code:
.nolist
#include "ti83plus.inc"
#include "dcs7.inc"
.list

   .org progstart
   .db $BB,$6D

Init:

   xor d
   ret
   jr Start

   .dw Description
   .db $07,$00
   .dw $0000
   .dw $0000

Start:

   call OpenGUIStack
   ld hl, myWin
   ld de, myWinEnd-myWin
   ld a, GUIRLargeWin
   call PushGUIStack
   ld hl,0
   call GUIMouse
   ret

Description:
   .db "Raylin's Contest Entry",0
myWin:
   .db 0,0,0,0,0
   .db "This is a test",0
myWinEnd:
   
LOL whut...?
Raylin wrote:
0x5 whut...?
Got me. Hit ctrl-s a few more times? Are you sure this is test.asm? Smile

Edit: Specifically, test.asm in the /asm/source directory?
It was Notepad not saving. It works now.
Raylin wrote:
It was Notepad not saving. It works now.
Awesome, I'm glad we solved it, and I'm glad it was neither the toolchain's fault nor DCS's fault. Smile Let me know what the next GUI programming stumbling block that you run into is.
Most def.
What do you use for just normal text/ASM program editing?
Raylin wrote:
Most def.
What do you use for just normal text/ASM program editing?
My favorite program without a doubt for that is Notepad++:

http://notepad-plus-plus.org/

I use it for just about all my Windows programming, including PHP, JS, HTML, ASM, some C/C++, Java, etc. It does syntax highlighting, intelligent tabbing, tabbed viewing and editing, etc/
How do you advance a screen after using GUIMouse?
Do you push another groupmaster?
Raylin wrote:
How do you advance a screen after using GUIMouse?
Do you push another groupmaster?
If you want it layered on top, you push another groupmaster plus contents. If you want to show the same screen, you ld hl,0 and call GUIMouse again. If you want to show a different screen without keeping the previous one again, you PopGUIStacks, then push your new screen, or you CloseGUIStack, then push your new screen.
Now, it exits the program prematurely.

Anything wrong here?

Source code here.
Raylin wrote:
Now, it exits the program prematurely.

Anything wrong here?

Source code here.
At what point does it exit the program?
On the first GUIMouse click.
Raylin wrote:
On the first GUIMouse click.
Well of course, when you close the first window, it jumps to $0000. Try something more like this:


Code:
.nolist
#include "ti83plus.inc"
#include "dcs7.inc"
.list

   .org progstart
   .db $BB,$6D

Init:

   xor d
   ret
   jr Start

   .dw Description
   .db $07,$00
   .dw $0000
   .dw $0000

Start:

   call OpenGUIStack
   ld hl,guiNullArgs
   ld de,dataEnd-guiNullArgs
   ld a,GUIRNull
   call PushGUIStack
   ld hl,myText
   ld de,guiNullArgs-myText
   ld a,GUIRWrappedText
   call PushGUIStack
   ld hl,myButton2
   ld de,exitMyProg-myButton2
   ld a,GUIRButtonText
   call PushGUIStack
   ld hl,0
   call GUIMouse

ContinueHere:
   call ResetAppPage
   ld b,2
   call PopGUIStacks
   ld hl,myText2
   ld de,myButton-myText2
   ld a,GUIRWrappedText
   call PushGUIStack
   ld hl,myButton
   ld de,myText-myButton
   ld a,GUIRButtonText
   call PushGUIStack
   ld hl,0
   call GUIMouse

exitMyProg:
   call ResetAppPage
   ret


myButton2:
   .db 1,56
   .dw ContinueHere
   .db " Continue",0
myButton2End:

Description:
   .db " Contest Entry",0
myText2:
   .db 14,37,66,0," This is the world of Shenanigans.",0   
myButton:
   .db 1,56
   .dw exitMyProg
   .db " Continue",0   
myText:
   .db 1,1,93," There was a time where the world was simple. Where things didn't change. That is not this world. This is a world of turbulence. Of greed. Of vice.",0   
guiNullArgs:
   .db $FF
dataEnd:
GUI Error: Need RAM?
Change "exitMyProg-myButton2" to "myButton2End-myButton2"
Source code

myButton2 doesn't appear at all.
Raylin wrote:
Source code

myButton2 doesn't appear at all.
Does the rest of the window under MainMenu2 appear, though?
No. Unfortunately.
Raylin wrote:
No. Unfortunately.
What happens instead? The program exits? What do you click that should bring up MainMenu2, but doesn;t?
The myButton2 which basically opens a smallWin and has text inside doesn't appear at all. The rest of the program calls GUIMouse and works fine.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 5
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement