Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 08-21-2009, 06:12 PM
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default tabbing issue

hey,
I took another glance at tabbing through all controls in a form without a custom routine and found a interesting solution on the web: IsDialogMessage .
now I don't know how exactly PPL handles messages, does it have a internal message loop somewhere?
if so could you change your message loop to something like this Alain?
Code:
MSG msg;
    while (GetMessage(&msg, NULL, 0, 0)) {
        if (IsDialogMessage(hwnd, &msg)) {
            /* Already handled by dialog manager */
        } else {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
        }
    }
then we should be able to tap through our non dialog based forms
this thread gives you some additional background information.
let me hear your opinion!
Reply With Quote
  #2  
Old 10-01-2009, 10:54 AM
juppmaifeld juppmaifeld is offline
Member
 
Join Date: Aug 2009
Posts: 43
Default

Hi, back again.

I can't get tabbing running on a dialog form (PPL 15.3). Is there any tutorial or example available concerning that topic?

Regards

Jupp
Reply With Quote
  #3  
Old 10-02-2009, 12:58 AM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default Re: tabbing issue

PPL 15.3 ? wow where did you get that version?

Please have a look at the main.ppl code it does have tab control.
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
  #4  
Old 10-03-2009, 05:38 PM
Nicknack Nicknack is offline
Senior Member
 
Join Date: Nov 2006
Location: Germany
Posts: 527
Default

actually this thread was meant about tabbing through the whole dialog with the tab key, not the tab control. ws_tabstop is still without a use in PPL 2.0, therefore I asked you if you (@kornalius) could take a look at the IsDialogMessage solution.

@juppmaifeld: if you search for an example for the TabControl, I can send you a simple working one
Reply With Quote
  #5  
Old 10-04-2009, 04:56 PM
juppmaifeld juppmaifeld is offline
Member
 
Join Date: Aug 2009
Posts: 43
Default tabbing through dialog forms

Hi Nicknack,

I also didn't mean tabcontrol. I want to use the tab key to tab through a dialog form using ws_tabstop, ws_group, DEFPUSHBUTTON, PUSHBUTTON and all this stuff to switch the keyboard focus to different buttons. It doesn't work in PPL 1.53 Pro. At least I wasn't able to get it running. It appears that PPL 2.0 uses the same core like PPL 1.x.

Hi Kornalius,

I hope PPL will reach a version level of 15.3 someday but at the moment I would be very happy to get good running version 1.6 (maybe 2.x) without so much mistakes (I know developing software without mistakes is almost impossible) as soon as possible. By the way. You didn't make a joke concerning threads in PPL 1.x (see the thread: threads in ppl 1.x) as you mentioned that there wasn't any multi threading features implemented in PPL 1.x ?

Regards,

Jupp


P.S. See the attached File as an example for a (yet) not working tabbing.
Attached Files
File Type: zip dialogtest.zip (26.3 KB, 177 views)

Last edited by juppmaifeld; 10-04-2009 at 05:10 PM. Reason: Attache example for tabbing issue
Reply With Quote
  #6  
Old 10-04-2009, 07:03 PM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default Re: tabbing issue

No that was not a joke concerning no multithreading in 1.53. The core interpreter engine is not designed for this. I am working on a full redesign which will have support and at the same time should gain in speed.

As for tabbing for controls I will have to take a closer look. However I will only get to work on 2.x.
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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. The time now is 06:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd