CUEBANNER is disappear when ::SetFocus() ?

CUEBANNER is disappear when ::SetFocus() ?

Postby dutch » Wed Aug 30, 2017 9:06 am

I've a question about CUEBANNER.

When I use CUEBANNER on GET (Character), it will cuebanner text will disappear when ::gotfocus even I do not enter anything (still empty) but for PASSWORD not disappear if GET is empty.
I try this sample, it doesn't show anything.
Code: Select all  Expand view
#include 'fivewin.ch'

function main
local oDlg, oGet[2], oFnt
local cUser, cPass

cUser := space(10)
cPass := space(10)
DEFINE FONT oFnt NAME "Tahoma" SIZE 0, -20
DEFINE DIALOG oDlg FROM 0, 0 TO 400, 400 PIXEL FONT oFnt

  @ 30, 30 GET oGet[1] VAR cUser OF oDlg SIZE 100, 12 PIXEL NOBORDER UPDATE COLOR CLR_BLUE, CLR_WHITE FONT oFnt  CUEBANNER "User Id"

  @ 60, 30 GET oGet[2] VAR cPass OF oDlg SIZE 100, 12 PIXEL NOBORDER UPDATE PASSWORD COLOR CLR_BLUE, CLR_WHITE FONT oFnt CUEBANNER "Password"

ACTIVATE DIALOG oDlg CENTER
return nil

Thanks in advance for any suggestion.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: CUEBANNER is disappear when ::SetFocus() ?

Postby dutch » Wed Aug 30, 2017 3:07 pm

This is my login program that I need but the CUEBANNER is disappear when Get[1]:GotFocus().
If I oGet[1]:setfocus(), CUEBANNER "User Id" will never show. For PASSWORD Clause is working well.
For this sample, I setfocus to Exit button.
Image
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: CUEBANNER is disappear when ::SetFocus() ?

Postby Antonio Linares » Thu Aug 31, 2017 4:09 pm

We are reviewing it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: CUEBANNER is disappear when ::SetFocus() ?

Postby dutch » Fri Sep 01, 2017 1:34 am

Thank you so much.
Antonio Linares wrote:We are reviewing it
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: CUEBANNER is disappear when ::SetFocus() ?

Postby nageswaragunupudi » Sun Sep 17, 2017 3:21 am

Please wait for FWH 17.08
I know you use FW_SetUnicode( .t. ). Please use it.
Then you add " CHRGROUP CHR_WIDE" to the first Get.

This is the revised code:
Code: Select all  Expand view
#include 'fivewin.ch'

function main
local oDlg, oGet[2], oFnt
local cUser, cPass

FW_SetUnicode( .T. )

cUser := space(10)
cPass := space(10)
DEFINE FONT oFnt NAME "Tahoma" SIZE 0, -20
DEFINE DIALOG oDlg FROM 0, 0 TO 400, 400 PIXEL FONT oFnt

  @ 30, 30 GET oGet[1] VAR cUser OF oDlg SIZE 100, 12 PIXEL NOBORDER UPDATE COLOR CLR_BLUE, CLR_WHITE FONT oFnt  CUEBANNER "User Id" CHRGROUP CHR_WIDE

  @ 60, 30 GET oGet[2] VAR cPass OF oDlg SIZE 100, 12 PIXEL NOBORDER UPDATE PASSWORD COLOR CLR_BLUE, CLR_WHITE FONT oFnt CUEBANNER "Password"

ACTIVATE DIALOG oDlg CENTER
return nil
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: CUEBANNER is disappear when ::SetFocus() ?

Postby dutch » Sun Sep 17, 2017 5:01 am

Dear Mr.Rao,

CHR_WIDE, It works with 17.07 too.
Thanks a lot.

A little more, Can I make another TSAY:Hide() when cUser is empty. Then TSAY:Show() when cUser is not empty.
I try ::bKeyDown(), ::bGotFocus() but it doesn't work.

Image
nageswaragunupudi wrote:Please wait for FWH 17.08
I know you use FW_SetUnicode( .t. ). Please use it.
Then you add " CHRGROUP CHR_WIDE" to the first Get.

This is the revised code:
Code: Select all  Expand view
#include 'fivewin.ch'

function main
local oDlg, oGet[2], oFnt
local cUser, cPass

FW_SetUnicode( .T. )

cUser := space(10)
cPass := space(10)
DEFINE FONT oFnt NAME "Tahoma" SIZE 0, -20
DEFINE DIALOG oDlg FROM 0, 0 TO 400, 400 PIXEL FONT oFnt

  @ 30, 30 GET oGet[1] VAR cUser OF oDlg SIZE 100, 12 PIXEL NOBORDER UPDATE COLOR CLR_BLUE, CLR_WHITE FONT oFnt  CUEBANNER "User Id" CHRGROUP CHR_WIDE

  @ 60, 30 GET oGet[2] VAR cPass OF oDlg SIZE 100, 12 PIXEL NOBORDER UPDATE PASSWORD COLOR CLR_BLUE, CLR_WHITE FONT oFnt CUEBANNER "Password"

ACTIVATE DIALOG oDlg CENTER
return nil
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 104 guests