Dealing with forms in windows

C and PASCAL (or any other high-level languages) in here please

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

itaboy
Captain Atari
Captain Atari
Posts: 174
Joined: Sun May 04, 2014 6:24 pm

Dealing with forms in windows

Postby itaboy » Mon May 01, 2017 4:29 pm

Hello guys, I am moving my first steps in GEM.
I have read many tutorials and I have no problems in working with windows, or forms.
Buthow do i deal with forms inside a window?
I know I should put away the form_do and use form_keybd and form_button, but some things are still unclear...
1) How do I present a form in a window with the cursor on the first char of an editable field (I use objc_edit with parameter ED_INIT, but the cursor blinks at the end of the empty line and not at the beginning):

Has any of you a working example of how to move around with this?

Thanks for the attention

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2251
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: Dealing with forms in windows

Postby lp » Wed May 03, 2017 11:43 am

I used this as a guide when dealing with forms in a window. It explains how to replace form_do() with form_keybd() and form_button(), etc.

tim_oren_prof_gem.pdf


Was going to add it to devdocs, but the server is acting up at the moment.
You do not have the required permissions to view the files attached to this post.

itaboy
Captain Atari
Captain Atari
Posts: 174
Joined: Sun May 04, 2014 6:24 pm

Re: Dealing with forms in windows

Postby itaboy » Wed May 03, 2017 12:18 pm

Great.. I'll read it dtrsightaway...
Thank you very much!


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 2 guests