Search the Community
Showing results for tags 'Unibutton'.
-
Good afternoon! How can I make Uibutton appear on top of all other components? Bring to front doesn't help. I placed the button on the main form simply, I need it to be, as it were, on top of all the other components, in particular on top of the UniPanel, and the UniPanel would be, as it were, behind the button.
-
I have the following code: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniButton1.Color := clRed; end; However the button color does not change. How can I change the background color?
-
I want to make it look like this. Is there a way to insert this code right after the caption of a button? <span class="badge badge-secondary">New</span>
-
Доброе время суток! Столкнулся с проблемой переноса текста в свойстве Caption у объекта UniButton. Текст с большим размером не переносится и получается, что не влезает в рамки кнопки. Свойство WordWrap у кнопки не нашел. Как быть?
-
Hi, I created a unibutton on the fly, this works fine. BUT: I like to change the style by using css with ClientEvents.ExtEvents.Add, this doesn't seem to show any difference. The button inherits the settings from x-btn instead Any clues? ps: applying ClientEvents.ExtEvents.Add to unibutton which is created at design time does work! procedure TMainFormV2.UniFormShow(Sender: TObject); var st:string; nwbtn:TUniButton; Begin st:='OnBeforerender=function OnBeforerender(sender) '+ ' {'+ 'sender.cls="btngray";'+ 'sender.overCls="btngray-over";'+ 'sender.textAlign=''left'';'+ '}'; nwbtn:=TUniButton.Create(MainFormV2); nwbtn.Parent:=MainFormV2; nwbtn.Top:=10; nwbtn.left:=15; nwbtn.Width:=170; nwbtn.Height:=20; nwbtn.Caption:='Press here'; nwbtn.Cursor:=crHandPoint; nwbtn.OnClick:=SelectionClick; nwbtn.ClientEvents.ExtEvents.Add(st); end;