Recent

Author Topic: Open file dialog on wince  (Read 19095 times)

Alekos

  • New member
  • *
  • Posts: 7
    • http://www.iqsoft.gr
Open file dialog on wince
« on: November 22, 2009, 10:33:43 pm »
I tried the dayly snapshot 0.9.29.2700 2.3.1 and when i call opendialog the program crashes on windows CE
It was working fine with 0.9.28 last stable version the new open dialog  
http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes

Any suggestion how can this be solved?

I tried the dayly snapshot 0.9.29.2700 2.2.4 works fine
« Last Edit: November 22, 2009, 11:23:28 pm by Alekos »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Open file dialog on wince
« Reply #1 on: November 23, 2009, 04:41:56 pm »
The best would be a bug report to track this kind of problem.

Also, I just fixed exception showing, so in snapshots starting from tomorrow the exception showing dialog is working, so you could test again, and maybe it will show which exception occurred so that I can have more information about what is wrong with FPC 2.3.1

Could you do this test?

thanks,

Alekos

  • New member
  • *
  • Posts: 7
    • http://www.iqsoft.gr
Re: Open file dialog on wince
« Reply #2 on: February 02, 2010, 06:33:09 pm »
On buile 0.9.28 2.2.4 the open dialog works fine...
I tried 0.9.29 2.4.0 from revision 23560  to 23609 the open dialog does not work..... :)
How can we post a bug for it..... the problem must be in FPC 2.4 or 2.4.1 ......

Zaher

  • Hero Member
  • *****
  • Posts: 680
    • parmaja.org
Re: Open file dialog on wince
« Reply #3 on: February 03, 2010, 03:57:15 pm »
>I tried 0.9.29 2.4.0 from revision 23560  to 23609 the open dialog does not work
Your dialog not work but your application is worked?

Alekos

  • New member
  • *
  • Posts: 7
    • http://www.iqsoft.gr
Re: Open file dialog on wince
« Reply #4 on: February 03, 2010, 06:23:49 pm »
The application works ok..... but when i try to open the open or save dialog it closes.......... :(

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Open file dialog on wince
« Reply #5 on: March 10, 2010, 05:06:21 pm »
Could you report in the bug tracker ... reports in the forum are easily forgotten

Zaher

  • Hero Member
  • *****
  • Posts: 680
    • parmaja.org
Re: Open file dialog on wince
« Reply #6 on: March 10, 2010, 09:08:59 pm »
If i not like the Open save dialogs in Lazarus special for WinCE, can i make a custom one and attach it to work instead of the current?.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Open file dialog on wince
« Reply #7 on: March 11, 2010, 02:20:34 pm »
If i not like the Open save dialogs in Lazarus special for WinCE, can i make a custom one and attach it to work instead of the current?.

I don't understand your question. If you want to have a custom dialog for your application, sure, just build one. You can create a TMyOpenDialog

If you want to change the current implementation of TOpenDialog for WinCE then we have to discuss it and reach an agreement.
« Last Edit: March 11, 2010, 04:45:44 pm by felipemdc »

Zaher

  • Hero Member
  • *****
  • Posts: 680
    • parmaja.org
Re: Open file dialog on wince
« Reply #8 on: March 11, 2010, 03:18:43 pm »
Without make new component, just like make hook to replace the current one TOpenDialog and without touch the current implementation of TOpenDialog, Can I?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Open file dialog on wince
« Reply #9 on: March 11, 2010, 04:49:58 pm »
I took a quick look and didn't find a possibility. There override methods for message dialogs and other things, maybe there is for open dialog too, but I didn't find one.

A solution would be creating a class which inherits either from TOpenDialog or TFileDialog and then override the DoExecute method to show your own dialog. This way you will have most of the behavior from those classes.

Zaher

  • Hero Member
  • *****
  • Posts: 680
    • parmaja.org
Re: Open file dialog on wince
« Reply #10 on: March 11, 2010, 11:19:19 pm »
The idea i need to call OpenDialog in Win32/Linux by the default but in WinCE with mine, but i can do that in run time (Creating TOpenDialog).

[OFFTOPIC]
Is "sekel" user renamed to "felipemdc"


felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Open file dialog on wince
« Reply #11 on: March 12, 2010, 10:41:31 am »
The idea i need to call OpenDialog in Win32/Linux by the default but in WinCE with mine, but i can do that in run time (Creating TOpenDialog).

You can use an ifdef:

{$ifdef WinCE}
  MyOpenDialog := TMyOpenDialog;
{$else}
  MyOpenDialog := TOpenDialog;
{$endif}

Quote
Is "sekel" user renamed to "felipemdc"

yes =D

 

TinyPortal © 2005-2018