Jump to content

Input'un Sağına Soluna Bbcode Nasıl Eklenir


Mehmet
 Share

Recommended Posts

Input'un sağına soluna [b ] [/b ] şeklinde bbcode eklemek istiyorum

Case $buttononizle
GUICtrlSetData($onizleme, GUICtrlRead("[b]" & ($konubaslikInput & "[/b]")) & @CRLF & _
GUICtrlRead($resim1Input) & @CRLF & GUICtrlRead($resim2Input) & "")
Edited by MeHMeTBeN
Link to comment
Share on other sites

normalde işimi görecek udfler var ama yazıyı seçtikten sonra bbcode ekliyor ben öyle istemediğim için böyle yapmak istedim

Önizleme diye bir butonum var Inputa yazı yazdığımda butonla önizleme yapınca inputa yazılan veriyi [b ]arasına alacak[ /b] Case $buttononizle

Edited by MeHMeTBeN
Link to comment
Share on other sites

  • Editor
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 371, 78, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 32, 24, 225, 21)
$Button1 = GUICtrlCreateButton("Ön İzle", 272, 24, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
		local $sText = GUICtrlRead($Input1)
		MsgBox(0,"","[B]" & $sText & "[B]")
	EndSwitch
WEnd

Böyle bireymi arıyorsunuz hocam.

Link to comment
Share on other sites

pairs hocam Inputların içeriğini okumuyor ne yapmam gerekiyor

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 389, 202, 192, 124)
$baslik = GUICtrlCreateInput("", 40, 32, 121, 21)
$resim = GUICtrlCreateInput("", 40, 72, 121, 21)
$onizleme = GUICtrlCreateEdit("", 184, 32, 185, 145)
$buttononizle = GUICtrlCreateButton("Önizle", 40, 112, 123, 25)
$kopyala = GUICtrlCreateButton("kopyala", 40, 143, 123, 25)
$sil = GUICtrlCreateButton("sil", 40, 170, 123, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Local $baslik1 = GUICtrlRead($baslik)
Local $resim1 = GUICtrlRead($resim)
While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

Case $buttononizle
GUICtrlSetData($onizleme,("[align=center]" & @CRLF & _
"[b]" & $baslik1 & "[/b]") & @CRLF & _
("[img]" & $resim1 & "[/img]") & @CRLF & _
"[/align]")

Case $kopyala
ClipPut(GUICtrlRead($onizleme))

Case $sil
GUICtrlSetData($baslik, "")
GUICtrlSetData($resim, "")
GUICtrlSetData($onizleme, "")


	EndSwitch
WEnd

Link to comment
Share on other sites

# @mesale0077 tarafından yapıldı.


#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 389, 202, 192, 124)
$baslik = GUICtrlCreateInput("", 40, 32, 121, 21)
$resim = GUICtrlCreateInput("", 40, 72, 121, 21)
$onizleme = GUICtrlCreateEdit("", 184, 32, 185, 145)
$buttononizle = GUICtrlCreateButton("Önizle", 40, 112, 123, 25)
$kopyala = GUICtrlCreateButton("kopyala", 40, 143, 123, 25)
$sil = GUICtrlCreateButton("sil", 40, 170, 123, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

Case $buttononizle
GUICtrlSetData($onizleme,("[align=center]" & @CRLF & _
"[b]" & GUICtrlRead($baslik) & "[/b]") & @CRLF & _
("[img]" & GUICtrlRead($resim) & "[/img]") & @CRLF & _
"[/align]")

Case $kopyala
ClipPut(GUICtrlRead($onizleme))

Case $sil
GUICtrlSetData($baslik, "")
GUICtrlSetData($resim, "")
GUICtrlSetData($onizleme, "")


	EndSwitch
WEnd


nasıl okumuyoor :)

Link to comment
Share on other sites

arayüzünü tasarla ve tam olarak ne yapmak istiyorsunuz

inpütlarda oldukça editboxmı yazacak yada nasıl bir düşünceniz var tam olarak açıklarsanız memnun oluruz

tam istediğinizi anlayamadım ,yardımcı olmak için konuyu netleştirmek lazım dostum.

Link to comment
Share on other sites

konuyu netleştirecek bir durum yok. bir önceki mesajımda arayüz verdim zaten tek yapılması gereken şey şu inputların herhangi birine veri girilmemişse bbcode aktarmayacak

yukarıdaki örneğe göre yapıyorum mantığını anlamışsındır

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 389, 202, 192, 124)
$baslik = GUICtrlCreateInput("", 40, 32, 121, 21)
$resim = GUICtrlCreateInput("", 40, 72, 121, 21)
$onizleme = GUICtrlCreateEdit("", 184, 32, 185, 145)
$buttononizle = GUICtrlCreateButton("Önizle", 40, 112, 123, 25)
$kopyala = GUICtrlCreateButton("kopyala", 40, 143, 123, 25)
$sil = GUICtrlCreateButton("sil", 40, 170, 123, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
 
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
 
Case $buttononizle
global $aa1 = GUICtrlRead($baslik)
global $aa2 = GUICtrlRead($resim)
if stringlen ($aa1)>0 then 
$aaa="[align=center]" & @CRLF & "[b]" & GUICtrlRead($baslik) & "[/b]"& @CRLF 
else 
$aaa=""
endif
if stringlen ($aa2)>0 then 
$aaa2="[img]" & GUICtrlRead($resim) & "[/img]" & @CRLF & "[/align]"& @CRLF 
else 
$aaa2=""
endif 
GUICtrlSetData($onizleme,$aaa&$aaa2)
 
Case $kopyala
ClipPut(GUICtrlRead($onizleme))
 
Case $sil
GUICtrlSetData($baslik, "")
GUICtrlSetData($resim, "")
GUICtrlSetData($onizleme, "")
 
 
EndSwitch
WEnd

çok basit bir örnek yaptım sizin için dostum....

anladığım kadarıyla artık

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...