Guest Posted February 21, 2011 Posted February 21, 2011 Message from: "Cristiano Testai" Hi Farshad! Again I post a few more questions and other improvements. 1) When the Vertical ScrollBar in MainPage is activated, the Horizontal Bar is always active, even if not necessary. 2) Farshad, there is a way of identifying whether a form is already created? Today I do not know how to check for example if the the form is already created. I do not want to instantiate him, just need to know if the form is instantiated or not. 3) I need to implement a new Constructor to my form, where he will have the following statement: constructor Create (AController: IController; Sender: TObject); reintroduce; There is a possibility I do this actualy? I use the MVC architecture and I need to assign an object "Controller " in the creation of forms (Views). My question is based for fact the UniGui to use GetInstance function and this scenario I do not know how. 4) There are any plans to implement the event OnMouseMouve in UniDBGrid? 5) I see that the signature event of OnDrawColumnCel(UniDBGrid) is different from the standard DBGrid. How to get the TRect in OnDrawColumnCell? Thanks for support! Best Regards, Cristiano Testai Brazil . Quote
Guest Posted February 21, 2011 Author Posted February 21, 2011 Message from: "Farshad Mohajeri" "Cristiano Testai" wrote in message news:G8GdOSW0LHA.3124@anaxagvs227... > Hi Farshad! > > Again I post a few more questions and other improvements. > > 1) When the Vertical ScrollBar in MainPage is activated, the Horizontal > Bar is always active, even if not necessary. > Does it happen in borderless Page mode or Window mode? > 2) Farshad, there is a way of identifying whether a form is already > created? Today I do not know how to check for example if the the form is > already created. I do not want to instantiate him, just need to know if > the form is instantiated or not. > if UniMainModule.GetFormInstance(TMainForm, False)<>nil then // Form is Created else // Form is not Created > 3) I need to implement a new Constructor to my form, where he will have > the following statement: > constructor Create (AController: IController; Sender: TObject); > reintroduce; > There is a possibility I do this actualy? I use the MVC architecture > and I need to assign an object "Controller " in the creation of > forms (Views). My question is based for fact the UniGui to use GetInstance > function and this scenario I do not know how. > For this you need to wait for version 0.85.0 > 4) There are any plans to implement the event OnMouseMouve in UniDBGrid? > Using OnMouseMove in a browser is not good as it will send lots of Ajax requests when mouse moves. > 5) I see that the signature event of OnDrawColumnCel(UniDBGrid) is > different from the standard DBGrid. How to get the TRect in > OnDrawColumnCell? > There is no TRect in webmode. Do you need it in VCL? Thanks . Quote
Guest Posted February 21, 2011 Author Posted February 21, 2011 Message from: "Cristiano Testai" Hi! >> 1) When the Vertical ScrollBar in MainPage is activated, the Horizontal >> Bar is always active, even if not necessary. >> > > Does it happen in borderless Page mode or Window mode? I tested with PageMode. >> 4) There are any plans to implement the event OnMouseMouve in UniDBGrid? >> > > Using OnMouseMove in a browser is not good as it will send lots of Ajax > requests when mouse moves. You're right Farshad. I commented on this event in order for example, change the mouse cursor when selected particular column. >> 5) I see that the signature event of OnDrawColumnCel(UniDBGrid) is >> different from the standard DBGrid. How to get the TRect in >> OnDrawColumnCell? >> > > There is no TRect in webmode. Do you need it in VCL? In VCL not, only Web. My need is to create a TUnibutton with a Image at runtime for example inside a cell, where this field will only have this button that will call another form or panel, etc. .. I do not know how to accomplish this, only in VCL Standard with TRect parameters. Any idea for WebMode? Thanks!! Cristiano Testai "Farshad Mohajeri" wrote in message news:aMe0TVe0LHA.2720@anaxagvs227... > > "Cristiano Testai" wrote in message > news:G8GdOSW0LHA.3124@anaxagvs227... >> Hi Farshad! >> >> Again I post a few more questions and other improvements. >> >> 1) When the Vertical ScrollBar in MainPage is activated, the Horizontal >> Bar is always active, even if not necessary. >> > > Does it happen in borderless Page mode or Window mode? > >> 2) Farshad, there is a way of identifying whether a form is already >> created? Today I do not know how to check for example if the the form is >> already created. I do not want to instantiate him, just need to know if >> the form is instantiated or not. >> > > if UniMainModule.GetFormInstance(TMainForm, False)<>nil then > // Form is Created > else > // Form is not Created > > >> 3) I need to implement a new Constructor to my form, where he will have >> the following statement: >> constructor Create (AController: IController; Sender: TObject); >> reintroduce; >> There is a possibility I do this actualy? I use the MVC architecture >> and I need to assign an object "Controller " in the creation of >> forms (Views). My question is based for fact the UniGui to use >> GetInstance function and this scenario I do not know how. >> > > For this you need to wait for version 0.85.0 > >> 4) There are any plans to implement the event OnMouseMouve in UniDBGrid? >> > > Using OnMouseMove in a browser is not good as it will send lots of Ajax > requests when mouse moves. > >> 5) I see that the signature event of OnDrawColumnCel(UniDBGrid) is >> different from the standard DBGrid. How to get the TRect in >> OnDrawColumnCell? >> > > There is no TRect in webmode. Do you need it in VCL? > > Thanks > . Quote
Guest Posted February 22, 2011 Author Posted February 22, 2011 Message from: "Farshad Mohajeri" "Cristiano Testai" wrote in message news:BokS0Af0LHA.3124@anaxagvs227... > Hi! > >>> 1) When the Vertical ScrollBar in MainPage is activated, the Horizontal >>> Bar is always active, even if not necessary. >>> >> >> Does it happen in borderless Page mode or Window mode? > > I tested with PageMode. OK I will test it Logged #852 >>> 4) There are any plans to implement the event OnMouseMouve in UniDBGrid? >>> >> >> Using OnMouseMove in a browser is not good as it will send lots of Ajax >> requests when mouse moves. > > You're right Farshad. I commented on this event in order for example, > change the mouse cursor when selected particular column. > This should be implemented on clientside. >>> 5) I see that the signature event of OnDrawColumnCel(UniDBGrid) is >>> different from the standard DBGrid. How to get the TRect in >>> OnDrawColumnCell? >>> >> >> There is no TRect in webmode. Do you need it in VCL? > > In VCL not, only Web. > My need is to create a TUnibutton with a Image at runtime for example > inside a cell, where this field will only have this button that will call > another form or panel, etc. .. I do not know how to accomplish this, only > in VCL Standard with TRect parameters. Any idea for WebMode? I will investigate it Logged #853 . Quote
Guest Posted February 22, 2011 Author Posted February 22, 2011 Message from: "Farshad Mohajeri" >>> 1) When the Vertical ScrollBar in MainPage is activated, the Horizontal >>> Bar is always active, even if not necessary. >>> >> >> Does it happen in borderless Page mode or Window mode? > > I tested with PageMode. > I can't reproduce this. Keep in mind that if you have Components close to the right of the form it is normal for both scroll bars to be activated. To avoid this you must leave some blank space on the right side so only the vertical bar will activated. . Quote
Guest Posted February 23, 2011 Author Posted February 23, 2011 Message from: "Cristiano Testai" Hi Farshad, To test, put a UniPanel with Align = alTop. Running the program, at the time of any component exceeds vertically to the main page, over the vertical bar, horizontal bar is also activated. Theoretically it should not, but I understand and I will try with "if's" solve the problem, not using the Alignment property of the UniPanel. About AutoScroll property, it don't is save(in the .dfm archive) or don't is loading the value saved , and i need always set the property for True where i open the project. Tks. Cristiano Testai "Farshad Mohajeri" wrote in message news:oGhOqcq0LHA.2160@anaxagvs227... > >>>> 1) When the Vertical ScrollBar in MainPage is activated, the Horizontal >>>> Bar is always active, even if not necessary. >>>> >>> >>> Does it happen in borderless Page mode or Window mode? >> >> I tested with PageMode. >> > > I can't reproduce this. Keep in mind that if you have Components close to > the right of the form it is normal for both scroll bars to be activated. > To > avoid this you must leave some blank space on the right side so only the > vertical bar will activated. > > . Quote
Guest Posted February 23, 2011 Author Posted February 23, 2011 Message from: "Farshad Mohajeri" "Cristiano Testai" wrote in message news:udzB1au0LHA.2720@anaxagvs227... > Hi Farshad, > > To test, put a UniPanel with Align = alTop. Running the program, at the > time of any component exceeds vertically to the main page, over the > vertical bar, horizontal bar is also activated. Theoretically it should > not, but I understand and I will try with "if's" solve the problem, not > using the Alignment property of the UniPanel. > I see. I'll investigate to see if anything can be done about this. You can use Anchor instead of Align. > About AutoScroll property, it don't is save(in the .dfm archive) or don't > is loading the value saved , and i need always set the property for True > where i open the project. I can't reproduce it. What version is your Delphi ? . Quote
Guest Posted February 23, 2011 Author Posted February 23, 2011 Message from: "Farshad Mohajeri" "Farshad Mohajeri" wrote in message news:RGjJnTz0LHA.2160@anaxagvs227... > > "Cristiano Testai" wrote in message > news:udzB1au0LHA.2720@anaxagvs227... >> Hi Farshad, >> >> To test, put a UniPanel with Align = alTop. Running the program, at the >> time of any component exceeds vertically to the main page, over the >> vertical bar, horizontal bar is also activated. Theoretically it should >> not, but I understand and I will try with "if's" solve the problem, not >> using the Alignment property of the UniPanel. >> > > I see. I'll investigate to see if anything can be done about this. You can > use Anchor instead of Align. You can also use UniScrollBox for scrollable parts of the Form and separate them from other controls. . Quote
Guest Posted February 24, 2011 Author Posted February 24, 2011 Message from: "Cristiano Testai" Hi Farshad! > I see. I'll investigate to see if anything can be done about this. You can > use Anchor instead of Align. I will to test. >> About AutoScroll property, it don't is save(in the .dfm archive) or don't >> is loading the value saved , and i need always set the property for True >> where i open the project. > > I can't reproduce it. What version is your Delphi ? Delphi EX Update 1 Tks again. Cristiano Testai "Farshad Mohajeri" wrote in message news:RGjJnTz0LHA.2160@anaxagvs227... > > "Cristiano Testai" wrote in message > news:udzB1au0LHA.2720@anaxagvs227... >> Hi Farshad, >> >> To test, put a UniPanel with Align = alTop. Running the program, at the >> time of any component exceeds vertically to the main page, over the >> vertical bar, horizontal bar is also activated. Theoretically it should >> not, but I understand and I will try with "if's" solve the problem, not >> using the Alignment property of the UniPanel. >> > > I see. I'll investigate to see if anything can be done about this. You can > use Anchor instead of Align. > >> About AutoScroll property, it don't is save(in the .dfm archive) or don't >> is loading the value saved , and i need always set the property for True >> where i open the project. > > I can't reproduce it. What version is your Delphi ? > . Quote
Guest Posted February 24, 2011 Author Posted February 24, 2011 Message from: "Farshad Mohajeri" "Cristiano Testai" wrote in message news:NqFK$H60LHA.2720@anaxagvs227... > Hi Farshad! > >> I see. I'll investigate to see if anything can be done about this. You >> can use Anchor instead of Align. > > I will to test. > >>> About AutoScroll property, it don't is save(in the .dfm archive) or >>> don't is loading the value saved , and i need always set the property >>> for True where i open the project. >> >> I can't reproduce it. What version is your Delphi ? > > Delphi EX Update 1 I tested with XE too. Can you test again? . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.