Tabs em el Top da Dialog ???

Tabs em el Top da Dialog ???

Postby Ale SB » Thu Apr 24, 2008 11:57 am

Estoy colocando minha tab no Top da dialog, mas ela esta ficando como se estivessi no Bottom, veja:

Image

E no assim, como el exemplo em samples:

Image

Meu Prg :
Code: Select all  Expand view  RUN
DEFINE DIALOG oDlg RESOURCE 1004 OF oWndChild 
   
      REDEFINE PAGES oPag ID 102 OF oDlg ;           
               DIALOGS 1005, 1005                 
               
      REDEFINE TABS oTabs ID 101 OF oDlg ;
             PROMPT "&Em Abertas", "&Recebidas" ;
             ACTION {oPag:setoption(oTabs:nOption)}

             oDlg:oTop = oTabs


como resolver isto ???

Saluds Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Postby Antonio Linares » Thu Apr 24, 2008 12:17 pm

Ale,

Prueba con:

oTabs:nOrientation = 1
regards, saludos

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

Postby Ale SB » Thu Apr 24, 2008 12:37 pm

Maestro, no deu certo.

Saluds Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Postby Antonio Linares » Thu Apr 24, 2008 12:50 pm

Funcionó ? Sí ó no ? :-)
regards, saludos

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

Postby Ale SB » Thu Apr 24, 2008 3:18 pm

Antonio Linares wrote:Funcionó ? Sí ó no ? :-)


No

Saluds Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Postby Antonio Linares » Thu Apr 24, 2008 3:46 pm

Aqui tienes un ejemplo funcionando:
Code: Select all  Expand view  RUN
#include "FiveWin.ch"

function Main()

   local oDlg, oTabs

   DEFINE DIALOG oDlg RESOURCE "Test"

   REDEFINE TABS oTabs PROMPTS "One", "Two", "Three" ID 100 OF oDlg

   oDlg:oTop = oTabs

   ACTIVATE DIALOG oDlg CENTERED

return nil

test.rc
Code: Select all  Expand view  RUN
test DIALOG 78, 72, 194, 119
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Test"
FONT 8, "MS Sans Serif"
{
CONTROL "", 100, "TTabs", 0 | WS_CHILD | WS_VISIBLE, 0, 1, 193, 17
DEFPUSHBUTTON "OK", IDOK, 12, 96, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 72, 96, 50, 14
PUSHBUTTON "Help", IDHELP, 132, 96, 50, 14
}
regards, saludos

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

Postby Ale SB » Thu Apr 24, 2008 6:24 pm

Gracias Maestro,

My .Rc estava errado. :D

Ejemplo Perfect !!!

Saluds ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 36 guests