Objects that disappear within the control Group (SOLVED)

Objects that disappear within the control Group (SOLVED)

Postby tiaofw » Wed Feb 01, 2012 12:49 pm

Good day!

Rebuild the system using the FWH1112 and access a client machine and checked the problem of disappearing objects within the Group.

As you can see on screen, I send the links below:

[url]
http://www.salc.com.br/atual/erro_fwh1112.jpg
http://www.salc.com.br/atual/erro_fwh11 ... aquina.jpg
[/url]

A screen of my machine with windows xp 32 bits, the other is the screen of the client with the same operating system.

Already configured in Group PellesC to transparent, put the parameter in the code transparent and so far the problem persists.

Any idea of solution?

Thank you!
Last edited by tiaofw on Tue Feb 12, 2013 5:15 pm, edited 1 time in total.
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby ukservice » Wed Feb 01, 2012 1:32 pm

Hello,

Did you tested with FW 11.11?.

Please, look at viewtopic.php?f=3&t=22940&hilit=tgroup
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: Objects that disappear within the control Group

Postby tiaofw » Wed Feb 01, 2012 6:11 pm

ukservice wrote:Hello,

Did you tested with FW 11.11?.

Please, look at viewtopic.php?f=3&t=22940&hilit=tgroup



Good afternoon!

I tried to use SetDlgGradient ({{1, RGB (199, 216, 237), RGB (237, 242, 248)}}), but it caused unwanted effects on the colors throughout the system.

see:

http://www.salc.com.br/atual/erro_use_s ... adient.jpg

Not tested in FWH1111, has something in 11.11 which was not corrected in 11:12?


Thank you!
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby Antonio Linares » Thu Feb 02, 2012 11:40 pm

In your RC dialogs please place the GROUPBOX before the controls that it contains
regards, saludos

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

Re: Objects that disappear within the control Group

Postby tiaofw » Sun Mar 04, 2012 11:40 pm

Good night!

I did as you suggested!

But the overriding control Group continues on the other controls, as shown in previous screens!

Show below the screen PellesC for the analysis:

http://www.salc.com.br/atual/telaconfig1.jpg

http://www.salc.com.br/atual/telaconfig2.jpg


And the piece of source code where the control group box is enabled:


Code: Select all  Expand view

REDEFINE GROUP oGroup ID 114 color RGB(255, 0, 0), RGB(182,221,199) of odlg_ped FONT oFont1 PROMPT "Configuração Retaguarda" TRANSPARENT

REDEFINE radio orad var v_retaguar ID 801, 803 COLOR RGB(0, 0, 0), RGB(182,221,199) of odlg_ped UPDATE

REDEFINE SAY ID 38 color RGB(0, 0, 0), RGB(182,221,199) of odlg_ped FONT oFont1 UPDATE
REDEFINE get ogetdir var v_dirserver picture '@!' ID 216 of odlg_ped ;
         color get_frente,get_fundo BITMAP "pastas" ;
         Action (v_dirserver:=if(empty(dir_teste:= ;
         cgetdir32('Selecione o Diretório',v_dirserver)), ;
         v_dirserver,dir_teste),odlg_ped:update(),sysrefresh()) ;
         update when if(v_retaguar == 1, .t.,  ;
         if(v_retaguar # 1, (v_dirserver := space(len(v_dirserver)), ;
         ogetdir:refresh(), sysrefresh(), .f.), .t.))

ACTIVATE DIALOG odlg_ped CENTERED ON INIT MudarFoco(@oFld_SPED)

return nil


function MudarFoco(oFld_SPED)

oFld_SPED:aDialogs[1]:bStart:={|| oFld_SPED:aDialogs[1]:SetFocus() }
oFld_SPED:refresh(.t.)

return(NIL)
 


Recalling that the problem occurs on some machines with WindowsXP and not others!

Thanks!
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby tiaofw » Tue Mar 20, 2012 1:50 pm

Up!
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby Antonio Linares » Tue Mar 20, 2012 3:39 pm

Please post your RC file here as text, so we can review it, thanks
regards, saludos

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

Re: Objects that disappear within the control Group

Postby ukoenig » Tue Mar 20, 2012 8:50 pm

Antonio,

I just finished and included the RESOURCE-part.

There is NO problem !!!
All included Controls are working fine ( transparent )
with any selected Background-combination from Code and Resource.
A Group-test ( Dialog and TFolderEx ) is included.
Still a little bit Finetuning needed.

I tested to the Limit, but couldn't detect a Problem.

I just noticed a little Problem with BtnBmp Prompt Auto-Linefeed ( not centered )
like You can see in the Main-Screenshot.

REDEFINE BTNBMP oBtn2 ;
ID 610 OF oDlg1 ;
NOBORDER ;
PROMPT "Exit + &Save" ;
ACTION ( SAVE_INI(), oDlg1:End() ) ;
FILENAME c_path + "\Images\Save.Bmp" ;
FONT oBrwFont 2007 ;
LEFT
oBtn2:lTransparent := .t.
oBtn2:cToolTip = { "Save Selections" + CRLF + "to INI-File","Save", 1, CLR_BLACK, 14089979 }
oBtn2:SetColor( 0, )


I changed to :

PROMPT "Exit and" + CRLF +" &Save" ;

PROMPT "&Exit NO " + CRLF + "Save" ;


Image

see BtnBmp ( bottom ) without CRLF in Promts :

Image

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Objects that disappear within the control Group

Postby tiaofw » Wed Mar 21, 2012 9:45 pm

Good afternoon!

The following code. RC of the screen where the problem appears:

Code: Select all  Expand view

// RESOURCE SCRIPT generated by "Pelles C for Windows, version 6.50".

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>

LANGUAGE LANG_PORTUGUESE,SUBLANG_PORTUGUESE_BRAZILIAN

EXCLUIR BITMAP "res1.bmp"

GRAVAR BITMAP "res2.bmp"

SANGRIA BITMAP "res3.bmp"

SANGRIA1 BITMAP "res4.bmp"

SUPRIMENTO BITMAP "res5.bmp"

SUPRIMENTO1 BITMAP "res6.bmp"

VENDER BITMAP "res7.bmp"

VENDER1 BITMAP "res8.bmp"

CLOCK CURSOR "res1.cur"

I_AGUARDE ICON "res1.ico"

I_ARMARIO ICON "res2.ico"

I_IMPRESSORA ICON "res3.ico"

I_SENHA ICON "res4.ico"

DLG_CONFIG DIALOG DISCARDABLE 6, 15, 520, 327
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Parametrização do Sistema"
FONT 8, "MS Sans Serif"
{
  CONTROL "Mensagem do Cupom", 131, "Button", BS_GROUPBOX, 2, 204, 288, 96
  CONTROL "Configuração Retaguarda", 114, "Button", BS_GROUPBOX|WS_GROUP, 292, 233, 226, 70, WS_EX_TRANSPARENT
  CONTROL "", 110, "TFolderex", WS_GROUP|WS_TABSTOP, 2, 2, 516, 152
  CONTROL "Balança Imprime Preço no Código de Barra EAN13", 901, "Button", BS_AUTOCHECKBOX, 6, 156, 252, 10
  CONTROL "Solicitar Comissionamento após a venda", 902, "Button", BS_AUTOCHECKBOX, 266, 156, 238, 10
  CONTROL "Imprimir Nome Usuário no Cupom", 903, "Button", BS_AUTOCHECKBOX, 6, 168, 252, 10
  CONTROL "Bloquear Venda com Estoque Zerado ou Negativo", 904, "Button", BS_AUTOCHECKBOX, 266, 168, 238, 10
  CONTROL "Selecionar Campo Cliente no Pagamento", 907, "Button", BS_AUTOCHECKBOX, 6, 180, 252, 10
  CONTROL "Mostrar Quantidade Total na Venda", 905, "Button", BS_AUTOCHECKBOX, 266, 180, 238, 10
  CONTROL "Somar a Posição de Estoque Vinda do Retaguarda", 910, "Button", BS_AUTOCHECKBOX, 6, 193, 285, 10
  CONTROL "", 211, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 6, 217, 280, 14
  CONTROL "", 212, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 6, 233, 280, 14
  CONTROL "", 213, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 6, 249, 280, 14
  CONTROL "", 214, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 6, 265, 280, 14
  CONTROL "", 215, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 6, 281, 280, 14
  CONTROL "Imprime Comp. Troca de Usuário", 906, "Button", BS_AUTOCHECKBOX, 294, 196, 219, 10
  CONTROL "Permitir Alterar Parcelas e Datas", 908, "Button", BS_AUTOCHECKBOX, 294, 209, 219, 10
  CONTROL "Pesquisa no Modo Supermercado por Descrição", 909, "Button", BS_AUTOCHECKBOX, 294, 221, 219, 10
  CONTROL "Utiliza Retaguarda Padronizado", 801, "Button", BS_AUTORADIOBUTTON, 296, 245, 220, 10
  CONTROL "Não Utiliza Retaguarda", 803, "Button", BS_AUTORADIOBUTTON, 296, 259, 220, 10
  CONTROL "", 216, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 296, 287, 220, 13
  CONTROL "Configurar &Impressora", 103, "Button", WS_TABSTOP, 2, 306, 120, 16
  CONTROL "Configurar &Balança de Caixa", 104, "Button", WS_TABSTOP, 148, 306, 140, 16
  CONTROL "&Aceitar", 101, "Button", WS_TABSTOP, 330, 306, 70, 16
  CONTROL "&Cancelar", 102, "Button", WS_TABSTOP, 408, 306, 70, 16
  CONTROL "Caminho do Servidor Retaguarda:", 38, "Static", WS_GROUP, 296, 275, 204, 10
}

BROWSE1 BITMAP "res9.bmp"

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,37,0
PRODUCTVERSION 1,0,37,0
FILEFLAGSMASK 0x3F
FILEFLAGS 0x0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
{
  BLOCK "StringFileInfo"
  {
    BLOCK "041604B0"
    {
      VALUE "Comments", "Sistema Emissor de Cupom Fiscal Homologado conforme CONVÊNIO ICMS 15/08\0"
      VALUE "CompanyName", "SAALLC INFORMÁTICA\0"
      VALUE "FileDescription", "Programa Aplicativo Fiscal (PAF/ECF - ER 01.07)\0"
      VALUE "FileVersion", "1.37\0"
      VALUE "InternalName", "SALC.EXE\0"
      VALUE "LegalCopyright", "Sebastião Oliveira Pessoa - MicroInformática\0"
      VALUE "LegalTrademarks", "SALC INFORMATICA\0"
      VALUE "OriginalFilename", "SALC.EXE\0"
      VALUE "PrivateBuild", "FIVEWIN/Xharbour\0"
      VALUE "ProductName", "SALC  - PAF-ECF - Programa Aplicativo Fiscal\0"
      VALUE "ProductVersion", "1.37\0"
      VALUE "SpecialBuild", "FIVEWIN/Xharbour\0"
    }
  }
  BLOCK "VarFileInfo"
  {
    VALUE "Translation", 0x416, 0x4B0
  }
}

1 MANIFEST "res1.xml"

BMPSALVAR BITMAP "res10.bmp"

BMPDESISTIR BITMAP "res11.bmp"

BMPEXCLUIR BITMAP "res12.bmp"

BMPSAIR1 BITMAP "res13.bmp"

BMPSAIR BITMAP "res14.bmp"

LEITURAX BITMAP "res15.bmp"

REINDEXAR BITMAP "res16.bmp"

TOOLS BITMAP "res17.bmp"

PROCURAR BITMAP "res18.bmp"

PASTAS BITMAP "res19.bmp"

BROWSE BITMAP "res20.bmp"

UNLOCK BITMAP "res21.bmp"

PIE BITMAP "res22.bmp"

BARS BITMAP "res23.bmp"

LINES BITMAP "res24.bmp"

POINT BITMAP "res25.bmp"

POINTS BITMAP "res26.bmp"

PRINTER BITMAP "res27.bmp"

XGRID BITMAP "res28.bmp"

YGRID BITMAP "res29.bmp"

3D BITMAP "res30.bmp"

I_SINTEGRA ICON "res5.ico"

SINTEGRA BITMAP "res31.bmp"

CALC BITMAP "res32.bmp"

BMPKEY BITMAP "res33.bmp"

BMPREDE BITMAP "res34.bmp"

AI_ECF ICON "res6.ico"

DIREITA BITMAP "res35.bmp"

ESQUERDA BITMAP "res36.bmp"

SPED ICON "res7.ico"

CONFIRMAR BITMAP "res37.bmp"


 


Noting that the client is Windows XP with the "SERVICE PACK 2," I do not know if this has any influence.

Thank you!
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby ukoenig » Sun Mar 25, 2012 7:51 pm

You can Download the Tool, to test if there is a difference in Group-painting.
Groups are painted on Dialogs and tested on TFolderEx.
All Brushes are supported : Color, Gradient, Bmp-brush and Image.
You can create PRG and EXE-files from Code or Resource.
A new Update will be released in a short Time.

viewtopic.php?f=3&t=23744

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Objects that disappear within the control Group

Postby tiaofw » Sat Feb 02, 2013 12:14 pm

Good day.

Returning to the topic, since the problem still persists, with the help of a colleague he noted the following:

Depending on the configuration of Windows, in my case 64-BIT WINDOWS SEVEN, the controls within the control group disappear, see the following screens that illustrate the problem:

http://www.salc.com.br/atual/windowsconfigok.jpg

http://www.salc.com.br/atual/telasistemaok.jpg

http://www.salc.com.br/atual/windowsconfigfail.jpg

http://www.salc.com.br/atual/telasistemafail.jpg

I believe it is a clue to be found the reason for the problem.

Thank you.
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby lucasdebeltran » Sat Feb 02, 2013 12:31 pm

Hello,

With the bad config, does the problem happens always, or how often?.

Thanks.

I did also noticed this problem and I got reported too from my customers.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: Objects that disappear within the control Group

Postby tiaofw » Sat Feb 02, 2013 12:41 pm

It always happens, just change the configuration as shown on the screen.

There is an intermittent problem.

thank you
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby tiaofw » Thu Feb 07, 2013 1:12 pm

Up!

Thanks
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: Objects that disappear within the control Group

Postby IBTC » Thu Feb 07, 2013 1:43 pm

lucasdebeltran wrote:I did also noticed this problem and I got reported too from my customers.


My customers also reported this (similar) problems. For me the solution was removing TRANSPARENT from Group, because I don't need TRANSPARENT in my app. But there is a problem. Maybe in combination with Checkboxes. If I disable a checkbox than a part of objects will disappear.
Best Regards,
Ruediger Alich

---
HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
User avatar
IBTC
 
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests