Re: Command Symbol as part of Title of Button

2019-01-17 Thread John J Foster via 4D_Tech
Hey Wayne,

Thanks for the idea.

John...

> John,
> 
> What I've done in the past (using Greek characters) was create an xliff
> file (which is in UTF-8) with the text in it.  I'm pretty certain that
> worked in v13+


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-17 Thread John J Foster via 4D_Tech
Hi Arnaud,

Thanks for the code.

I’m all bout certain that I’ll handle it via code and OBJECT SET TITLE.

Appreciate,
John...

> Hi John, 
> I use the following method to get the unicode value from some 4D constants: 
> 
> +
>  //UI_KeyboardGetChar (keyCode_l) -> code
>  //$0 code representing the keyCode_l
>  //keyCode_l: 4D constant
>  //example: Char(UI_KeyboardCharCode (Tab key)) -> "⇥"
>  //http://fr.wikipedia.org/wiki/Table_des_caractères_Unicode_(2000-2FFF) 
> 
> 
> C_LONGINT($0)
> C_LONGINT($1)
> 
> C_LONGINT($in_l)
> C_LONGINT($out_l)
> 
> If (False)
>   C_LONGINT(UI_KeyboardGetChar ;$0)
>   C_LONGINT(UI_KeyboardGetChar ;$1)
> End if 
>  //_
> If (Count parameters<1)
>   $out_l:=Character code("¿")
> Else 
>   $in_l:=$1
> //$char:=Caractère(UI_KeyboardGetChar (Tabulation))
>   Case of 
>   : ($in_l=Help key)
>   $out_l:=Character code("?")
>   : ($in_l=Escape key)
>   $out_l:=0x238B
> //$out_l:=0x241B  //esc in letters
>   : ($in_l=127)  //erase to the right
>   $out_l:=0x2326
>   : ($in_l=Backspace key)  //erase to the left
>   $out_l:=0x232B
>   : ($in_l=Return key)
>   $out_l:=0x21A9
> //$out_l:=0x23CE//alternate
>   : ($in_l=Enter key)
>   $out_l:=0x2305
>   : ($in_l=Tab key)
>   $out_l:=0x21E5
>   : ($in_l=Left arrow key)
>   $out_l:=0x2190
>   : ($in_l=Up arrow key)
>   $out_l:=0x2191
>   : ($in_l=Right arrow key)
>   $out_l:=0x2192
>   : ($in_l=Down arrow key)
>   $out_l:=0x2193
>   : ($in_l=Home key)
>   $out_l:=0x2196
>   : ($in_l=End key)
>   $out_l:=0x2198
>   : ($in_l=Page up key)
>   $out_l:=0x21DE
>   : ($in_l=Page down key)
>   $out_l:=0x21DF
>   Else 
>   $out_l:=Character code("¿")  //unknown
> //$out_l:=0x2328
>   End case 
> End if 
> 
> $0:=$out_l
>  //_
> 
> +
> 
> I use it this way:
> $buttonTitle:=:="Validate "+Char(UI_KeyboardGetChar (Enter key))
> OBJECT SET TITLE(*;"buttonName";$buttonTitle)
> 
> -- 
> Arnaud de Montard 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-17 Thread Arnaud de Montard via 4D_Tech
Hi John, 
I use the following method to get the unicode value from some 4D constants: 

+
  //UI_KeyboardGetChar (keyCode_l) -> code
  //$0 code representing the keyCode_l
  //keyCode_l: 4D constant
  //example: Char(UI_KeyboardCharCode (Tab key)) -> "⇥"
  //http://fr.wikipedia.org/wiki/Table_des_caractères_Unicode_(2000-2FFF)

C_LONGINT($0)
C_LONGINT($1)

C_LONGINT($in_l)
C_LONGINT($out_l)

If (False)
C_LONGINT(UI_KeyboardGetChar ;$0)
C_LONGINT(UI_KeyboardGetChar ;$1)
End if 
  //_
If (Count parameters<1)
$out_l:=Character code("¿")
Else 
$in_l:=$1
  //$char:=Caractère(UI_KeyboardGetChar (Tabulation))
Case of 
: ($in_l=Help key)
$out_l:=Character code("?")
: ($in_l=Escape key)
$out_l:=0x238B
  //$out_l:=0x241B  //esc in letters
: ($in_l=127)  //erase to the right
$out_l:=0x2326
: ($in_l=Backspace key)  //erase to the left
$out_l:=0x232B
: ($in_l=Return key)
$out_l:=0x21A9
  //$out_l:=0x23CE//alternate
: ($in_l=Enter key)
$out_l:=0x2305
: ($in_l=Tab key)
$out_l:=0x21E5
: ($in_l=Left arrow key)
$out_l:=0x2190
: ($in_l=Up arrow key)
$out_l:=0x2191
: ($in_l=Right arrow key)
$out_l:=0x2192
: ($in_l=Down arrow key)
$out_l:=0x2193
: ($in_l=Home key)
$out_l:=0x2196
: ($in_l=End key)
$out_l:=0x2198
: ($in_l=Page up key)
$out_l:=0x21DE
: ($in_l=Page down key)
$out_l:=0x21DF
Else 
$out_l:=Character code("¿")  //unknown
  //$out_l:=0x2328
End case 
End if 

$0:=$out_l
  //_

+

I use it this way:
$buttonTitle:=:="Validate "+Char(UI_KeyboardGetChar (Enter key))
OBJECT SET TITLE(*;"buttonName";$buttonTitle)

-- 
Arnaud de Montard 



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-16 Thread Wayne Stewart via 4D_Tech
John,

What I've done in the past (using Greek characters) was create an xliff
file (which is in UTF-8) with the text in it.  I'm pretty certain that
worked in v13+

Regards,

Wayne




On Thu, 17 Jan 2019 at 10:26, John J Foster via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi Tai,
>
> Thanks that works well in v17 (which I will keep around and use) but not
> in v15.2 (that’s the clients current working version).
>
> John…
>
>
> > On Jan 16, 2019, at 3:15 PM, Tai Bui  wrote:
> >
> > Hi,
> >
> > Hmm, not sure if it's just my machines or possibly caused by the emoji &
> symbol editor. But copying and pasting the character as a text character
> and not as an emoji/symbol allows me to paste the command symbol into the
> properties list Title section, the form editor and running the form seem to
> display the text properly.
> >
> > You can use
> > SET TEXT TO PASTEBOARD(Char(8984))
> > which generates the following character when pasting, ⌘
> >
> > Best Regards,
> > -Tai B.
> >
> >
> >
> > Tai Bui
> > Technical Services Engineer
> >
> > 4D Inc
> > 95 S. Market Street, Suite #240
> > San Jose,CA 95113
> > United States
> >
> > Telephone: +1-408-557-4600
> > Fax:   +1-408-271-5080
> > Email: t...@4d.com
> > Web:   www.4d.com
> >
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-16 Thread John J Foster via 4D_Tech
Hi Tai,

Thanks that works well in v17 (which I will keep around and use) but not in 
v15.2 (that’s the clients current working version).

John…


> On Jan 16, 2019, at 3:15 PM, Tai Bui  wrote:
> 
> Hi,
> 
> Hmm, not sure if it's just my machines or possibly caused by the emoji & 
> symbol editor. But copying and pasting the character as a text character and 
> not as an emoji/symbol allows me to paste the command symbol into the 
> properties list Title section, the form editor and running the form seem to 
> display the text properly.
> 
> You can use
> SET TEXT TO PASTEBOARD(Char(8984))
> which generates the following character when pasting, ⌘
> 
> Best Regards,
> -Tai B.
> 
> 
> 
> Tai Bui
> Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> San Jose,CA 95113
> United States
> 
> Telephone: +1-408-557-4600
> Fax:   +1-408-271-5080
> Email: t...@4d.com
> Web:   www.4d.com
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Command Symbol as part of Title of Button

2019-01-16 Thread Tai Bui via 4D_Tech
Hi,

Hmm, not sure if it's just my machines or possibly caused by the emoji & symbol 
editor. But copying and pasting the character as a text character and not as an 
emoji/symbol allows me to paste the command symbol into the properties list 
Title section, the form editor and running the form seem to display the text 
properly.

You can use
SET TEXT TO PASTEBOARD(Char(8984))
which generates the following character when pasting, ⌘

Best Regards,
-Tai B.



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-16 Thread John J Foster via 4D_Tech
Hi Tai,

No I was trying it the “quick” way! 

I’ll give it a try.

Thank you!

John…



> On Jan 16, 2019, at 2:27 PM, Tai Bui  wrote:
> 
> Hi,
> 
> Have you tried the OBJECT SET TITLE command?
> 
> OBJECT SET TITLE(*;"Button";Char(8984)+"T")
> Works for me on Windows and Mac, 4Dv16 and 4Dv17.
> 
> Best Regards,
> -Tai B.
> 
> 
> 
> Tai Bui
> Technical Services Engineer
> 
> 4D Inc
> 95 S. Market Street, Suite #240
> San Jose,CA 95113
> United States
> 
> Telephone: +1-408-557-4600
> Fax:   +1-408-271-5080
> Email: t...@4d.com
> Web:   www.4d.com
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Command Symbol as part of Title of Button

2019-01-16 Thread Tai Bui via 4D_Tech
Hi,

Have you tried the OBJECT SET TITLE command?

OBJECT SET TITLE(*;"Button";Char(8984)+"T")
Works for me on Windows and Mac, 4Dv16 and 4Dv17.

Best Regards,
-Tai B.



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-16 Thread John J Foster via 4D_Tech
Hi,

Currently on a Mac (Windows later).

I changed the font to "Arial Unicode MS" on the button.

And I have PopChar - which when set to font "Arial Unicode MS“ shows the 
character as “Place of Interest Sign” and #8984(2318). So good.

But I have tried many variations from pasting the character which is changed to 
a “?” to entering "”.

So nothing that sticks with the button title.

Appreciate,
John…


> On Jan 16, 2019, at 2:08 PM, 4dinug <4di...@mozartiana.com> wrote:
> 
> Hi, John.
> 
> You need to use a font that supports the characte2318)r, which is Unicode 
> U+2318 (colloquially known as the "Place of Interest Sign").
> 
> On my Windows machine (running 4D v17), Arial Unicode MS works for me, with 
> the symbol showing up on form buttons just fine.
> 
> See here for more fonts: 
> http://www.fileformat.info/info/unicode/char/2318/fontsupport.htm
> 
> 
> 
> On 1/16/2019 1:13 PM, John J Foster via 4D_Tech wrote:
>> Hi All,
>> I would like to show a command symbol (and option of shift as well) as part 
>> of the Title in a button.
>> For example if I have a button with a Title as “CmdT" I’d like to see the 
>> “symbolT” instead.
>> So far copying and pasting the symbol from the Emoji & Symbol Editor does 
>> not work. I cannot find it in the Keyboard viewer. It converts them into “?”.
>> Anyone?
>> Appreciate,
>> John…

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-16 Thread John J Foster via 4D_Tech
Hi Chip,

Thanks.

Seems strange that with all the Unicode characters 4D can handle that a button 
wouldn’t;t be able to show that character.

yes I could create an svg button but seems overkill (at this point anyway).

I’d rather not keeping whacking my brain trying things that won’t work.

Anyway, appreciate,
John…


> On Jan 16, 2019, at 1:22 PM, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> John,
> as I recall to do this (command symbol) you need to use the Font 
> Chicago, as it was only font that supported it. Chicago is a now 
> defunct font.
> So... I do not think you can do this with a standard button and text.
> 
> You might be able to cobble something together with SVG (I would not 
> know), or use a combination of invisible/highlight buttons, text and 
> picture library.
> 
> My solution (not elegant) was:
> Command/Cntrl - S
> as button text, where 's' is whatever letter.
> 
> Chip
> 
> On Wed, 16 Jan 2019 13:13:08 -0800, John J Foster via 4D_Tech wrote:
>> Hi All,
>> 
>> I would like to show a command symbol (and option of shift as well) 
>> as part of the Title in a button.
>> 
>> For example if I have a button with a Title as “CmdT" I’d like to 
>> see the “symbolT” instead.
>> 
>> So far copying and pasting the symbol from the Emoji & Symbol Editor 
>> does not work. I cannot find it in the Keyboard viewer. It converts 
>> them into “?”.
>> 
>> Anyone?
>> 
>> Appreciate,
>> John…
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> ---
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Command Symbol as part of Title of Button

2019-01-16 Thread Chip Scheide via 4D_Tech
John,
as I recall to do this (command symbol) you need to use the Font 
Chicago, as it was only font that supported it. Chicago is a now 
defunct font.
So... I do not think you can do this with a standard button and text.

You might be able to cobble something together with SVG (I would not 
know), or use a combination of invisible/highlight buttons, text and 
picture library.

My solution (not elegant) was:
Command/Cntrl - S
as button text, where 's' is whatever letter.

Chip

On Wed, 16 Jan 2019 13:13:08 -0800, John J Foster via 4D_Tech wrote:
> Hi All,
> 
> I would like to show a command symbol (and option of shift as well) 
> as part of the Title in a button.
> 
> For example if I have a button with a Title as “CmdT" I’d like to 
> see the “symbolT” instead.
> 
> So far copying and pasting the symbol from the Emoji & Symbol Editor 
> does not work. I cannot find it in the Keyboard viewer. It converts 
> them into “?”.
> 
> Anyone?
> 
> Appreciate,
> John…
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Command Symbol as part of Title of Button

2019-01-16 Thread John J Foster via 4D_Tech
Hi All,

I would like to show a command symbol (and option of shift as well) as part of 
the Title in a button.

For example if I have a button with a Title as “CmdT" I’d like to see the 
“symbolT” instead.

So far copying and pasting the symbol from the Emoji & Symbol Editor does not 
work. I cannot find it in the Keyboard viewer. It converts them into “?”.

Anyone?

Appreciate,
John…


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**