Unicode & TextEdit

View: New views
8 Messages — Rating Filter:   Alert me  

Unicode & TextEdit

by Phil Weiss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have been able to implement the Multi-Lingual Text Engine (MLTE) in our
plug-in on the Mac side.  It appears that the Rich Edit control would used
on the Windows side.  Has anyone been successful in implementing this?

Also, is there any way to detect if "Unicode mode" is enabled from a
plug-in?


Thanks in advance,

Phil Weiss

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Unicode & TextEdit

by aparajita :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Also, is there any way to detect if "Unicode mode" is enabled from a
> plug-in?

Call PA_ExecuteCommandByID, execute the 'Get database parameter'  
command with selector 41.

Kind regards,

    Aparajita
    www.aparajitaworld.com

    "If you dare to fail, you are bound to succeed."
    - Sri Chinmoy   |   www.srichinmoy.org

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Unicode & TextEdit

by Christian Sakowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

PA_ExecuteCommandByID does not work. This command crashes 4D!
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
Christian.sakowski@...
iChat/AIM: SakowskiF
ICQ: 4thDimension (267537916)
Tel: 040/52 10 59-23



Am 09.10.2009 um 22:07 schrieb Aparajita Fishman:

>> Also, is there any way to detect if "Unicode mode" is enabled from a
>> plug-in?
>
> Call PA_ExecuteCommandByID, execute the 'Get database parameter'  
> command with selector 41.
>
> Kind regards,
>
>   Aparajita
>   www.aparajitaworld.com
>
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoy.org
>
> **********************************************************************
> 4D Plugins hosted by 4D, Inc.                      http://www.4D.com/
>
>   Register for 4D Summit 2009 Today
>   http://www.4D.com/summit
>
> To Unsubscribe:                      mailto:4D-Plugins-off@...
> ***********************************************************************
>
>

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Unicode & TextEdit

by aparajita :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> PA_ExecuteCommandByID does not work. This command crashes 4D!

If you call it incorrectly it will probably crash. I use it all the  
time with no problems.

 From the plugin's point of view, it doesn't matter if the database is  
running in Unicode mode or not. If you plugin is running in  
compatibility mode, it will receive PA_Text, no matter what mode the  
database is in. If your plugin is  running in native mode, you will  
receive PA_Unistring, no matter what mode the database is in.

Kind regards,

    Aparajita
    www.aparajitaworld.com

    "If you dare to fail, you are bound to succeed."
    - Sri Chinmoy   |   www.srichinmoy.org

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Unicode & TextEdit

by Christian Sakowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ACI0062838 from July 31st. 2009, Verified and reproducible

Executing the lines:

PA_Variable result;
result=PA_ExecuteCommandByID(494,0,0);


crashes 4D! Command #494 is "Application type". Mac 10.5.7, Plugin SDK  
11.4, 4D 11.4hf3

Also 10.6.1 and 4D 11.4.7

Can you please try these lines???

--

Grüße/Regards,
[heubach-media] | Christian Sakowski
Christian.sakowski@...
iChat/AIM: SakowskiF
ICQ: 4thDimension (267537916)
Tel: 040/52 10 59-23



Am 10.10.2009 um 13:37 schrieb Aparajita Fishman:

>> PA_ExecuteCommandByID does not work. This command crashes 4D!
>
> If you call it incorrectly it will probably crash. I use it all the  
> time with no problems.
>
> From the plugin's point of view, it doesn't matter if the database  
> is running in Unicode mode or not. If you plugin is running in  
> compatibility mode, it will receive PA_Text, no matter what mode the  
> database is in. If your plugin is  running in native mode, you will  
> receive PA_Unistring, no matter what mode the database is in.
>
> Kind regards,
>
>   Aparajita
>   www.aparajitaworld.com
>
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoy.org
>
> **********************************************************************
> 4D Plugins hosted by 4D, Inc.                      http://www.4D.com/
>
>   Register for 4D Summit 2009 Today
>   http://www.4D.com/summit
>
> To Unsubscribe:                      mailto:4D-Plugins-off@...
> ***********************************************************************
>
>

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Unicode & TextEdit

by MIYAKO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am making a wild guess,
are you trying to call this function during PluginInit ?

miyako

On 2009/10/11, at 4:37, Christian Sakowski wrote:

>>> PA_ExecuteCommandByID does not work. This command crashes 4D!

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Unicode & TextEdit

by Christian Sakowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes!
--

Grüße/Regards,
[heubach-media] | Christian Sakowski
Christian.sakowski@...
iChat/AIM: SakowskiF
ICQ: 4thDimension (267537916)
Tel: 040/52 10 59-23



Am 18.10.2009 um 18:20 schrieb miyako:

> Hi,
>
> I am making a wild guess,
> are you trying to call this function during PluginInit ?
>
> miyako
>
> On 2009/10/11, at 4:37, Christian Sakowski wrote:
>
>>>> PA_ExecuteCommandByID does not work. This command crashes 4D!
>
> **********************************************************************
> 4D Plugins hosted by 4D, Inc.                      http://www.4D.com/
>
>   Register for 4D Summit 2009 Today
>   http://www.4D.com/summit
>
> To Unsubscribe:                      mailto:4D-Plugins-off@...
> ***********************************************************************
>
>

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Unicode & TextEdit

by MIYAKO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I can confirm the API crashes during this phase, but will work in a  
"normal" context.

is this expected behavior ?

maybe, maybe not...

miyako

On 2009/10/19, at 2:28, Christian Sakowski wrote:

> Yes!

> Am 18.10.2009 um 18:20 schrieb miyako:
>
>> Hi,
>>
>> I am making a wild guess,
>> are you trying to call this function during PluginInit ?
>>
>> miyako
>>
>> On 2009/10/11, at 4:37, Christian Sakowski wrote:
>>
>>>>> PA_ExecuteCommandByID does not work. This command crashes 4D!
**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Register for 4D Summit 2009 Today
    http://www.4D.com/summit

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************