-
Posts
929 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Posts posted by pro_imaj
-
-
-
1 hour ago, Sherzod said:
Thank you very much, my problem is solved.
So glad to have you.
- 1
-
-
Could you help me to solve this problem? 😊
-
8 hours ago, Darth Florus said:
Hi Pal:
Use InsertComponent Method or InsertControl instead of change the parent property.
When FfrmPopup is a TUniForm:
Example 1:
{ Crear un origen de datos }
FdsPopLista := TDataSource.Create(FfrmPopup);
FfrmPopup.InsertComponent(FdsPopLista);Example 2:
{ Crear una grilla }
FdbgPopLista := TUniDBGrid.Create(FfrmPopup);
FdbgPopLista.Align := alClient;
FfrmPopup.InsertControl(FdbgPopLista);Best Regards
@Darth Florus Hi, Thanks for the answer,
I couldn't adapt it to the code I wrote above, could you please give the example accordingly.
procedure TFShowModal.UniFormBeforeShow(Sender: TObject); var FCurrentFrame: TUniFrame; begin FCurrentFrame := TUniFrameClass(FrameAd).Create(Self); FCurrentFrame.Align := alClient; FCurrentFrame.Parent := UniTabSheet1; Refresh; end;
-
Hi,
I'm calling Frame inside a UniPageControl inside a form.
When I press the tab key in the uniedits in the frame I call, the next edit is not positioned.I have tried almost every way but the result is negative.
When I add uniedits on UnipageControl and compile it, when I press the tab key, it is positioned to the other uniedit.
Why can this be a problem with the edits inside the frame.
I am creating Frame in Unipagecontrol as below.
procedure TFShowModal.UniFormBeforeShow(Sender: TObject); var FCurrentFrame: TUniFrame; begin FCurrentFrame := TUniFrameClass(FrameAd).Create(Self); FCurrentFrame.Align := alClient; FCurrentFrame.Parent := UniTabSheet1; Refresh; end;
-
On 8/13/2022 at 9:42 AM, Sherzod said:
Hello,
Let's try this solution first.
As I see it, not all themes are the same in this regard. Some themes don't have border-color, and some have it closer to white. Or need to take the value of another class, please also analyze. And therefore, there may not be a universal solution.Solution:
1. MainForm.Script ->
var _themeCSS = Ext.util.CSS.getRule('.x-form-trigger-wrap-default.x-form-trigger-wrap-focus'); if (_themeCSS) { var _themeColor = _themeCSS.style['border-color']; }
2. UniEdit.ClientEvents.UniEvents ->
function afterCreate(sender) { sender.on('focus', function(){if (_themeColor) {this.labelTextEl.setStyle('color', _themeColor)}}); sender.on('blur', function(){this.labelTextEl.setStyle('color', '')}); }
Hi,
@Sherzod The solution you wrote works perfectly, thank you very much.
-
On 8/11/2022 at 10:11 AM, Sherzod said:
I will try to check.
@Sherzod Is there any progress on this issue?
Thanks.
-
5 hours ago, Sherzod said:
Hello,
Do you mean FieldLabel font color?
No, I already know that.
What I want to tell is; When the cursor is positioned in Edit, the user understands that the cursor is there with a color. Can this color be brought around the FieldTex part as well?*Color changes according to the theme. In the attached picture, there is a yellow color according to the aria theme, I want this color to be in the fieldtext so that the user can understand which field is filling.
-
Hi
,
I'm printing a description with the FieldLabel property of the Uniedit component, can I make this description color according to the Theme when the edit is clicked?Thank you.
-
On 8/5/2022 at 7:03 PM, Hayri ASLAN said:
What settings are you changing?
I couldn't find out which setting has changed for now, but when I make the same settings with other projects, it doesn't work. I made a new mainmodule settings, and for now I solved the problem by not making the old settings.
Thank you for your interest, Mr. Hayri.
As always, I would like to express my gratitude to all concerned.
-
-
6 minutes ago, Hayri ASLAN said:
I coded it exactly as you said. But again it didn't. unfortunately. Unfortunately, I solved them by creating a new project and copying the mainmodule and servermodule in the new project.
Thank you.
-
59 minutes ago, pro_imaj said:
Hi,
I want to login with username and password in /server section.
Username is logged in without asking for password even though I have added the code below, is there any need for another setting?
procedure TUniServerModule.UniGUIServerModuleControlPanelLogin (ASession: TUniGUISession; const AUser, APassword: string; var LoginValid: Boolean; LoginAttempt: Integer); begin if SameText(AUser, 'demo') and SameText(APassword, 'demo') then LoginValid := True else begin if LoginAttempt = 3 then ASession.Terminate('Error!'); end; end;
I copied the servermodule in a previously working project to the project, but the result is negative.
So the screen comes directly without asking for a password, this little problem drove me crazy.
-
Hi,
I want to login with username and password in /server section.
Username is logged in without asking for password even though I have added the code below, is there any need for another setting?
procedure TUniServerModule.UniGUIServerModuleControlPanelLogin (ASession: TUniGUISession; const AUser, APassword: string; var LoginValid: Boolean; LoginAttempt: Integer); begin if SameText(AUser, 'demo') and SameText(APassword, 'demo') then LoginValid := True else begin if LoginAttempt = 3 then ASession.Terminate('Error!'); end; end;
-
ServerModule=>I didn't find the solution for adding CSS data logical, because something that changes on a theme user basis should be done in this mainmodule, but there is no CSS there.
-
3 hours ago, pro_imaj said:
Hi,
I am trying to provide easy access in UniTreeMenu1 with SearchEdit in the attached test file, but it does not search and adds the value it finds after the search as a new menu.
What am I doing wrong?
Thank you.
I could not reach any conclusion on how to search in the menu, a problem arises as in the attached.
-
17 minutes ago, Sherzod said:
Have you tried searching the forum?
Thank you,
I solved it according to the example here.
-
20 minutes ago, Sherzod said:
Hello,
This post may help you:
In this way, the scrolling problem is solved, but when I click on any menu, it becomes active.
-
Even though I change the colors of the Items I add to UniTreeMenu, they always appear as gray, and when the mouse is hovered over, they are white. Is there any way to change this?
-
When the UniTreeMenu component adds too much, the scroolbox does not appear. Is there a way to fix this?
-
Hi,
I am trying to provide easy access in UniTreeMenu1 with SearchEdit in the attached test file, but it does not search and adds the value it finds after the search as a new menu.
What am I doing wrong?
Thank you.
-
43 minutes ago, Sherzod said:
Hello,
This post may help you:
Thank you very much, it works perfectly.
- 1
-
@Farshad Mohajeri Please your help.
Tab problem in frame edits
in General
Posted
@Sherzod
Unfortunately it doesn't work, you can see the example in the attachment.
If there is this problem, how do people develop a screen with a frame?
The example is attached.
Test3.zip