artem_niko Posted February 19, 2020 Share Posted February 19, 2020 Hello! I'm using UniSF components and creating dynamic UniSFMenuButton. When button creating, not assigned UniPopupMenu and don't show when I press UniSFMenuButton. This is code of dynamic creating button: var ButtonModule: TUniSFMenuButton; begin ButtonModule:=TUniSFMenuButton.Create(UniScrollBox1); ButtonModule.DropdownMenu:=UniPopupMenu1; ButtonModule.ButtonStyles:=bs_transparent; ButtonModule.OnClick:=LaunchModuleClick; ButtonModule.Images:=UniMainModule.UniNativeImageList3; ButtonModule.ImageIndex:=0; ButtonModule.IconAlign:=iaTop; ButtonModule.Font:=UniSFBitBtnMenu.Font; ButtonModule.Font.Color:=clWhite; ButtonModule.Caption:='test'; ButtonModule.ShowHint:=True; ButtonModule.Name:='TUniSFMenuButton1'; ButtonModule.Parent:=UniScrollBox1; ButtonModule.Width:=150; ButtonModule.Height:=80; ButtonModule.Left:=50; ButtonModule.Top:=50; end; How assigned UniPopupMenu with UniSFButton in RunTime? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 19, 2020 Share Posted February 19, 2020 18 minutes ago, Артем said: I'm using UniSF components and creating dynamic UniSFMenuButton. When button creating, not assigned UniPopupMenu and don't show when I press UniSFMenuButton. Hello, Send him a personal message. 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted February 19, 2020 Author Share Posted February 19, 2020 4 minutes ago, Sherzod said: Hello, Send him a personal message. Ok, I was sendig personal message to him. Quote Link to comment Share on other sites More sharing options...
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.