Page 1 of 1

GTK3 - Disabled SpinGadget() with Flag #PB_Spin_ReadOnly

Posted: Sat Sep 05, 2015 7:22 am
by Oma
Hi again,

in PB5.40B1-3 a SpinGadget(#Gadget, x, y, Breite, Höhe, Minimum, Maximum [, Flags]) with set Flag #PB_Spin_ReadOnly is completely deactivated instead of the editability of the entry ...

Code: Select all

#Win_Main  = 0
#SpG1      = 0
#SpG2      = 1

Global.i gEvent

Procedure Create_WinMain()
	If OpenWindow(#Win_Main, 300, 200, 250, 200, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
		SpinGadget(#SpG1, 5,  5, 100, 30, 10, 20, #PB_Spin_Numeric); works
		SpinGadget(#SpG2, 5, 40, 100, 30,  0, 10, #PB_Spin_Numeric | #PB_Spin_ReadOnly); should disable only the entry, not the whole gadget

	EndIf
EndProcedure

Create_WinMain()

Repeat
	gEvent= WaitWindowEvent()
	gEventWin= EventWindow()
	
	If gEventWin = #Win_Main
		Select gEvent
			Case #PB_Event_CloseWindow
				gQuit= #True
		EndSelect
	EndIf
Until gQuit
Regards, Charly

Re: PB5.40B1-3 Disabled SpinGadget() with Flag #PB_Spin_Read

Posted: Mon Sep 07, 2015 1:54 pm
by Fred
Seems like GtkSpinButton doesn't support this with GTK3, so for now it will do nothing on Linux (doc updated).

https://developer.gnome.org/gtk3/stable ... utton.html