Search found 15 matches: coordinats

Return to advanced search

Re: Question to coordinates.

Hello, Uwe! The problem for me is to determine automatically the actual focused object. Then i can use your function for the coordinats.
by byte-one
Thu Mar 28, 2019 2:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Question to coordinates.
Replies: 6
Views: 1119

Re: TTreeView:Change Method changes coordinats of controls

Horizon wrote:if we ended with their :End() Method, will I consume the windows resources?


No, they shouldn't. But to do so you will need to access to the GET variable.

EMG
by Enrico Maria Giordano
Wed Sep 09, 2009 8:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

Thanks Enrico, James. Enrico, >>So, hide them all and show only those that must be visible. But don't create them again >>and again if you don't want to consume all the Windows resources. I just want to ask to learn it. if we ended with their :End() Method, will I consume the windows res...
by Horizon
Wed Sep 09, 2009 8:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

Or create a different dialog for each set of says and gets. Then just hide the current dialog and show the new dialog. All the controls will aready be there.

James
by James Bott
Tue Sep 08, 2009 8:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

So, hide them all and show only those that must be visible. But don't create them again and again if you don't want to consume all the Windows resources.

EMG
by Enrico Maria Giordano
Tue Sep 08, 2009 3:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

Thank you Enrico,

I understand your solution, but I have different says, gets, checkbox, combobox in every option page. so I cant define them before activate dialog and just use them in option pages.
by Horizon
Tue Sep 08, 2009 2:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

1. Remove the GETs inside Opt_Page1() and Opt_Page2(). They are not needed.

2. Use oSay:SetText() method to change the text of the SAY instead of creating a new one.

EMG
by Enrico Maria Giordano
Tue Sep 08, 2009 1:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

I dont know how can I reduce the sample more than this. Hakan #include "fivewin.ch"static ahDontRemove Procedure Main()Local Cx1:=136, CY1 := 74, CX2 := 652, CY2 := 911Local XNAME:=SPACE(25), oName       ahDontRemove := {}        DEFINE DIALOG oDlg FROM CX1,CY1 TO...
by Horizon
Tue Sep 08, 2009 1:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

Can you try to build a reduced and self-contained sample of the problem?

EMG
by Enrico Maria Giordano
Tue Sep 08, 2009 12:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

Enrico, This sample is made to introduce the problem. in fact my application is a bit different. My Tree onchange block:    oTree:bChanged := { | oItem | oItem := oTree:GetSelected(), CleanSlate(oDlg);                        If( ValType( oItem:Cargo ) == "B"...
by Horizon
Tue Sep 08, 2009 12:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

It depends on what you want to achieve. Create new controls again and again is not an option.

EMG
by Enrico Maria Giordano
Tue Sep 08, 2009 11:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

Thanks Enrico,

What is your suggestion? How should I do in Treeview on change clause.
by Horizon
Tue Sep 08, 2009 10:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Re: TTreeView:Change Method changes coordinats of controls

1. You have to create the SAY and the GET the first time from the ON INIT clause.

2. It's not a good idea to create a new SAY and a new GET any time the selected tree item is changed.

EMG
by Enrico Maria Giordano
Tue Sep 08, 2009 9:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

TTreeView:Change Method changes coordinats of controls

Hi, I use TreeView like below. #include "fivewin.ch"Procedure Main()Local Cx1:=136, CY1 := 74, CX2 := 652, CY2 := 911, ODlg, oFontLocal XNAME:=SPACE(25), oName   DEFINE DIALOG oDlg FROM CX1,CY1 TO CX2,CY2 PIXEL ;        STYLE nOr( WS_OVERLAPPEDWINDOW ) TRANSPARENT  ...
by Horizon
Mon Sep 07, 2009 3:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TTreeView:Change Method changes coordinats of controls
Replies: 13
Views: 3940

Return to advanced search

cron