FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Gets, combobox, radiobtn, checkbox DEFINE WINDOWS
Posts: 418
Joined: Wed Nov 26, 2008 06:33 PM
Gets, combobox, radiobtn, checkbox DEFINE WINDOWS
Posted: Sat May 23, 2015 07:11 PM

Saludosç

Una cuestión por ignorancia:

Es posible trabajar los controles Get, combobox, radiobtn, checkbox, getmultiline en una ventana tal cual como en los dialogos?}

y esto sin usar recursos, directamente desde código fuente ...

osea en lugar de DEFINE DIALOG...... usar DEFINE WINDOWS... y alli poner los controles que ya mensione?

alguna forma?

Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Gets, combobox, radiobtn, checkbox DEFINE WINDOWS
Posted: Sat May 23, 2015 09:28 PM
testmdi5.prg
Code (fw): Select all Collapse
// Using MDIChilds with user defined styles

#include "FiveWin.ch"

static oWnd

//----------------------------------------------------------------------------//

function Main()

   local oBar

   DEFINE WINDOW oWnd FROM 1, 1 To 22, 75 ;
      TITLE "This is a MDI enviroment" MDI VSCROLL

   DEFINE BUTTONBAR oBar OF oWnd

   DEFINE BUTTON OF oBar ACTION CreateChild()

   ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//

function CreateChild()

   local oWndChild
   local oBar, oBtn
   local cName := "Hello"

   DEFINE WINDOW oWndChild MDICHILD OF oWnd ;
      STYLE nOr( WS_CAPTION, WS_MINIMIZEBOX, WS_SYSMENU )

   DEFINE BUTTONBAR oBar OF oWndChild

   DEFINE BUTTON OF oBar ACTION oWndChild:End()

   @ 3, 3 GET cName OF oWndChild SIZE 120, 25 VALID ! Empty( cName )

   @ 6, 2 BUTTON oBtn PROMPT "&Test" OF oWndChild SIZE 80, 20 ;
      ACTION MsgInfo( GetProp( oBtn:hWnd, "WP" ) )

   ACTIVATE WINDOW oWndChild

return nil

//----------------------------------------------------------------------------//
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]

Continue the discussion