Search found 142 matches

by Frank Demont
Sat Aug 12, 2006 2:47 pm
Forum: FiveWin for Harbour/xHarbour
Topic: CONTROLS IN A WINDOW
Replies: 18
Views: 5127

Also nTop and nleft can be changed STATIC FUNCTION RESIZECONTROLS(nSizeType,nWidth,nHeight, oWnd ) LOCAL oCtl LOCAL i , aHlp[4] , j , Factor := Hash() STATIC aCoordinates := {} STATIC StartWidth , StartHeight IF EMPTY( aCoordinates ) FOR EACH oCtl IN oWnd:aControls AADD(aCoordinates , Array(4)) i :=...
by Frank Demont
Sat Aug 12, 2006 9:51 am
Forum: FiveWin for Harbour/xHarbour
Topic: CONTROLS IN A WINDOW
Replies: 18
Views: 5127

I suppose that the goal is that when the window is reduced with 50% , also the objects (nWidth , nHeight) are reduced with 50% Same can be done with ntop , nleft Frank # include "Fivewin.ch" FUNCTION MAIN() LOCAL oWnd LOCAL cVar := SPACE( 35 ) DEFINE WINDOW oWnd @ 1, 1 GET cVar @ 6, 1 BUTT...
by Frank Demont
Wed Jul 26, 2006 2:57 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Closing another aplication
Replies: 2
Views: 782

Enricio

thank you very much , as always it works

I hope i am not to late : congratulations to italy with welth cup !!!


Frank
by Frank Demont
Wed Jul 26, 2006 9:53 am
Forum: FiveWin for Harbour/xHarbour
Topic: Closing another aplication
Replies: 2
Views: 782

Closing another aplication

Hello In mine aplication , i use Memowrit("C:\TEMP\efkes.rtf",cText) Shellexecute(0 ,0 , "C:\TEMP\efkes.rtf" ,0 ,0 , 1) To edit a rtf-file When the rtf-file is not closed , and this commands are executed again with a different cText , the editor is activated with the old text fil...
by Frank Demont
Wed Jul 05, 2006 7:39 am
Forum: FiveWin for Harbour/xHarbour
Topic: Determining column position printer
Replies: 1
Views: 622

Determining column position printer

Hello In Clipper we can : ? "Test" ?? "Continue after test" Now we have oPrn:say(nrow,ncol,"test") oPrn:say(nrow, ???? , "Continue after test") How we know the column position ? With courier new i have no problems , but with other fonts it seems that we have t...
by Frank Demont
Thu Jun 29, 2006 9:04 am
Forum: FiveWin for Harbour/xHarbour
Topic: Trying to compile samples\alaska.prg
Replies: 1
Views: 999

Trying to compile samples\alaska.prg

Got as errors : xRC: alaska.rc(16): error: Invalid syntax. xRC: alaska.rc(16): error: Invalid syntax. xRC: alaska.rc(16): error: Invalid syntax. xRC: alaska.rc(16): error: Invalid syntax. xRC: alaska.rc(16): error: Invalid syntax. xRC: alaska.rc(16): error: Invalid syntax. xRC: alaska.rc(16): error:...
by Frank Demont
Fri Jun 16, 2006 9:08 am
Forum: FiveWin for Harbour/xHarbour
Topic: Problems with shellexecute()
Replies: 1
Views: 601

Problems with shellexecute()

Hello, Today , i have problems , when i try to use : ? Shellexecute(GetActiveWindow(),"open",xlsfile) // returns 42 , not a error The xlsfile is created with ClipWks (for xharbour) and can be launched from windows with clicking on it. FUNC MAIN(cFile) IF cFile == nil cFile := "c:\prog...
by Frank Demont
Fri Jun 09, 2006 10:47 am
Forum: FiveWin for Harbour/xHarbour
Topic: Entering a negative number in tGet
Replies: 11
Views: 11455

Enrico

In mine main aplication was the xhb-function IsdIGIT(str) overwritten by isdigit(Str,count) , as in funcky .

This function gives a wrong result for str==CHR(32) , so in ::untransform ::minus wasn't set corectly

Frank
by Frank Demont
Fri Jun 09, 2006 7:29 am
Forum: FiveWin for Harbour/xHarbour
Topic: Entering a negative number in tGet
Replies: 11
Views: 11455

Antonio,

Thanks for the info , now i found it . It works as expected

Frank
by Frank Demont
Wed Jun 07, 2006 7:11 am
Forum: FiveWin for Harbour/xHarbour
Topic: Entering a negative number in tGet
Replies: 11
Views: 11455

Antonio Executing this code from method lostfocus give as difference : if ! Empty( ::cPicture ) .and. ::oGet:type == "N" //tracelog(::Varget()) ::oGet:Assign() ::oGet:Picture := ::cPicture ::oGet:UpdateBuffer() ::oGet:KillFocus() endif ::oGet:SetFocus() // to avoid oGet:buffer be nil # ifd...
by Frank Demont
Tue Jun 06, 2006 5:01 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Entering a negative number in tGet
Replies: 11
Views: 11455

Antonio It is important to me that this is fixed : my customer can't agree with an aplication where no negative numbers can't be entered. Now , i have the modifyed tget.prg i use to test , linked in testget2.prg. Now , i see a difference in method lostfocus. In mine aplication seems for some reason ...
by Frank Demont
Tue Jun 06, 2006 1:39 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Entering a negative number in tGet
Replies: 11
Views: 11455

The last i found is that in method lostfocus if ! ::oGet:BadDate .and. ! ::lReadOnly .and. ; ( ::oGet:changed .or. ::oGet:unTransform() <> ::oGet:original ) ::oGet:Assign() // for adjust numbers # ifdef TEST if ! Empty( ::cPicture ) .and. ::oGet:type == "N" trace(::Varget() , ::lPassword ,...
by Frank Demont
Tue Jun 06, 2006 10:29 am
Forum: FiveWin for Harbour/xHarbour
Topic: Entering a negative number in tGet
Replies: 11
Views: 11455

Entering a negative number in tGet

Hello, 3 weeks ago i asked the same question , but i was on vacation for two weeks , so i try it again In mine main aplication i have a dialog from resources , with a lot of get's (numeric value) Each numeric get has a picture clause : REDEFINE GET oGet VAR nInp ID 157 PICTURE "@K #99" OF ...
by Frank Demont
Wed May 17, 2006 6:45 am
Forum: FiveWin for Harbour/xHarbour
Topic: Value negative in get
Replies: 1
Views: 587

Value negative in get

Hello, Intering a negative value in a get (big main aplication) changed in a positive number when the get looses focus. I tryed samples testget2 , and it gives no problems. Working with xbuild i checked : both points to the same xhb root folder (xharbour + c compiler) Last build (march) both points ...
by Frank Demont
Thu May 11, 2006 6:34 am
Forum: FiveWin for Harbour/xHarbour
Topic: DTPICKER with EMPTY Dates
Replies: 3
Views: 1322

REDEFINE DTPICKER Obj VAR Van ID 10 OF oDlg

with :


CONTROL "", 10 , "SysDateTimePick32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP | DTS_SHOWNONE , 205 , 9 , 60, 12