topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
dialog creation .. | James,
[color=#FF0000:1ee7sn6n]oBtn1:bMMoved [/color:1ee7sn6n]:= {| nRow, nCol | MsgAlert( ALLTRIM( STR(nRow)), ALLTRIM( STR(nCol)) ) }
will show nRow and nCol from [color=#FF0000:1ee7sn6n]inside the Button[/color:1ee7sn6n].
That is the reason, I used :
[color=#FF0000:1ee7sn6n]oDlg:bMMoved [/color:1ee7sn6n]:= {| nRow, nCol | MsgAlert( ALLTRIM( STR(nRow)), ALLTRIM( STR(nCol)) ) }
in Relation to SAY-Screenpositions
that works.
I think, creating or changing a Class including Tests,
takes much more Time, than changing Buttons to SAYs, getting the desired Results.
I cannot do more, than showing working Samples.
Before I start to change something inside original FWH-source, I try to find Solutions without
any Changes.
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
dialog creation .. | Uwe,
I don't think he needs the row and col when using bMMoved. He just needs to popup something when the cursor is over the button. Something like this:
oBtn1:bMMoved := { || msgInfo() }
Regards,
James |
dialog creation .. | James,
I got it working with Buttons.
I will create a nice Sample for it with different Options.
The Popup is shown related to Button-position.
The Button-temperature is show on Popup-title
Optional autoclose or staying on Screen with Buttonactions.
1. Button / Temperature :
[img:3a47dzv6]http://www.pflegeplus.com/pictures/hot8A.jpg[/img:3a47dzv6]
2. Button / Temperature :
[img:3a47dzv6]http://www.pflegeplus.com/pictures/hot8B.jpg[/img:3a47dzv6]
3. Button / Temperature :
[img:3a47dzv6]http://www.pflegeplus.com/pictures/hot8C.jpg[/img:3a47dzv6]
Optional :
[img:3a47dzv6]http://www.pflegeplus.com/pictures/hot8D.jpg[/img:3a47dzv6]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
dialog dbcombo looping | I am using a dialog box with 2 dbcombos as a trip calculator.
The user chooses an origin and drop point and that is where I want some text or perhaps a MsgAlert() to display a calculated
km value - within the dialog to calc as many times as needed without having to start the dialog again.
I' ve tried variations of ON CHANGE oKm:seek or a say clause on the calc button, but I have to activate the dialog to do the calc and the MsgAlert() will appear with the km. I'm obviously coding it wrong.
oTcomp holds the company longnames and cod(code) fields which then are seeked in oKm
oTkm has a combination of 2 cod(company codes) with a fixed km value for that trip.
Help
Bruce S
FW 6/12
Harbour v3.1 Rev 17222
ilinl32 6.21
//--------
.dbfs set here
DEFINE DIALOG oDlg FROM -50, 15 TO -35, 75 ;
TITLE " Trip Distance Calculator"
@ .5, 6 SAY "&Origin" OF oDlg SIZE 22, 11
@ 21, 8 dbcombo oDBC1 var cOrg of oDlg;
alias oTcomp:cAlias;
size 100,250 pixel;
itemfield "COD" ;
listfield "COMP";
update;
@ .5, 26 SAY "&Drop" OF oDlg SIZE 22, 11
@ 21, 128 dbcombo oDBC1 var cDrp of oDlg;
alias oTcomp:cAlias;
size 100,250 pixel;
itemfield "COD" ;
listfield "COMP";
update;
@ 3,12 say 'Minimum trip fee - $ ' + trans(nMin,'99.99');
FONT fntArial SIZE 125,25 OF oDlg
@ 5, 11 BUTTON "&Calc" OF oDlg SIZE 40, 12 ACTION oDlg:End() //Say( 6, 2, cOrg + ' / '+ cDrp + ' ' )
@ 5, 21 BUTTON "&Exit" OF oDlg SIZE 40, 12 ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
If oTkm:seek(cOrg+cDrp) = .t.
nKm := KM
nCost := iif(nKm * ( nL_rate + nFactor) < nMin, nMin,nKm * ( nL_rate + nFactor) )
MsgInfo( space(2)+ trans(nKm,'999.99') + " km = " +;
" $ " + trans(nCost,'9999.99')+ space(3)," Trip cost")
else
If empty(cOrg) .or. empty(cDrp)
MsgInfo(" Incomplete trip data ")
Else
MsgInfo(" That trip data was not found ")
Endif
Endif
fntArial:End()
return nil |
dialog dbcombo looping | Bruce,
If you haven't already solved this, here are some suggestions.
I would use the CHANGE clause of Dbcombo to do the calculation and then display it on the dialog using a SAY control.
I would also removed the "Calculate" button and change the "Exit" button to "Close." Close is standard Windows convention for a dialog that is not updating a database. "Exit" is standard for exiting an application. If this dialog is the entire application then "Exit" would be the proper term.
I don't see why you would need any traps for missing or invalid data since you are using a combobox. The only data that can be in the vars is valid data from the databases.
Regards,
James |
dialog dbcombo looping | James,
Appreciate your comments on my threads circa Jan 5/13.
Any input helps this work in progress.
I use the "traps for invalid data" because an empty selection always seems to come along with a combobox, which I don't want.
Bruce S. |
dialog dbcombo looping | Bruce,
[quote:1wa9tdc8]I use the "traps for invalid data" because an empty selection always seems to come along with a combobox, which I don't want.[/quote:1wa9tdc8]
I would just display zero when there is a blank combo (or both combos are blank). Users can easily figure this out.
Using a trap with a popup msgbox you force the user to deal with it physically using the mouse. The better way is to display all messages on the screen then the user can just look at it.
You can accomplish your desired task with two comboboxes, and a Close button as the only user interactions needed.
With interfaces, less is better.
Regards,
James |
dialog error | when I compile it the procedure let me "cannot create dialog" but I NOt understand what is wrong !!!!!!!
the code
[code:3hmap95g]
#include "FiveWin.ch"
function main()
Local oDlg,oFld
DEFINE DIALOG oDlg RESOURCE "AGENDA_EDIT"
REDEFINE FOLDER ID 500 OF oDlg ;
PROMPT "&Anagrafica","&Dettagli","&Notizie mediche","&Fotografia","&Osservazioni";
DIALOGS "AGENDA_EDIT_A", "AGENDA_EDIT_B", "AGENDA_EDIT_C","AGENDA_EDIT_D","AGENDA_EDIT_E"
ACTIVATE DIALOG oDlg CENTERED
return nil[/code:3hmap95g]
the resource
[code:3hmap95g]
AGENDA_EDIT DIALOG 33, 36, 332, 244
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "AGENDA_EDIT"
FONT 8, "MS Sans Serif"
{
LTEXT "Socio :", 200, 85, 14, 30, 8
EDITTEXT 105, 120, 12, 174, 12
CONTROL "", 500, "SysTabControl32", 0 | WS_CHILD | WS_VISIBLE, 13, 69, 313, 136
PUSHBUTTON "&Conferma", 1, 220, 218, 50, 16
PUSHBUTTON "&Annulla", 2, 276, 218, 50, 16
LTEXT "Codice :", -1, 13, 13, 30, 8
EDITTEXT 101, 48, 12, 33, 12
CONTROL "", 104, "TBitmap", 0 | WS_CHILD | WS_VISIBLE, 300, 12, 12, 11
CONTROL "", 10, "SysDateTimePick32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 66, 30, 81, 12
LTEXT "Data richiesta :", -1, 13, 32, 51, 8
LTEXT "Iscrizione :", -1, 172, 32, 38, 8
CONTROL "", 11, "SysDateTimePick32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 213, 30, 81, 12
LTEXT "Tipo adesione :", -1, 12, 49, 52, 8
CONTROL "220", 220, "COMBOBOX", CBS_DROPDOWNLIST | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 66, 47, 84, 62
LTEXT "Status : ", -1, 162, 49, 27, 8
CONTROL "220", 12, "COMBOBOX", CBS_DROPDOWNLIST | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 193, 47, 54, 74
LTEXT "Tessera :", -1, 254, 50, 34, 8
EDITTEXT 13, 290, 48, 37, 12
}
AGENDA_EDIT_D DIALOG 29, 69, 312, 122
STYLE WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
FONT 8, "MS Sans Serif"
{
CONTROL "", 101, "TImage", 0 | WS_CHILD | WS_VISIBLE, 218, 18, 73, 86
CONTROL "TBtnBmp", 103, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 180, 26, 12, 12
CONTROL "TBtnBmp", 102, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 164, 26, 12, 12
EDITTEXT 100, 6, 10, 187, 12
GROUPBOX "", 501, 202, 7, 103, 111, BS_GROUPBOX
LTEXT "Taglia : ", -1, 27, 40, 35, 8
CONTROL "S", 104, "BUTTON", BS_AUTORADIOBUTTON, 71, 43, 60, 12
CONTROL "M", 105, "BUTTON", BS_AUTORADIOBUTTON, 71, 56, 60, 12
CONTROL "L", 106, "BUTTON", BS_AUTORADIOBUTTON, 71, 69, 60, 12
CONTROL "XL", 107, "BUTTON", BS_AUTORADIOBUTTON, 132, 43, 60, 12
CONTROL "XXL", 108, "BUTTON", BS_AUTORADIOBUTTON, 132, 56, 60, 12
CONTROL "XXXL", 109, "BUTTON", BS_AUTORADIOBUTTON, 132, 69, 60, 12
LTEXT "Quota associativa : ", -1, 6, 86, 60, 8
EDITTEXT 110, 70, 84, 53, 12
LTEXT "Versato anno corrente :", -1, 6, 106, 80, 8
CONTROL "Si", 111, "BUTTON", BS_AUTORADIOBUTTON, 93, 105, 23, 12
CONTROL "No", 112, "BUTTON", BS_AUTORADIOBUTTON, 124, 106, 23, 12
}
AGENDA_EDIT_A DIALOG 29, 69, 312, 122
STYLE WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
FONT 8, "MS Sans Serif"
{
EDITTEXT 100, 48, 12, 260, 12
EDITTEXT 101, 48, 29, 157, 12
LTEXT "Indirizzo :", -1, 12, 12, 36, 8
LTEXT "Località :", -1, 12, 30, 33, 8
EDITTEXT 103, 278, 29, 30, 12
LTEXT "Cap :", -1, 257, 31, 18, 8
EDITTEXT 102, 237, 29, 17, 12
LTEXT "Prov.:", -1, 215, 31, 21, 8
LTEXT "Data di nascita :", -1, 13, 68, 55, 8
EDITTEXT 105, 78, 66, 74, 12
LTEXT "Luogo di nascita :", -1, 13, 50, 63, 8
EDITTEXT 104, 78, 49, 230, 12
LTEXT "Sesso :", -1, 211, 68, 33, 8
COMBOBOX 106, 254, 66, 54, 33, CBS_DROPDOWNLIST | WS_TABSTOP
LTEXT "Telefono :", -1, 13, 87, 35, 8
LTEXT "Cellulare :", -1, 13, 104, 38, 8
EDITTEXT 107, 78, 86, 74, 12
EDITTEXT 109, 78, 103, 74, 12
LTEXT "Telefono", -1, 187, 88, 35, 8
LTEXT "Cellulare ", -1, 187, 105, 29, 8
EDITTEXT 108, 226, 86, 82, 12
EDITTEXT 110, 226, 103, 82, 12
}
AGENDA_EDIT_B DIALOG 29, 69, 312, 122
STYLE WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
FONT 8, "MS Sans Serif"
{
LTEXT "Professione :", -1, 13, 14, 60, 8
LTEXT "Sede lavorativa :", -1, 13, 31, 60, 8
LTEXT "Telefono sede lavorativa : ", -1, 11, 53, 87, 8
EDITTEXT 200, 103, 15, 144, 12
EDITTEXT 201, 103, 33, 145, 12
EDITTEXT 202, 103, 52, 146, 12
}
AGENDA_EDIT_C DIALOG 29, 69, 312, 122
STYLE WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
FONT 8, "MS Sans Serif"
{
LTEXT "Data del certificato medico :", -1, 19, 14, 93, 8
EDITTEXT 300, 116, 13, 93, 12
LTEXT "Medico curante /sportivo :", -1, 19, 34, 92, 8
EDITTEXT 301, 116, 33, 183, 12
LTEXT "Gruppo sanguigno :", -1, 19, 57, 68, 8
EDITTEXT 302, 116, 55, 62, 12
LTEXT "Donatore :", -1, 21, 83, 60, 8
}
AGENDA_EDIT_E DIALOG 29, 69, 312, 122
STYLE WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
FONT 8, "MS Sans Serif"
{
GROUPBOX "", 501, 4, 4, 301, 111, BS_GROUPBOX
LTEXT "&Note :", 201, 22, 12, 30, 8
EDITTEXT 600, 20, 22, 274, 81, ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_BORDER | WS_VSCROLL | WS_TABSTOP
}
GET_MEMO DIALOG 84, 92, 261, 73
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Sans Serif"
{
EDITTEXT 101, 6, 4, 252, 50, ES_MULTILINE | ES_UPPERCASE | ES_WANTRETURN | WS_BORDER | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "&Conferma", 111, 83, 58, 89, 13
}
[/code:3hmap95g]
the error
[code:3hmap95g]Application
===========
Path and name: C:\work\errori\fsdi2006\prg\testgar.Exe (32 bits)
Size: 435,200 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 01/17/07, 16:10:11
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: AGENDA_EDIT
Stack Calls
===========
Called from: => CREATEDLGERROR(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
Called from: testgar.prg => MAIN(15)
[/code:3hmap95g]
somene can help me ??????????????
thanks in advance !!!!!!!! |
dialog error | >when I compile it the procedure let me "cannot create dialog" but I NOt >understand what is wrong !!!!!!!
>thanks in advance
Hi,
try changing dialog resource names to be more different (not to have so much matching characters). Seems like some resource ID generation bug (or effect)... There was a discussion about this sub. in Xharbour newsgroup.
Taavi. |
dialog error | Silvio,
You are using a TImage, TBtnBmp and TBitmap in your resource and you have not redefined them in your PRG |
dialog error | Antonio,
On my program I redefine all fields ( TImage, TBtnBmp and TBitmap ), but it not show the dialog!!!!
I had had problem when I insert date control 32 bit
if yo want can erase all TImage, TBtnBmp and TBitmap control
IT NOT show the dialog
try it please :
[code:3dszubij]#include "FiveWin.ch"
#Include "Image.Ch"
function main()
Local oDlg,oFld
LOCAL aDat[28],oDat[28]
DEFINE DIALOG oDlg RESOURCE "AGENDA_EDIT"
REDEFINE FOLDER ID 500 OF oDlg ;
PROMPT "&Anagrafica","&Dettagli","&Notizie mediche","&Fotografia","&Osservazioni";
DIALOGS "AGENDA_EDIT_A", "AGENDA_EDIT_B", "AGENDA_EDIT_C","AGENDA_EDIT_D","AGENDA_EDIT_E"
//folder 4 AGENDA_EDIT_D
REDEFINE GET oDat[19] VAR aDat[19] ID 100 OF oFld:aDialogs[4] PICTURE "@!" UPDATE
oDat[20] := TImage():ReDefine( 101,, aDat[19], oFld:aDialogs[4],,, .F., .T.,,, .F.,, )
REDEFINE BTNBMP ID 102 OF oFld:aDialogs[4] RESOURCE "b_chg" NOBORDER;
TOOLTIP "Seleziona" ;
ACTION (oDat[20]:LoadImage( , cFile1 := cGetFile32( "Immagini (*.jpg)| *.jpg|","Seleziona immagine",,".\Images\" )),;
oDat[20]:Refresh(),aDat[19]:= cFile1, oDat[19]:Refresh() )
REDEFINE BTNBMP ID 103 OF oFld:aDialogs[4] RESOURCE "B_PRV" NOBORDER;
TOOLTIP "Zoom"
*action zoomimage(aDat[19])
ACTIVATE DIALOG oDlg CENTERED
return nil[/code:3dszubij] |
dialog error | Silvio,
Please call INITCOMMONCONTROLS() before DEFINE DIALOG ... |
dialog error | Application
===========
Path and name: C:\work\errori\fsdi2006\prg\testgar.Exe (32 bits)
Size: 438,272 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 01/18/07, 00:45:02
Error description: Error BASE/1004 Class: 'NIL' has no exported method: ADIALOGS
Args:
I tried to compile with PellesC but it make the same error |
dialog error | when I erase folder control ....
it run ok |
dialog error | Silvio,
I see oFld variable defined as local at the start of the function but you didn´t store the folder object in it <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
DEFINE FOLDER [u:39qnto95]oFld[/u:39qnto95] ID .... OF ......
I think that´s the problem. |
dialog error | I tried and now run ok
there is an error on dialog AGENDA_EDIT_D
when I erase all control on it the dialog and folder run ok
the dialog AGENDA_edit_d have :
[code:8bqdr3wt]
AGENDA_EDIT_D DIALOG 29, 69, 312, 122
STYLE WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN
FONT 8, "MS Sans Serif"
{
CONTROL "", 101, "TImage", 0 | WS_CHILD | WS_VISIBLE, 218, 18, 73, 86
CONTROL "TBtnBmp", 103, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 180, 26, 12, 12
CONTROL "TBtnBmp", 102, "TBtnBmp", 0 | WS_CHILD | WS_VISIBLE, 164, 26, 12, 12
EDITTEXT 100, 6, 10, 187, 12
GROUPBOX "", 501, 202, 7, 103, 111, BS_GROUPBOX
LTEXT "Taglia : ", -1, 27, 40, 35, 8
CONTROL "S", 104, "BUTTON", BS_AUTORADIOBUTTON, 71, 43, 60, 12
CONTROL "M", 105, "BUTTON", BS_AUTORADIOBUTTON, 71, 56, 60, 12
CONTROL "L", 106, "BUTTON", BS_AUTORADIOBUTTON, 71, 69, 60, 12
CONTROL "XL", 107, "BUTTON", BS_AUTORADIOBUTTON, 132, 43, 60, 12
CONTROL "XXL", 108, "BUTTON", BS_AUTORADIOBUTTON, 132, 56, 60, 12
CONTROL "XXXL", 109, "BUTTON", BS_AUTORADIOBUTTON, 132, 69, 60, 12
LTEXT "Quota associativa : ", -1, 6, 86, 60, 8
EDITTEXT 110, 70, 84, 53, 12
LTEXT "Versato anno corrente :", -1, 6, 106, 80, 8
CONTROL "Si", 111, "BUTTON", BS_AUTORADIOBUTTON, 93, 105, 23, 12
CONTROL "No", 112, "BUTTON", BS_AUTORADIOBUTTON, 124, 106, 23, 12
}
[/code:8bqdr3wt]
there is something not run ok but wich ?
I not found anything
I copied it from another my program ( on old program 32 bit run ok) |
dialog into outlook2003 | Dear Antonio,
I wanted created a simply dialog with a header on the right part of the window as you can see on this picture
How I can make it ?
I dont understand how is called the right part of this ownd
[img:3u1zkgpc]http://img339.imageshack.us/img339/1461/out2003miosb7.jpg[/img:3u1zkgpc]
can you help me please ? |
dialog into outlook2003 | Hallo, from Germany
I have the same problem.
regards
Uwe |
dialog into outlook2003 | Here you have a working sample. On page 2 a dialog is shown on the right side. See the lines with a marker (// <-----).
[code:1js66be2]// FWH Class TOutLook2003
#include "FiveWin.ch"
#include "Splitter.ch"
static lExit := .F.
STATIC aCtrl // <-----
//----------------------------------------------------------------------------//
function Main()
local oWnd, oOutLook2003, oStatusBar, oSplit, cCombo, oRad, nValue := 1
local oFont
DEFINE WINDOW oWnd TITLE "FWH new Class TOutLook2003" MDI // ;
// MENU BuildMenu()
DEFINE OUTLOOK2003 oOutLook2003 OF oWnd ;
PROMPTS "Mail", "Calendar", "Contacts", "" ;
BITMAPS "..\bitmaps\mail.bmp", "..\bitmaps\calendar.bmp", "..\bitmaps\notes.bmp";
ON CHANGE (Show (oOutLook2003, oWnd:oWndClient)) // <-----
aCtrl := Array (Len (oOutLook2003:aGroups)) // <-----
oWnd:oLeft = nil // Because the splitter is going to control the resize
@ 1, 2 BUTTON "New" OF oOutLook2003:aDialogs[ 1 ] SIZE 80, 22 ACTION BuildDlg()
@ 3, 2 BUTTON "Edit" OF oOutLook2003:aDialogs[ 1 ] SIZE 80, 22 ACTION MsgInfo( "Edit" )
@ 5, 2 BUTTON "Search" OF oOutLook2003:aDialogs[ 1 ] SIZE 80, 22 ACTION MsgInfo( "Search" )
@ 1, 1 COMBOBOX cCombo ITEMS { "January", "February", "March", "April", "May" } ;
OF oOutLook2003:aDialogs[ 2 ] SIZE 170, 100
DEFINE FONT oFont NAME "Arial" SIZE 0, -10
@ 12, 10 SAY Date() OF oOutLook2003:aDialogs[ 2 ] SIZE 80, 20 FONT oFont
@ 3, 1 RADIO oRad VAR nValue OF oOutLook2003:aDialogs[ 2 ] ;
ITEMS "&Day", "&Week", "&Month" SIZE 100, 20
oRad:SetFont( oFont )
#ifndef __CLIPPER__
DEFINE STATUSBAR oStatusBar PROMPT " FWH Class TOutLook2003" OF oWnd
#else
DEFINE MESSAGE oStatusBar PROMPT " FWH Class TOutLook2003" OF oWnd
#endif
SetParent( oOutLook2003:hWnd, oWnd:hWnd )
oWnd:oClient = nil
@ 0, 191 SPLITTER oSplit ;
VERTICAL _3DLOOK ;
PREVIOUS CONTROLS oOutLook2003 ;
HINDS CONTROLS oWnd:oWndClient ;
SIZE 4, oWnd:nHeight - 70 PIXEL ;
OF oWnd
SetParent( oSplit:hWnd, oWnd:hWnd )
ACTIVATE WINDOW oWnd ;
ON RESIZE oSplit:Adjust() ;
VALID lExit := .T.
return nil
//----------------------------------------------------------------------------//
function BuildMenu()
local oMenu
MENU oMenu
MENUITEM "&One"
MENUITEM "&Two"
MENUITEM "&Three"
ENDMENU
return oMenu
//----------------------------------------------------------------------------//
function BuildDlg()
local oDlg, oOutL2003
DEFINE DIALOG oDlg RESOURCE "Test"
REDEFINE OUTLOOK2003 oOutL2003 ID 110 OF oDlg ;
PROMPTS "One", "Two", "Three" ;
BITMAPS "..\bitmaps\mail.bmp", "..\bitmaps\calendar.bmp", "..\bitmaps\notes.bmp" ;
DIALOGS "Page1", "Page2", "Page3"
REDEFINE BUTTON ID 110 OF oOutL2003:aDialogs[ 1 ] ACTION MsgInfo( "Click" )
ACTIVATE DIALOG oDlg CENTERED
return nil
//----------------------------------------------------------------------------//
function WinRun()
while NoGPF()
if lExit
PostQuitMessage( 0 )
endif
end
return nil
//----------------------------------------------------------------------------//
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
BOOL SysRefresh( void );
HB_FUNC( NOGPF )
{
__try
{
hb_retl( SysRefresh() );
}
__except ( ( hb_retl( TRUE ), TRUE ) )
{}
}
#pragma ENDDUMP
//---------------------------------------------------------------
FUNCTION Show (oOutLook, oWnd) // <-----
LOCAL nPage := AScan( oOutLook:aGroups, { | o | o:lSelected } )
LOCAL nAllPages := Len (oOutLook:aGroups)
LOCAL oDlg, oCtrl, i
FOR i := 1 TO nAllPages
IIF (Valtype (aCtrl[i]) ="O",aCtrl[i]:Hide(), )
NEXT
DO CASE
CASE nPage = 1
CASE nPage = 2
IF Valtype (aCtrl[nPage]) ="O"
aCtrl[nPage]:Show()
ELSE
DEFINE DIALOG aCtrl[nPage] FROM 1,1 TO 15,35 OF oWnd ;
TITLE "I am at the right side"
ACTIVATE DIALOG aCtrl[nPage] ;
ON INIT aCtrl[nPage]:Center (oWnd);
NOWAIT
ENDIF
CASE nPage = 3
ENDCASE
RETURN (nil)[/code:1js66be2] |
dialog into outlook2003 | STEPHAN,
I wanted a dialog as my picture and not another dialog ( it is not mdi)
perhaps you not understand me |
dialog into outlook2003 | Stephan,
I wanted make an header with gradient from splitter to end of ownd
and then down a type of panel ( dialog) where I can insert a browse
I not wanted a "flying dialog"
I hope you understand me !! |
dialog into outlook2003 | look this :
[img:31k1zgpq]http://img293.imageshack.us/img293/8231/outlookxbrowsert4.png[/img:31k1zgpq]
[code:31k1zgpq]
#include "FiveWin.ch"
#include "Splitter.ch"
#include "xbrowse.ch"
static lExit := .F.
STATIC aCtrl // <-----
//----------------------------------------------------------------------------//
function Main()
local oWnd, oOutLook2003, oStatusBar, oSplit, cCombo, oRad, nValue := 1
local oFont
lOCAL nSplit:=191
DEFINE WINDOW oWnd TITLE "FWH new Class TOutLook2003" MDI // ;
// MENU BuildMenu()
DEFINE OUTLOOK2003 oOutLook2003 OF oWnd ;
PROMPTS "Mail", "Calendar", "Contacts", "" ;
BITMAPS ".\bitmaps\mail.bmp", ".\bitmaps\calendar.bmp", ".\bitmaps\notes.bmp";
ON CHANGE (Show (oOutLook2003, oWnd:oWndClient,nSplit)) // <-----
aCtrl := Array (Len (oOutLook2003:aGroups)) // <-----
oWnd:oLeft = nil // Because the splitter is going to control the resize
@ 1, 2 BUTTON "New" OF oOutLook2003:aDialogs[ 1 ] SIZE 80, 22 ACTION BuildDlg()
@ 3, 2 BUTTON "Edit" OF oOutLook2003:aDialogs[ 1 ] SIZE 80, 22 ACTION MsgInfo( "Edit" )
@ 5, 2 BUTTON "Search" OF oOutLook2003:aDialogs[ 1 ] SIZE 80, 22 ACTION MsgInfo( "Search" )
@ 1, 1 COMBOBOX cCombo ITEMS { "January", "February", "March", "April", "May" } ;
OF oOutLook2003:aDialogs[ 2 ] SIZE 170, 100
DEFINE FONT oFont NAME "Arial" SIZE 0, -10
@ 12, 10 SAY Date() OF oOutLook2003:aDialogs[ 2 ] SIZE 80, 20 FONT oFont
@ 3, 1 RADIO oRad VAR nValue OF oOutLook2003:aDialogs[ 2 ] ;
ITEMS "&Day", "&Week", "&Month" SIZE 100, 20
oRad:SetFont( oFont )
#ifndef __CLIPPER__
DEFINE STATUSBAR oStatusBar PROMPT " FWH Class TOutLook2003" OF oWnd
#else
DEFINE MESSAGE oStatusBar PROMPT " FWH Class TOutLook2003" OF oWnd
#endif
SetParent( oOutLook2003:hWnd, oWnd:hWnd )
oWnd:oClient = nil
@ 0, 191 SPLITTER oSplit ;
VERTICAL _3DLOOK ;
PREVIOUS CONTROLS oOutLook2003 ;
HINDS CONTROLS oWnd:oWndClient ;
SIZE 4, oWnd:nHeight - 70 PIXEL ;
OF oWnd
SetParent( oSplit:hWnd, oWnd:hWnd )
ACTIVATE WINDOW oWnd ;
ON RESIZE oSplit:Adjust() ;
VALID lExit := .T.
return nil
//----------------------------------------------------------------------------//
function BuildMenu()
local oMenu
MENU oMenu
MENUITEM "&One"
MENUITEM "&Two"
MENUITEM "&Three"
ENDMENU
return oMenu
//----------------------------------------------------------------------------//
function BuildDlg()
local oDlg, oOutL2003
DEFINE DIALOG oDlg RESOURCE "Test"
REDEFINE OUTLOOK2003 oOutL2003 ID 110 OF oDlg ;
PROMPTS "One", "Two", "Three" ;
BITMAPS ".\bitmaps\mail.bmp", ".\bitmaps\calendar.bmp", ".\bitmaps\notes.bmp" ;
DIALOGS "Page1", "Page2", "Page3"
REDEFINE BUTTON ID 110 OF oOutL2003:aDialogs[ 1 ] ACTION MsgInfo( "Click" )
ACTIVATE DIALOG oDlg CENTERED
return nil
//----------------------------------------------------------------------------//
function WinRun()
while NoGPF()
if lExit
PostQuitMessage( 0 )
endif
end
return nil
//----------------------------------------------------------------------------//
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
BOOL SysRefresh( void );
HB_FUNC( NOGPF )
{
__try
{
hb_retl( SysRefresh() );
}
__except ( ( hb_retl( TRUE ), TRUE ) )
{}
}
#pragma ENDDUMP
#define LIGHTBLUE nRGB( 89, 135, 214 )
#define DARKBLUE nRGB( 3, 56, 147 )
#define LIGHTORANGE1 nRGB( 250, 227, 143 )
#define DARKORANGE1 nRGB( 238, 152, 25 )
#define LIGHTCYAN nRGB( 203, 225, 252 )
#define DARKCYAN nRGB( 125, 165, 224 )
#define LIGHTORANGE2 nRGB( 255, 255, 220 )
#define DARKORANGE2 nRGB( 247, 192, 91 )
//---------------------------------------------------------------
FUNCTION Show (oOutLook, oWnd,nSplit) // <-----
LOCAL nPage := AScan( oOutLook:aGroups, { | o | o:lSelected } )
LOCAL nAllPages := Len (oOutLook:aGroups)
LOCAL oDlg, oCtrl, i
Local hDC :=oWnd:getdc()
Local oGrid,oFont
DEFINE FONT oFont NAME "Arial" SIZE 0, -20
FOR i := 1 TO nAllPages
IIF (Valtype (aCtrl[i]) ="O",aCtrl[i]:Hide(), )
NEXT
DO CASE
CASE nPage = 1
CASE nPage = 2
IF Valtype (aCtrl[nPage]) ="O"
aCtrl[nPage]:Show()
ELSE
//header
nTop = oWnd:nHeight - ( Len(oOutLook:aGroups ) *166 )
Gradient( hDC, { nTop, 0, nTop + 30, oWnd:nWidth() }, DARKBLUE, LIGHTBLUE, .T. )
oWnd:Say( nTop + 8 , 200,"Customer",CLR_WHITE,,oFont, .T., .T. )
/* DEFINE DIALOG aCtrl[nPage] FROM 1,1 TO 15,35 OF oWnd ;
TITLE "I am at the right side"
ACTIVATE DIALOG aCtrl[nPage] ;
ON INIT aCtrl[nPage]:Center (oWnd);
NOWAIT
*/
// GRID
USE CUSTOMER NEW
INDEX ON field->first to "name"
SET INDEX TO "name"
oGrid := TXBrowse():New( oWnd )
oGrid:nTop := nTop +32
oGrid:nLeft := nSplit+1
oGrid:nBottom := oWnd:nheight()
oGrid:nRight := oWnd:nWidth()
oGrid:cAlias := "CUSTOMER"
oGrid:nMarqueeStyle := MARQSTYLE_HIGHLCELL
oGrid:nColDividerStyle := LINESTYLE_BLACK
oGrid:nRowDividerStyle := LINESTYLE_BLACK
oGrid:lColDividerComplete := .f.
oGrid:SetRDD()
for nFor := 1 to len( oGrid:aCols )
oCol := oGrid:aCols[ nFor ]
oCol:nEditType := 1
oCol:bOnPostEdit := {|o, v, n| iif( n != VK_ESCAPE, FieldPut( o:nCreationOrder, v ), ) }
next
oGrid:CreateFromCode()
oWnd := oGrid
ENDIF
CASE nPage = 3
ENDCASE
RETURN (nil)
[/code:31k1zgpq]
if you click on calendar you can see at right part a header and a xbrowse
if you click another menu of outlook2003 the controls on the right not hide and the there is an error alias dont exit
and the header hide when the resizethe window |
dialog into outlook2003 | Silvio,
the "flying dialog" was just a sample, how to control the right side. <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
You can try to use the TPages class to put your controls on. On every change of the outlook menu open the according page.
DEFINE OUTLOOK2003 .... ON CHANGE oPage:SetOption(...) |
dialog into outlook2003 | Hi SilvioI am also need of exactly what have needed. Could you do it.If so, can you please guide me as to how to accomplish it.Thanks it- Ramesh Babu P |
dialog into outlook2003 | Ramesh,i not founded a solution for my problems.I saw there is a problem when i changed option .. on right part of with the procedure must to show different dialog , when i show buttons the procedure not erase the first dialog.i not want mobile dialog but static dialog into right part of window |
dialog into outlook2003 | Silvio,Use:DEFINE DIALOG oDlg STYLE ... to set the style of dialog that you want (fixed, mobile, border, no border, caption, no caption, etc.) |
dialog into outlook2003 | Please review FWH\samples\TestDlg7.prg and TestDlg8.prg to learn how to use the STYLE clause with dialogs. |
dialog maximize and minimize events | How can I detect when a window/dialog was maximized?
This event does not seem to trigger an "on resize" event. It would be nice to know if the user left the dialog maximized, then I could re-display it in the future maximized. |
dialog maximize and minimize events | From the following sample you will see that ON RESIZE event is trigged on maximize:
[code:2k7pnh1t]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd;
ON RESIZE TONE( 440, 1 )
RETURN NIL[/code:2k7pnh1t]
EMG |
dialog maximize and minimize events | How can I tell if the dialog was MAXIMIZED or simply resized by dragging the corner of the dialog? |
dialog maximize and minimize events | This is a sample:
[code:1af7ng2t]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd;
ON RESIZE SHOWRESIZETYPE( nSizeType )
RETURN NIL
#define SIZE_INIT NIL
#define SIZE_RESTORED 0
#define SIZE_MINIMIZED 1
#define SIZE_MAXIMIZED 2
STATIC FUNCTION SHOWRESIZETYPE( nSizeType )
STATIC lInit := .T.
DO CASE
CASE nSizeType = SIZE_INIT
? "SIZE_INIT"
lInit = .F.
CASE nSizeType = SIZE_RESTORED .AND. !lInit
? "SIZE_RESTORED"
CASE nSizeType = SIZE_MINIMIZED
? "SIZE_MINIMIZED"
CASE nSizeType = SIZE_MAXIMIZED
? "SIZE_MAXIMIZED"
ENDCASE
RETURN NIL[/code:1af7ng2t]
EMG |
dialog maximize and minimize events | Thanks - I believe that is exactly what I was looking for. |
dialog no pasa al frente | Hola a todos,
TEngo un dialog "padre" NOWAIT que contiene un listbox y algunos botones desde los cuales se llaman a otros dialogs "hijo" distintos (todos NOWAIT) y en algunos de estos hay un richedit y otros botones.
Todo funciona bién, al llamar a uno, dos o tres dialogs "hijo", cuando clickeo sobre cada uno de los "hijos" para obligarlo a hacer foco sobre él, este pasa adelante y se ve todo su contenido.
El problema está cuando clickeo sobre el dialog "padre", este toma el foco pero no pasa al frente y no puedo ver su contenido, debo mover los dialogs "hijos" para poder verlo.
¿Alguna idea como pueda solucionarlo?.
Gracias.
Rolando |
dialog no pasa al frente | Buen día,
Comento que solucioné el tema gracias a mi amigo William Morales que me orientó.
Lo que faltaba era el "of oWnd" en la definición de los diálogos. Con solo esto se solucionó. En la ayuda no figura que se pueda usar "OF" en la definición de diálogos y por eso, el que no sabe es como el que no vé.
Gracias William
Rolando |
dialog opening difference in the monitor between 32/64 bit | Good morning,
I compile fivewin programmes in both 32bit and 64bit versions with MinGW 8.5 - fivewin release 22.12 and use 2 monitors
I have noticed that in the 32bit version if I open a dialogue from the second monitor this is opened in the second monitor
whereas if I open a dialogue from the second monitor in the 64bit version the dialogue is always opened in the first monitor
has anyone noticed this difference yet and knows how to correct the problem
thanks to all |
dialog opening difference in the monitor between 32/64 bit | Dear Santo,
We are checking it
many thanks for the feedback |
dialog opening difference in the monitor between 32/64 bit | This program is working the same way with both 32-bit and 64-bit
[code=fw:3eloijho]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oBar, oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Open"</span> <span style="color: #0000ff;">CENTER</span> ;<br /> <span style="color: #0000ff;">WHEN</span> oDlg == <span style="color: #00C800;">nil</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oDlg := TestDlg<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Close"</span> <span style="color: #0000ff;">CENTER</span> ;<br /> <span style="color: #0000ff;">WHEN</span> oDlg != <span style="color: #00C800;">nil</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oDlg := <span style="color: #00C800;">nil</span> <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> TestDlg<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_HGREEN<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg NOMODAL <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> ;<br /> FW_GetMonitor<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Center</span><span style="color: #000000;">(</span> oDlg <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> oDlg</div>[/code:3eloijho]
The main window is opened in the primary monitor.
Clicking "Open" button opens a dialog in the Seconds monitor.
Here this is working with both 32/64 bits.
Can you please provide us with a small sample code that works with 32bit but fails with 64bit? |
dialog opening difference in the monitor between 32/64 bit | Rao ,
Test in 32-bit always
The main window is opened in the primary monitor.
Clicking "Open" button opens a dialog in Always in the primary monitor.
Maurizio |
dialog opening difference in the monitor between 32/64 bit | [quote:2u7i6a2g]Clicking "Open" button opens a dialog in Always in the primary monitor.
[/quote:2u7i6a2g]
If you connected two monitors and configured in extended mode, then the dialog will open in the second monitor. |
dialog resizable | I wish have a dialog resizable but without "X" close button
the user must clode the dialog from button
[img:1xn6ps7h]https://i.postimg.cc/ncH8TgzS/gg.jpg[/img:1xn6ps7h]
How I must make ? |
dialog resizable | Silvio,
it is possible.
What do You want to show inside the dialog ( resized )
[img:2e6lk7et]http://www.pflegeplus.com/IMAGES/Dlgresize1.jpg[/img:2e6lk7et]
resized <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: -->
( only image, text centered )
[img:2e6lk7et]http://www.pflegeplus.com/IMAGES/Dlgresize2.jpg[/img:2e6lk7et]
regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
dialog resizable | thank wich is the command ?
it's possible also on Window ? |
dialog resizable | Silvio,
a function is needed because it is to special
It is a extended / modified solution from a Antonio-sample.
Working with dialog or windows works the same.
The dialog just needed to be defined as window with no other changes
[img:3ij26z70]http://www.pflegeplus.com/IMAGES/Wndresize1.jpg[/img:3ij26z70]
Still I don't know what You want to show <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
dialog resizable | Uwe,
on Window I tried with
DEFINE WINDOW ::oWnd BRUSH obrush STYLE WS_POPUP
and the user must click on a button to exit from ::oWnd
but I cannot show the caption and menu pulldown ( no good)
on DIALOG it is different because I need to have
DEFINE DIALOG oDlg TITLE aTitle[nMode] SIZE 1120,650 ;
PIXEL TRUEPIXEL RESIZABLE FONT oFont
but I not want the "X" because the user could press it and then the procedure not save any data |
dialog resizable | Silvio,
I remember a function < DisableX >
( tested and works )
[img:2vi1ncv1]http://www.pflegeplus.com/IMAGES/DisableX.jpg[/img:2vi1ncv1]
[code=fw:2vi1ncv1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> MF_BYPOSITION <span style="color: #000000;">1024</span> <br /><span style="color: #00D7D7;">#define</span> MF_DISABLED <span style="color: #000000;">2</span><br /><br />....<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br /><span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> DisableX<span style="color: #000000;">(</span> oDlg, .T. <span style="color: #000000;">)</span><br />....<br /><br /><span style="color: #B900B9;">// FUNCTION DisableX(oWin, lDisable) - To Disable 'X' Button of a Dialog </span><br /><br /><span style="color: #00C800;">FUNCTION</span> DisableX<span style="color: #000000;">(</span>oWin, lDisable<span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> hMenu := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> nCount := <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">DEFAULT</span> lDisable := .T.<br /><br /><span style="color: #00C800;">IF</span> lDisable<br /> hMenu = GetSystemMenu<span style="color: #000000;">(</span>oWin:<span style="color: #000000;">hWnd</span>, .F.<span style="color: #000000;">)</span><br /> nCount = GetMItemCount<span style="color: #000000;">(</span>hMenu<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> oWin:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"TDIALOG"</span><br /> RemoveMenu<span style="color: #000000;">(</span>hMenu, <span style="color: #000000;">1</span>, nOR<span style="color: #000000;">(</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> RemoveMenu<span style="color: #000000;">(</span>hMenu, nCount - <span style="color: #000000;">1</span>, nOR<span style="color: #000000;">(</span> MF_BYPOSITION, MF_DISABLED<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Close Button</span><br /> <span style="color: #00C800;">ENDIF</span><br /> DrawMenuBar<span style="color: #000000;">(</span> oWin:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> GetSystemMenu<span style="color: #000000;">(</span> oWin:<span style="color: #000000;">hWnd</span>, .T. <span style="color: #000000;">)</span><br /> DrawMenuBar<span style="color: #000000;">(</span> oWin:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">IF</span> oWin:<span style="color: #000000;">bValid</span> = <span style="color: #00C800;">nil</span><br /> oWin:<span style="color: #000000;">bValid</span> := <span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2vi1ncv1]
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
dialog resizable | here not work perhaps I wrong something
do you use a particular set of the dialog ? |
dialog resizable | this run Perfectly
procedure DisableX2(ODLG)
local hMenu
hMenu := GetSystemMenu(oDlg:hWnd,.f.)
RemoveMenu( hMenu, 6, MF_BYPOSITION)
return |
dialog setsize method | Antonio
Is there any plan for dialog setsize method ?
It is very dfficult to draw dialogs from resources and make them available to different type of pocket pcs as we can not resize them at init time or at least i have not found how to do it. In Fwh i use odlg:setsize()
Even the client sample from Carles will not show properly on my Ipaq 6515 and will not work as i do not see the OK and Cancel buttons, while it shows quite OK on 2 other pockets.
Drawing dialogs with @ ..,.. is very tricky and takes long time but at the time being looks like the only universal way of drawing screens.
Any idea ?
Tia
Richard |
dialog setsize method | Richard,
Can you try the example TestSip ?
[code:1fg8hy51]MoveWindow( oDlg:hWnd, 28, 10, 220, 180 )[/code:1fg8hy51] |
dialog setsize method | Sample
[code:3d1ym20v]#include "Fwce.ch"
#define SM_CXSCREEN 0
#define SM_CYSCREEN 1
*--------------
FUNCTION Main()
*--------------
LOCAL oDlg
DEFINE DIALOG oDlg FROM 2,2 TO 13, 30
@ 1, 1 BUTTON "Maximize" SIZE 100, 20 ACTION Maximize( oDlg )
@ 3, 1 BUTTON "Exit " SIZE 100, 20 ACTION oDlg:End()
ACTIVATE DIALOG oDlg
RETU NIL
*-------------------------------
STATIC FUNCTION Maximize( oDlg )
*-------------------------------
LOCAL nWidth := GetSysmetrics( SM_CXSCREEN )
LOCAL nHeight := GetSysmetrics( SM_CYSCREEN )
MoveWindow( oDlg:hWnd, 0, 0, nWidth, nHeight )
RETU NIL[/code:3d1ym20v] |
dialog setsize method | [quote="Carles":3bpmg14b]Sample
[code:3bpmg14b]#include "Fwce.ch"
#define SM_CXSCREEN 0
#define SM_CYSCREEN 1
*--------------
FUNCTION Main()
*--------------
LOCAL oDlg
DEFINE DIALOG oDlg FROM 2,2 TO 13, 30
@ 1, 1 BUTTON "Maximize" SIZE 100, 20 ACTION Maximize( oDlg )
@ 3, 1 BUTTON "Exit " SIZE 100, 20 ACTION oDlg:End()
ACTIVATE DIALOG oDlg
RETU NIL
*-------------------------------
STATIC FUNCTION Maximize( oDlg )
*-------------------------------
LOCAL nWidth := GetSysmetrics( SM_CXSCREEN )
LOCAL nHeight := GetSysmetrics( SM_CYSCREEN )
MoveWindow( oDlg:hWnd, 0, 0, nWidth, nHeight )
RETU NIL[/code:3bpmg14b][/quote:3bpmg14b]
Thank you |
dialog style ws_child | I have this source :
[code:215vtf7u]oBrush := TBrush():New("NULL",,,)
oDlg := TDialog():New()
oWnd:CoorsUpdate()
aDlgCoor := DlgCoors(oWnd)
oDlg:nTop := aDlgCoor[4]
oDlg:nLeft := aDlgCoor[5]
oDlg:nBottom := aDlgCoor[6]
oDlg:nRight := aDlgCoor[7]
oDlg:cCaption := "Anagrafica Reparti"
oDlg:SetColor( GetSysColor(13), GetSysColor(1)) [/code:215vtf7u]
How I can set the dialog WS_child ?
Regards |
dialog style ws_child | Try:
oDlg:nStyle:= nor( WS_CHILD )
James |
dialog style ws_pop and ximage | Please, create image at ON INIT clause dialog and try |
dialog style ws_pop and ximage | here not run this
[code=fw:2cuqu3so]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Constant.ch"</span><br /><span style="color: #00C800;">Function</span> Test<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oDlg,oBrw,oFont,oBold,oFontBtn<br /> <span style="color: #00C800;">local</span> nBottom := <span style="color: #000000;">22</span><br /> <span style="color: #00C800;">local</span> nRight := <span style="color: #000000;">60</span><br /> <span style="color: #00C800;">local</span> nWidth := <span style="color: #0000ff;">Max</span><span style="color: #000000;">(</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nHeight := nBottom * DLG_CHARPIX_H<br /> <span style="color: #00C800;">local</span> oImageBig<br /> <span style="color: #00C800;">local</span> cImage :=<span style="color: #ff0000;">"links.png"</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> nWidth, nHeight <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">COLOR</span> <span style="color: #000000;">0</span>, CLR_WHITE ;<br /> <span style="color: #0000ff;">STYLE</span> WS_POPUP<br /><br /> @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> XIMAGE oImageBig ;<br /> FILENAME cImage ;<br /> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">50</span> ;<br /> <span style="color: #0000ff;">UPDATE</span> NOBORDER<br /><br /> oImageBig:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">NIL</span> <span style="color: #000000;">}</span><br /> oImageBig:<span style="color: #000000;">ltransparent</span>:=.f.<br /> oImageBig:<span style="color: #000000;">nUserControl</span> :=<span style="color: #000000;">0</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span></div>[/code:2cuqu3so]
It's compiled but then not run on win 10
why ? |
dialog with CANCEL button | hi to all
I know MsgRun() or MsgMeter() function, but this functions have not CANCEL button to stop codeblock inside.
is there any function or example with dialog that run any function and with CANCEL button to stop that function?
thanks. |
dialog with CANCEL button | Well, you can use a non-modal dialog with a Cancel button, but the hard part is how is the codeblock going to determine when the button is pressed?
Perhaps you can use the oDialog:cargo property to hold a flag which defaults to .T. and when the button is pressed, change the flag to .F. and then the codeblock would see the change the next time through the loop (assuming the codeblock is in a loop).
James |
dialog with the same size | how I can make a dialog with the same size into all pc and resolutions
I saw my dialogs are changed if I have small or Highter resolution
How I can to make it - the system must control the size of screen before and then create the dialog and resize all controls into
I use only @x,y source code no resources |
dialog with the same size | I am also interested.
Best regards,
Otto |
dialog with the same size | Buen dia, haber si esto ayuda, saludos...gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32466&p=190747&hilit=layout#p190747">viewtopic.php?f=3&t=32466&p=190747&hilit=layout#p190747</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30170&p=172496&hilit=layout#p172496">viewtopic.php?f=3&t=30170&p=172496&hilit=layout#p172496</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=29053&p=163662&hilit=layout#p163662">viewtopic.php?f=3&t=29053&p=163662&hilit=layout#p163662</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27320&hilit=tlayout">viewtopic.php?f=6&t=27320&hilit=tlayout</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27321&hilit=new+layout">viewtopic.php?f=3&t=27321&hilit=new+layout</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19298&hilit=display3">viewtopic.php?f=6&t=19298&hilit=display3</a><!-- l --> |
dialog with the same size | What do you mean by "same size" ?
Hope you mean same proportion relative to the size of the screen size.
If so, it should not be difficult. Base your co-ordinate calculations on screenwidth() and screenheight() |
dialog with the same size | [quote="joseluisysturiz":316hghvo]Buen dia, haber si esto ayuda, saludos...gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32466&p=190747&hilit=layout#p190747">viewtopic.php?f=3&t=32466&p=190747&hilit=layout#p190747</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30170&p=172496&hilit=layout#p172496">viewtopic.php?f=3&t=30170&p=172496&hilit=layout#p172496</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=29053&p=163662&hilit=layout#p163662">viewtopic.php?f=3&t=29053&p=163662&hilit=layout#p163662</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=27320&hilit=tlayout">viewtopic.php?f=6&t=27320&hilit=tlayout</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27321&hilit=new+layout">viewtopic.php?f=3&t=27321&hilit=new+layout</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19298&hilit=display3">viewtopic.php?f=6&t=19298&hilit=display3</a><!-- l -->[/quote:316hghvo]
Perhaps I wrote dialog and not window ...
1. link - >tlayout is for window
2. link - > tlayout is for window
3 link - > tlayout or EasyDialog the first for a window the second not run ok and it need a dbf ( lose resources)
4. link - >t layout is for window
5. link - >t layout is for window
6. link - >display 3.0 it is very complicated to use |
dialog with the same size | I wish something of
[code=fw:2yxqyxvt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #ff0000;">"TEST"</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg RESIZE_ALL_SCREEN</div>[/code:2yxqyxvt]
WITH RESIZE_ALL_SCREEN i MEAN all controls are showed allways at the same @x,y respect the screenwidth() and screenheight() on all screens
I wrote it because I saw if I use resources the dialog is the same if I use @x,y the dialog is moved or it is smaller or Highter |
dialog with the same size | I found a class of Charles Kwon (CLASS TDlgResize)
It run only with dialog made with resources
I think it can be modify to use with dialog No resource
Who can help to converte it ? |
dialog with the same size | Hello Silvio,
Do you mean by “dialog with the same size“ a responsive design of dialogs and windows aimed at allowing our programs to be viewed in response to the size of the device one is viewing.
If yes I help contributing some Euros.
Best regards,
Otto |
dialog with tree and other dialog | [img:w50ocziy]https://help.ivanti.com/iv/help/it_IT/isec/94/Topics/Screenshots/ExecutableControl.png[/img:w50ocziy]
How I can make a dialog with a tree at left, one splitter and dialogs at right
when I select an item must open the dialog on the space right
as a configuration of a app |
dialog with tree and other dialog | Dear Silvio,
Fully coded or using resources ? |
dialog with tree and other dialog | i wish make on source code
can you make a little sample test? |
dialog with tree and other dialog | Dear Antonio,
I think this would be a nice task tor webview.
I am working on a DMS with similar layout.
Best regards,
Otto
[img:1c3nsx6p]https://mybergland.com/fwforum/treeviewtinymc.jpg[/img:1c3nsx6p] |
dialog with tree and other dialog | [quote="Otto":w9i3q9vg]Dear Antonio,
I think this would be a nice task tor webview.
I am working on a DMS with similar layout.
Best regards,
Otto
[img:w9i3q9vg]https://mybergland.com/fwforum/treeviewtinymc.jpg[/img:w9i3q9vg][/quote:w9i3q9vg]
I need on fwh and windows not on internet explorer , |
dialog with tree and other dialog | I made a test but not run
Testree5.prg run on Windows but I need to use a dialog
[code=fw:30y9ichz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Using a TreeView with checkboxes and checking their status</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Splitter.ch"</span><br /><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nHt := Int<span style="color: #000000;">(</span> ScreenHeight<span style="color: #000000;">(</span><span style="color: #000000;">)</span> * <span style="color: #000000;">0.3</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nWd := <span style="color: #000000;">600</span><br /> <span style="color: #00C800;">local</span> oDlg, oTree,oFont,oBold<br /> <span style="color: #00C800;">local</span> oSplit<br /> <span style="color: #00C800;">local</span> nSplit:=<span style="color: #000000;">100</span><br /> <span style="color: #00C800;">local</span> oExbar<br /><br /> * <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ICON1"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> nWd,nHt <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_BLACK, nRgb<span style="color: #000000;">(</span> <span style="color: #000000;">245</span>,<span style="color: #000000;">244</span>,<span style="color: #000000;">234</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">FONT</span> oFont ; <span style="color: #B900B9;">//ICON oIcon</span><br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Configurazione"</span> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_OVERLAPPEDWINDOW <span style="color: #000000;">)</span><br /><br /> oExBar := TPanel<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,oDlg:<span style="color: #000000;">nBottom</span>,nSplit, oDlg <span style="color: #000000;">)</span><br /> oExBar:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span>,RGB<span style="color: #000000;">(</span><span style="color: #000000;">143</span>,<span style="color: #000000;">172</span>,<span style="color: #000000;">230</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><br /><br /> * oTree:<span style="color: #000000;">OnClick</span> = <span style="color: #000000;">{</span> || CheckStatus<span style="color: #000000;">(</span> oTree, oTree:<span style="color: #000000;">aItems</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><br /> @ <span style="color: #000000;">0</span>,nSplit SPLITTER oSplit ;<br /> <span style="color: #0000ff;">VERTICAL</span> _3DLOOK ;<br /> PREVIOUS CONTROLS oExBar ;<br /> HINDS CONTROLS oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">2</span>,oDlg:<span style="color: #000000;">nBottom</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">LEFT</span> MARGIN <span style="color: #000000;">20</span> ;<br /> <span style="color: #0000ff;">RIGHT</span> MARGIN <span style="color: #000000;">25</span> ;<br /> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><br /> oDlg:<span style="color: #000000;">bResized</span> := <||<br /> <span style="color: #00C800;">local</span> oRect := oDlg:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oExbar:<span style="color: #000000;">ntop</span> := oRect:<span style="color: #000000;">nTop</span><br /> oExBar:<span style="color: #000000;">nBottom</span> := oRect:<span style="color: #000000;">nheight</span><br /> oSplit:<span style="color: #000000;">nBottom</span> := oRect:<span style="color: #000000;">nbottom</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /> ><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span>oDlg:<span style="color: #000000;">resize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,;<br /> CreateTree<span style="color: #000000;">(</span>oExBar,oTree<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//-------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> CreateTree<span style="color: #000000;">(</span>oExBar,oTree<span style="color: #000000;">)</span><br /> oTree := TTreeView<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oExBar,,,,,oExbar:<span style="color: #000000;">nWidth</span>,oExbar:<span style="color: #000000;">nBottom</span>,,.t.<span style="color: #000000;">)</span><br /> BuildTree<span style="color: #000000;">(</span> oTree <span style="color: #000000;">)</span><br /> oExBar:<span style="color: #000000;">oClient</span> :=oTree<br /><span style="color: #00C800;">return</span> oTree<br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> BuildTree<span style="color: #000000;">(</span> oTree <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oMenu := Array<span style="color: #000000;">(</span> <span style="color: #000000;">2</span> <span style="color: #000000;">)</span>, oSubMenu := Array<span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /><br /> oMenu<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:= oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Principal"</span> <span style="color: #000000;">)</span><br /> oSubMenu<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:= oMenu<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Imprimir..."</span> <span style="color: #000000;">)</span><br /> oSubMenu<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /> oMenu<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>:= oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Proyectos"</span> <span style="color: #000000;">)</span><br /> oSubMenu<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>:= oMenu<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Definir Proyectos"</span> <span style="color: #000000;">)</span><br /> oSubmenu<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>:= oMenu<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Actualización datos"</span> <span style="color: #000000;">)</span><br /><br /> oTree:<span style="color: #000000;">Expand</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> CheckStatus<span style="color: #000000;">(</span> oTree, aItems <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> n<br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aItems <span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> oTree:<span style="color: #000000;">GetCheck</span><span style="color: #000000;">(</span> aItems<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> CheckStatus<span style="color: #000000;">(</span> oTree, aItems<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span>:<span style="color: #000000;">aItems</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /> <br /> <br /> </div>[/code:30y9ichz] |
dialog with tree and other dialog | Dear Silvio,
It seems as testtre2.prg is a better example to start with as a template
[img:jfyk4j39]https://github.com/FiveTechSoft/screenshots/blob/master/silvio_template.gif?raw=true[/img:jfyk4j39] |
dialog with tree and other dialog | Antonio,
it is on Window I think |
dialog...help...RESOLVIDO | ola amigos, Gostaria de saber como faço para que meu dialog fechar somente quando clicar em um button, ou seja se clico no Window o Dialog fica atras. como evitar isso? que na verdade como deves saber o Dialog não fecha mas fica atras. |
dialog...help...RESOLVIDO | Puedes mostrar un PRG de ejemplo con lo que deseas hacer ? gracias |
dialog:move( ntopnleftnwidthnheight) | hi,
define dialog odlg
ntop:=myrestorentop()
nleft:=myrestorenleft()
nbottom:=myrestorenleft()
nright:=myrestorenright()
activate dialog odlg ;
on init (odlg:move(ntop,nleft,nright-nleft,nbottom-ntop));
valid (mysave( odlg:ntop,odlg:nleft,odlg:nbottom,odlg:nright),.t.)
The dialg position moves some rows up, why ?
Regrads!
Shuming Wang |
dialog:move( ntopnleftnwidthnheight) | Shuming,
Try doing this:
odlg:Move( nTop, nLeft, nRight - nLeft + 1, nBottom - nTop + 1 ) |
dialog:move( ntopnleftnwidthnheight) | Still can not move to the proper postion .
odlg:ntop:=240
odlg:nleft:=2
odlg:nbottom:=678
odlg:nright:=548
@1,2 BUTTON "aaa" OF odlg ACTION msginfo(cvaltochar(odlg:ntop)+","+cvaltochar(odlg:nleft)+","+cvaltochar(odlg:nbottom)+","+cvaltochar(odlg:nright))
// result : 191,-1,665,555 ,not 240,2,678,548
shuming Wang |
dialog:move( ntopnleftnwidthnheight) | Shuming,
dialogs use "units" not pixels, so if you want to set the exact position move them from the ON INIT clause of the dialog |
dialog:move( ntopnleftnwidthnheight) | on init odlg:move() can't move to the proper postion.
odlg:Move( nTop, nLeft, nRight - nLeft + 1, nBottom - nTop + 1 )
Each time dialog moves more top .
Shuming Wang |
dialog:move( ntopnleftnwidthnheight) | Have you tried ?
odlg:Move( nTop - 1, nLeft, nRight - nLeft + 1, nBottom - nTop + 1 ) |
dialog:move( ntopnleftnwidthnheight) | still move and move.
Shuming Wang |
dialog:move( ntopnleftnwidthnheight) | Shuming,
Just to the top or to the left too ? |
dialog:move( ntopnleftnwidthnheight) | In my case, I use GetRect() method for save a pre-postions. |
dialog:move( ntopnleftnwidthnheight) | Thank Antonio and CharlesKwon!
GetWndRect(odlg:hwnd) can be used to save the postion, while saving odlg:ntop,odlg:nleft,.. no use.
ACTIVATE DIALOG oDlg
on INIT (odlg:move(ntop1,nleft1,nright1-nleft1+1,nbottom1-ntop1+1),.t.)
VALID (arect:=GetWndRect(odlg:hwnd),;
oserver:query("insert into browseset (id,cvalue) ;
values ('sub0804','"+cvaltochar(arect[1])+","+cvaltochar(arect[2])+","+cvaltochar(arect[3])+","+cvaltochar(arect[4])+",') ;
on duplicate key update cvalue='"+cvaltochar(arect[1])+","+cvaltochar(arect[2])+","+cvaltochar(arect[3])+","+cvaltochar(arect[4])+",'"),.t.)
Shuming wang |
dialogo o ventana pantalla completa | Buenos dias para todos
Queria saber como puedo iniciar un dialogo o window en modo pantalla completa?
Saludos |
dialogo o ventana pantalla completa | ACTIVATE WINDOW oWnd MAXIMIZED ? |
dialogo o ventana pantalla completa | Gracias Cristobal por responder
Pero no es lo que necesito... si no que la ventana de aplicación... se ubique por encima de todas las aplicaciones de windows y que en modo pantalla completa...
Algo similar a lo que hace youtube cuando colocas un video en pantalla completa.
De antemano gracias |
dialogo o ventana pantalla completa | [quote="leandro":3iecikdw]Gracias Cristobal por responder
Pero no es lo que necesito... si no que la ventana de aplicación... se ubique por encima de todas las aplicaciones de windows y que en modo pantalla completa...
Algo similar a lo que hace youtube cuando colocas un video en pantalla completa.
De antemano gracias[/quote:3iecikdw]
Colega, disculpe la intromision, pero la respuesta de Navarro es la correcta a su pregunta...solo que no preguntastes bien lo que querias...a veces sucede que decimos o escribimos cosas creyendo son las que estamos pensando y que se nos va a entender...por eso hay que ser en PROGRAMACION, muy detallista...tambien le iba a responder lo mismo que Navarro hasta que lei su respuesta a lo que el le dijo...ojo, no es un regañp ni nada parecido, solo una observacion GENERAL...por experiencia propia es que hago mi acotacion ya que tambien me ha pasado.
Lo que quieres es que tu sistema se sobre-ponga a las aplicaciones abiertas...creo hay algo por alli en el foro...buscare y si lo consigo..respondo. gracias...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
dialogo o ventana pantalla completa | Leandro,
algo assim:
function Main()
local oDlg, oIco, cTest := "Hello world! "
DEFINE ICON oIco FILE "..\icons\fivewin.ico"
DEFINE DIALOG oDlg TITLE "I am a DialogBox" COLOR "W+/B" ;
ICON oIco
@ 1, 3 GET cTest
@ 3, 5 BUTTON "&Ok" SIZE 40, 12 ;
ACTION MsgInfo( "Any action here!" ) DEFAULT
@ 3, 16 BUTTON "&Cancel" SIZE 40, 12 ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED on init(ConfiguraDialogPrincipal(odlg)) ;
VALID MsgYesNo( "Do you want to end ?" )
return nil
static procedure ConfiguraDialogPrincipal( oDialog )
oDialog:maximize()
oDialog:center()
return |
dialogo o ventana pantalla completa | Yo tengo algo asi :
[code=fw:2m2nx3vz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />oTB := TaskBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <<- Esta es una clase<br />oTB:<span style="color: #000000;">HideShowTaskBar</span><span style="color: #000000;">(</span>.F.<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWin <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Sistema Empresarial..."</span> <span style="color: #0000ff;">Icon</span> <span style="color: #ff0000;">"AAsesores"</span> NOICONIZE NOSYSMENU BORDER NONE NOCAPTION<br /> oWin:<span style="color: #000000;">bPainted</span> := <span style="color: #000000;">{</span>|hDC| CBmpTiled<span style="color: #000000;">(</span>hDC,oWin,oBmp1<span style="color: #000000;">)</span><span style="color: #000000;">}</span> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWin <span style="color: #0000ff;">Maximized</span> <br /> oTB:<span style="color: #000000;">HideShowTaskBar</span><span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span><br /><br /> </div>[/code:2m2nx3vz]
Espero y te sirva
Saludos. |
dialogo o ventana pantalla completa | Leandro:
Buscando en el baúl de los recuerdos encontré esto, aunque es para un dialogo
tal vez te sirva para una ventana.
[code=fw:2f40fmu1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> DlgOnTop<span style="color: #000000;">(</span><span style="color: #000000;">(</span>.T.<span style="color: #000000;">)</span>,oDlg:<span style="color: #000000;">hWnd</span><span style="color: #000000;">)</span><br />..<br />..<br />..<br /><br /><span style="color: #00C800;">FUNCTION</span> DlgOnTop<span style="color: #000000;">(</span>lState,hWnd<span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nRet := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> hWnd := GetActiveWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span> lState<br /> nRet := AcpOnTop<span style="color: #000000;">(</span>hWnd,<span style="color: #000000;">-2.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.3</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ELSE</span><br /> nRet := AcpOnTop<span style="color: #000000;">(</span>hWnd,<span style="color: #000000;">-1.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.3</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span>nRet<span style="color: #000000;">)</span><br /><br /><br />dll32 <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> AcpOnTop<span style="color: #000000;">(</span>hWnd AS LONG, hWndInsertAfter AS LONG, x AS LONG, y AS LONG, ex AS LONG, cy AS LONG, wFlags AS LONG<span style="color: #000000;">)</span>;<br />AS LONG PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"SetWindowPos"</span> LIB <span style="color: #ff0000;">"User32.dll"</span><br /> </div>[/code:2f40fmu1]
Ojalá te sirva, Saludos |
dialogo o ventana pantalla completa | Leandro:
Algo más simple <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
[code=fw:2ul4k4oc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> SetWindowPos<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> </div>[/code:2ul4k4oc]
Saludos |
dialogo o ventana pantalla completa | Gracias a Armando consegui esto, espero te ayude...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=24061&p=129634&hilit=SetWindowPos&sid=843b1321ba72b79b6ddf67e8d49c18b1#p129634">viewtopic.php?f=6&t=24061&p=129634&hilit=SetWindowPos&sid=843b1321ba72b79b6ddf67e8d49c18b1#p129634</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=14366&p=74173&hilit=SetWindowPos&sid=843b1321ba72b79b6ddf67e8d49c18b1#p74173">viewtopic.php?f=6&t=14366&p=74173&hilit=SetWindowPos&sid=843b1321ba72b79b6ddf67e8d49c18b1#p74173</a><!-- l -->
<!-- m --><a class="postlink" href="http://winapi.freetechsecrets.com/win32/WIN32SetWindowPos.htm">http://winapi.freetechsecrets.com/win32 ... dowPos.htm</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.pinvoke.net/default.aspx/coredll/SetWindowPos.html">http://www.pinvoke.net/default.aspx/cor ... owPos.html</a><!-- m --> |
dialogo o ventana pantalla completa | Todo es aún más sencillo.
En los ejemplos touch de fwh se usan ventanas a pantalla completa. |
dialogo o ventana pantalla completa | Muchas Gracias a todos por responder
Pruebo y comento |
dialogo o ventana pantalla completa | +1
DEFINE DIALOG oDlg STYLE nOr(WS_POPUP, WS_VISIBLE)
ACTIVATE DIALOG oDlg CENTERED ON INIT ShowWindow(oDlg:hWnd, 3) |
dialogo o ventana pantalla completa | hmpaquito Muchas Gracias
Algo así es lo que estoy tratando de hacer.... voy a probar por ese lado y comento. |
dialogo por sobre todo el resto de ventana...? | Hola.
Necesito que un dialogo este por sobre todas las ventanas, cual sería la clausula a usar?
gracias. |
dialogo por sobre todo el resto de ventana...? | Try this:
[code=fw:3lqpvq0j]<div class="fw" id="{CB}" style="font-family: monospace;">SETWINDOWPOS<span style="color: #000000;">(</span> oDlg:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span></div>[/code:3lqpvq0j]
EMG |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.